Granite 4.2 3B VRAM requirements
Granite 4.2 3B has 3.7B parameters. With an 8K-token context and one request it needs about 3.46 GB of GPU memory at Q4_K_M, 4.94 GB at FP8 and 8.69 GB at FP16/BF16. The published weights take 6.82 GB (BF16). The smallest setup here that holds it at Q4_K_M with an 8K context is the RTX 4060 8GB; on one 24 GB RTX 3090 / 4090 it runs with its full 128K-token context.
3.46 GB at Q4_K_M, 8K context, one request
- FP8
- 4.94 GB
- FP16 / BF16
- 8.69 GB
- Published weights
- 6.82 GB
- Smallest setup, Q4_K_M
- RTX 4060 8GB
Worked example: Granite 4.2 3B with 32K tokens
Inputs: Granite 4.2 3B · Q4_K_M weights · 32,768 tokens of context · one request · FP16 KV cache
- Weights (3.7B at Q4_K_M)
- 2.06 GB
- KV cache (80 KB per token)
- 2.50 GB
- Buffers and runtime (0.5 GB + 10%)
- 979 MB
- Total
- 5.52 GB
The smallest setup here that holds it is the RTX 4060 8GB, with about 2.48 GB to spare. Change the inputs in the calculator
What makes Granite 4.2 3B's memory use different
Per token of context it adds 80 KB of FP16 cache; MiniCPM5 2B (2.5B), the nearest-sized model here with plain full attention, adds 42 KB, so Granite 4.2 3B needs 90% more.
How much VRAM does Granite 4.2 3B need?
Granite 4.2 3B needs 3.46 GB at Q4_K_M, 5.17 GB at Q8_0 and 8.69 GB at FP16 with 8,192 tokens of context and one request. Each total below is the weights plus the FP16 KV cache and the runtime overhead (0.5 GB plus 10%), and each row opens the calculator with that setting. What the GGUF names mean.
| Precision | Weights | Total | Smallest setup |
|---|---|---|---|
| As published (BF16) | 6.82 GB | 8.69 GB | RTX 3060 12GB |
| FP16 / BF16 | 6.82 GB | 8.69 GB | RTX 3060 12GB |
| FP8 / INT8 | 3.41 GB | 4.94 GB | RTX 4060 8GB |
| INT4 (AWQ / GPTQ) | 1.81 GB | 3.18 GB | RTX 4060 8GB |
| GGUF Q8_0 | 3.62 GB | 5.17 GB | RTX 4060 8GB |
| GGUF Q6_K | 2.79 GB | 4.26 GB | RTX 4060 8GB |
| GGUF Q5_K_M | 2.42 GB | 3.84 GB | RTX 4060 8GB |
| GGUF Q4_K_M | 2.06 GB | 3.46 GB | RTX 4060 8GB |
| GGUF IQ4_XS | 1.85 GB | 3.23 GB | RTX 4060 8GB |
| GGUF Q3_K_M | 1.67 GB | 3.02 GB | RTX 4060 8GB |
| GGUF IQ3_XXS | 1.41 GB | 2.73 GB | RTX 4060 8GB |
| GGUF Q2_K | 1.43 GB | 2.76 GB | RTX 4060 8GB |
Fine-tuning Granite 4.2 3B? Granite 4.2 3B VRAM for LoRA, QLoRA and full training.
Granite 4.2 3B GGUF files on Hugging Face
The 8 GGUF files llama.cpp picks for Granite 4.2 3B with -hf <repo>:<QUANT>, with the bytes the Hugging Face file list reported on 2026-09-29. Each total is that file plus the FP16 KV cache and 0.5 GB + 10%, one request. "vs estimate" compares the file with the bits-per-weight size the table above uses.
| Quant | File | Size | vs estimate | 8K | 32K | 128K |
|---|---|---|---|---|---|---|
| Q2_K | bartowski/ | 1.42 GB1,520,249,248 bytes | −1% | 2.74 GB | 4.81 GB | 13.1 GB |
| Q3_K_M | bartowski/ | 1.76 GB1,890,118,048 bytes | +6% | 3.12 GB | 5.19 GB | 13.4 GB |
| IQ4_XS | bartowski/ | 1.93 GB2,075,830,688 bytes | +4% | 3.31 GB | 5.38 GB | 13.6 GB |
| Q4_K_M | bartowski/ | 2.16 GB2,317,126,048 bytes | +5% | 3.56 GB | 5.62 GB | 13.9 GB |
| Q5_K_M | bartowski/ | 2.49 GB2,672,822,688 bytes | +3% | 3.93 GB | 5.99 GB | 14.2 GB |
| Q6_K | bartowski/ | 2.91 GB3,120,638,368 bytes | +4% | 4.38 GB | 6.45 GB | 14.7 GB |
| Q8_0 | bartowski/ | 3.63 GB3,892,652,448 bytes | ±0% | 5.18 GB | 7.24 GB | 15.5 GB |
| BF16 | bartowski/ | 6.82 GB7,323,461,760 bytes | ±0% | 8.69 GB | 10.8 GB | 19.0 GB |
GB here is GiB (1024³ bytes), as everywhere on this site; Hugging Face shows the Q4_K_M file as 2.3 GB, in 10⁹ bytes.
Which Granite 4.2 3B GGUF fits a 16, 24, 32, 48 or 80 GB GPU or a Mac
From the file sizes above: the largest file that fits each machine with an 8K context and 0.5 GB left free, the longest context it then has room for, and the longest context for Q4_K_M (2.16 GB). One request, FP16 KV cache.
| Hardware | Largest GGUF, 8K | Its longest context | Q4_K_M, longest context |
|---|---|---|---|
| RTX 5060 Ti 16GB | BF16, 6.82 GB | 87K | 128K (full) |
| RTX 4090 (24 GB) | BF16, 6.82 GB | 128K (full) | 128K (full) |
| RTX 5090 (32 GB) | BF16, 6.82 GB | 128K (full) | 128K (full) |
| L40S (48 GB) | BF16, 6.82 GB | 128K (full) | 128K (full) |
| H100 SXM (80 GB) | BF16, 6.82 GB | 128K (full) | 128K (full) |
| M4 Pro Mac (64 GB, 48 GB usable) | BF16, 6.82 GB | 128K (full) | 128K (full) |
| M4 Max Mac (128 GB, 96 GB usable) | BF16, 6.82 GB | 128K (full) | 128K (full) |
Run Granite 4.2 3B with llama.cpp or Ollama
llama-server -hf bartowski/granite-4.2-3b-GGUF:Q4_K_M -c 131072 granite-4.2-3b-Q4_K_M.gguf, 2.3 GB, from bartowski/
ollama run granite4.2:3b
Ollama library tag granite4.2:3b; its quant is Ollama's choice. Same context: /set parameter num_ctx 131072.
Granite 4.2 3B at 8K, 32K and 128K (full) tokens of context
All 40 layers use full attention. Each extra token of context adds 80 KB of FP16 cache per request. The last column is the smallest setup here, one card or a group, that holds it at Q4_K_M. How the KV cache works.
| Context | KV cache, FP16 | Total at Q4_K_M | Total at Q8_0 | Smallest setup, Q4_K_M |
|---|---|---|---|---|
| 8K tokens | 640 MB | 3.46 GB | 5.17 GB | RTX 4060 8GB |
| 32K tokens | 2.50 GB | 5.52 GB | 7.23 GB | RTX 4060 8GB |
| 128K tokens | 10.0 GB | 13.8 GB | 15.5 GB | RTX 4060 Ti 16GB |
How fast Granite 4.2 3B writes
Tokens per second for one request with 8,192 tokens of context, estimated from memory bandwidth. A dash means it does not fit on one card. Try other settings in the speed calculator.
| Hardware | Bandwidth | Q4_K_M | FP8 |
|---|---|---|---|
| RTX 3060 12GB | 360 GB/s | 62–89 | 43–60 |
| RTX 4090 | 1,008 GB/s | 149–232 | 107–161 |
| RTX 5090 | 1,792 GB/s | 226–378 | 170–269 |
| M4 Max Mac (128 GB) | 546 GB/s | 90–133 | 63–90 |
| M3 Ultra Mac Studio (512 GB) | 819 GB/s | 126–192 | 90–132 |
| H100 SXM | 3,350 GB/s | 326–607 | 260–450 |
| H200 | 4,800 GB/s | 386–768 | 318–587 |
Longest context on one GPU
How many tokens of context Granite 4.2 3B fits on a single card with one request, an FP16 KV cache and 0.5 GB left free. "Full" means the model's whole context window fits.
| GPU | Memory | Q4_K_M | Q8_0 | FP8 |
|---|---|---|---|---|
| RTX 3060 | 12 GB | 101K | 81K | 84K |
| RTX 4060 Ti 16GB | 16 GB | 128K (full) | 128K (full) | 128K (full) |
| RTX 3090 / 4090 | 24 GB | 128K (full) | 128K (full) | 128K (full) |
| RTX 5090 | 32 GB | 128K (full) | 128K (full) | 128K (full) |
| A100 40GB | 40 GB | 128K (full) | 128K (full) | 128K (full) |
| Mac, 64 GB unified memory | 48 GB | 128K (full) | 128K (full) | 128K (full) |
| L40S / RTX 6000 Ada | 48 GB | 128K (full) | 128K (full) | 128K (full) |
| A100 / H100 80GB | 80 GB | 128K (full) | 128K (full) | 128K (full) |
| Mac, 128 GB unified memory | 96 GB | 128K (full) | 128K (full) | 128K (full) |
| H200 | 141 GB | 128K (full) | 128K (full) | 128K (full) |
| B200 | 180 GB | 128K (full) | 128K (full) | 128K (full) |
Model details
- Parameters
- 3.7B (3,659,737,600)
- Layers
- All 40 layers use full attention
- Attention cache
- 8 KV heads × 64
- Context length
- 131,072 tokens
- Published weights
- 6.82 GB (BF16)
- On Hugging Face
- ibm-granite/
granite-4.2-3b
Why this estimate looks this way
At Q4_K_M and an 8K-token context, Granite 4.2 3B uses 2.06 GB for weights, 640 MB for its FP16 KV cache and 787 MB for estimated runtime overhead, totaling 3.46 GB. The overhead is a 0.5 GB base plus 10% of weights and cache.
The architecture and published checkpoint size come from the model's config.json and weight files. These are estimates rather than measured peak memory; inference engines can reserve extra buffers or preallocate the full configured cache.
Granite 4.2 3B next to similar-sized models
The three models here closest to it in parameter count, at Q4_K_M with 8,192 tokens of context.
| Model | Parameters | Total | KV per token | Smallest setup |
|---|---|---|---|---|
| Granite 4.2 3B | 3.7B | 3.46 GB | 80 KB | RTX 4060 8GB |
| Nemotron 3 Nano 4B | 4.0B | 3.10 GB | 16 KB | RTX 4060 8GB |
| Spark-X2.5 4B | 4.1B | 3.47 GB | 36 KB | RTX 4060 8GB |
| MiniCPM5 2B | 2.5B | 2.42 GB | 42 KB | RTX 4060 8GB |
Granite 4.2 3B VRAM questions
How much VRAM do I need to run Granite 4.2 3B locally?
About 3.46 GB at Q4_K_M with an 8K context and one request, by the bits-per-weight estimate, and 8.69 GB at BF16. The Q4_K_M GGUF granite-4.2-3b-Q4_K_M.gguf in bartowski/
Can I run Granite 4.2 3B on a 24 GB GPU?
Yes. On the RTX 4090 (24 GB), the largest listed GGUF that fits with an 8K context and 0.5 GB free is BF16 (6.82 GB), with its full 128K-token context.
Which quantization of Granite 4.2 3B fits in 16 GB of VRAM?
On the RTX 5060 Ti 16GB, the largest listed GGUF that fits with an 8K context and 0.5 GB free is BF16 (6.82 GB), with up to 87K tokens of context. Q4_K_M (2.16 GB) runs with its full 128K-token context.
Can I run Granite 4.2 3B on a Mac?
On the M4 Pro Mac (64 GB, 48 GB usable), the largest listed GGUF that fits with an 8K context and 0.5 GB free is BF16 (6.82 GB), with its full 128K-token context. On the M4 Max Mac (128 GB, 96 GB usable), the largest listed GGUF that fits with an 8K context and 0.5 GB free is BF16 (6.82 GB), with its full 128K-token context. By default macOS lets the GPU use about 75% of unified memory.
How much more VRAM does Granite 4.2 3B need for 32K or 128K tokens of context?
Its FP16 KV cache is 640 MB at 8K, 2.50 GB at 32K, 10.0 GB at 128K for one request, so 128K adds 9.38 GB over 8K, plus 10% overhead. A q8_0 cache
Why does Granite 4.2 3B use more VRAM than its GGUF file size?
The file holds only the weights. At Q4_K_M with an 8K context: 2.16 GB of weights (the file's 2,317,126,048 bytes) + 640 MB of FP16 KV cache + 797 MB of compute buffers and runtime (0.5 GB + 10%) = 3.56 GB.
Badge for your model card
Paste it into a Hugging Face or GitHub README; it shows the Q4_K_M total above and links to this page. Q8_0 and FP16 badges.
Numbers read from the model files on Hugging Face on . Compare it with other models in the reproducible model and GPU report.