Skip to content
Run LLM Locally

Granite 4.2 30B on the Tesla P40

With 24 GB of VRAM, the Tesla P40 runs Granite 4.2 30B at Q4_K_M entirely on the GPU with an 8K context (about 20.2 GB needed). At Q8_0 it does not fit in VRAM.

Granite 4.2 30B

Q4_K_M · 8K context

Compatible

The model needs about 20.2 GB and fits in the 23.3 GB available (3.1 GB left).

Your hardware
Tesla P40 24 GB · 64 GB RAM
Estimated memory
~20.2 GB estimate
VRAM (usable memory)
23.3 GB
GPU only
Yes
CPU/GPU offload
Not required
Generation speed
14–18 tok/s estimate
Largest context in fast memory
19K tokens
Confidence: low

Based on: memory bandwidth (346 GB/s) and model size

Memory breakdown

~20.2 GB (19.5 GB–20.9 GB) needed · estimate

Fits entirely in VRAM · 3.1 GB left

  • Model weights16.5 GB
  • KV cache2 GB
  • Runtime overhead0.7 GB
  • Safety margin1 GB
Assumptions: context 8K tokens · KV cache f16 · llama.cpp (CUDA) · flash attention on · weights = real file size

EstimateData updated on Source: Run LLM Locally engine, Hugging Face config.json + model card

What makes this estimate less reliable

  • no benchmark for this hardware and model yet

Other quantizations on the Tesla P40

Granite 4.2 30B on Tesla P40 + 64 GB RAM · 8K context
Granite 4.2 30B Q8_08K~33.3 GB · 1.7–3 tok/s estimatePossible but slow
Granite 4.2 30B Q6_K8K~26.3 GB · 4–7 tok/s estimateCPU/GPU offload
Granite 4.2 30B Q5_K_M8K~23.2 GB · 12–16 tok/s estimateCompatible with limits
Granite 4.2 30B Q4_K_M8K~20.2 GB · 14–18 tok/s estimateCompatible
Granite 4.2 30B IQ4_XS8K~18.8 GB · 15–19 tok/s estimateExcellent
Granite 4.2 30B Q3_K_M8K~16.7 GB · 17–22 tok/s estimateExcellent

Alternatives

Hardware that runs Granite 4.2 30B Q4_K_M entirely in memory

Prices and links follow the market you choose.

Radeon RX 7900 XTX

AMD

CompatibleRuns Granite 4.2 30B Q4_K_M entirely in memory

Price not available

Availability unknown

View on amazon.com

Affiliate link

AMD Ryzen AI Max+ 395

Unified memory PC

CompatibleRuns Granite 4.2 30B Q4_K_M entirely in memory

Price not available

Availability unknown

View on amazon.com

Affiliate link

GeForce RTX 2080 Ti

Lowest memory tier

Compatible with limitsRuns Granite 4.2 30B Q4_K_M entirely in memory

Price not available

Availability unknown

View on amazon.com

Affiliate link

No current offer imported for this market: the link opens a marketplace search.

Frequently asked questions

Can the Tesla P40 run Granite 4.2 30B?
The model needs about 20.2 GB and fits in the 23.3 GB available (3.1 GB left).
Which quantization should I use on the Tesla P40?
Q5_K_M is the highest-precision quantization that fits entirely in VRAM at 8K context. ~23.2 GB / 23.3 GB.
What is the largest context on the Tesla P40?
At Q4_K_M, about 19K tokens fit entirely in VRAM with an f16 KV cache. A q8_0 KV cache roughly doubles that.
How fast is Granite 4.2 30B (Tesla P40)?
We estimate 14–18 tok/s (estimate, confidence low). Based on: memory bandwidth (346 GB/s) and model size.