Yes — with 3.5 GB to spare
Granite 4.1 30B at Q4_K_M fits your Tesla M40 24 GB entirely on the GPU at 8K context, at an estimated 11 tokens per second. Past 22K the KV cache pushes it over — quantise the cache to q8_0, or step down a quantisation, to go longer.
The largest Granite. Dense 29B at Q4 is a comfortable 24 GB fit.
Hardware requirements What hardware do I need to run Granite 4.1 30B? →At Q4_K_M with an 8K context: a 24 GB GPU (RTX 4090) or a 32 GB Mac (M4). Minimum, recommended, high-quality and long-context tiers, with all 114 devices checked at every quantisation.
The VRAM budget
Quantisation ladder
| Quant | Weights | Total @ 8K | Max context | Tok/s | Quality | Fit |
|---|---|---|---|---|---|---|
| Q8_0 | 28.6 GB | 31.2 GB | — | ~2.8 | −0.1% ppl | 8.8 GB over |
| Q6_K | 22.1 GB | 24.7 GB | — | ~5.7 | −0.4% ppl | 2.3 GB over |
| Q5_K_M | 19.1 GB | 21.7 GB | 10K | 9.1 | −0.8% ppl | Fits |
| Q4_K_M | 16.3 GB | 18.9 GB | 22K | 11 | −1.9% ppl | Recommended |
| Q3_K_M | 13.2 GB | 15.8 GB | 34K | 13 | −5.4% ppl | Long context |
| Q2_K | 11.3 GB | 13.9 GB | 42K | 15 | −15% ppl | Long context |
Quality is the published perplexity delta against f16 weights. Max context assumes an f16 KV cache; q8_0 roughly doubles it.
How to run it
$ ollama pull granite4.1:30b $ OLLAMA_CONTEXT_LENGTH=8192 \ ollama run granite4.1:30b
The default. One binary, a model registry, an OpenAI-compatible port. More on Ollama.
Related models on a Tesla M40 24 GB
| Model | Total | Tok/s est. | |
|---|---|---|---|
| Granite 4.1 8B 8.79B · same family |
Q4_K_M · 6.8 GB | 35 | Runs great |
| Granite 4.1 3B 3.4B · same family |
Q4_K_M · 3.1 GB | 91 | Runs great |
| Muse Glimmer 30B 29.8B · similar size |
Q4_K_M · 17.5 GB | 10 | Runs great |
| Qwen3.8 27B 27.8B · similar size |
Q4_K_M · 16.7 GB | 11 | Runs great |
| Qwen3.6 27B 27.8B · similar size |
Q4_K_M · 16.7 GB | 11 | Runs great |
| Gemma 3 27B 27.4B · similar size |
Q4_K_M · 17.0 GB | 11 | Runs great |
| Qwen3 30B-A3B 30.5B MoE · similar size |
Q4_K_M · 18.5 GB | 36 | Runs great |
Granite 4.1 30B on other hardware
| Device | Total | Tok/s est. | |
|---|---|---|---|
| GeForce RTX 4060 Laptop 7.0 GB usable · 256 GB/s |
18.9 GB | ~2.8 | CPU offload |
| GeForce RTX 3060 12 GB 10.6 GB usable · 360 GB/s |
18.9 GB | ~3.8 | CPU offload |
| M4 · 16 GB 10.7 GB usable · 120 GB/s |
18.9 GB | — | Won't fit |
| GeForce RTX 4090 22.4 GB usable · 1008 GB/s |
18.9 GB | 38 | Runs great |
| Radeon RX 7900 XTX 22.4 GB usable · 960 GB/s |
18.9 GB | 36 | Runs great |
| M4 · 32 GB 24.0 GB usable · 120 GB/s |
18.9 GB | 4.1 | Runs great |
| M3 Max · 64 GB 48.0 GB usable · 400 GB/s |
18.9 GB | 14 | Runs great |