Mistral 7B Instruct v0.3: how much VRAM does it need?
Mistral 7B Instruct v0.3 has 7.25B parameters in 32 layers. It uses grouped-query attention: 32 query heads share 8 key-value heads, so its KV cache is 4× smaller than full multi-head attention would need. It takes up to 32,768 tokens of context; one user at that length needs 4.00 GiB of KV cache at FP16 on top of the weights.
13.50 GiB of weights, 1.00 GiB of KV cache and 954 MiB of vLLM's overhead. At INT4 the same workload needs 5.88 GiB.
- 32 layers
- hidden 4096
- 32/8 heads
- head_dim 128
- 32k max context
Mistral 7B Instruct v0.3 memory by precision and context
| Precision | 8k context | 32k context |
|---|---|---|
| BF16 | 15.43 GiBKV cache 1.00 GiB | 18.43 GiBKV cache 4.00 GiB |
| FP8 | 8.93 GiBKV cache 1.00 GiB | 11.93 GiBKV cache 4.00 GiB |
| INT4 | 5.88 GiBKV cache 1.00 GiB | 8.88 GiBKV cache 4.00 GiB |
One user, FP16 KV cache and vLLM's overhead on one GPU at its defaults for a card under 70 GB. Quantizing shrinks the weights, not the KV cache, so the saving narrows as the context grows.
Which single GPUs hold it
- BF16 (15.43 GiB): NVIDIA L4, Apple M4, NVIDIA A30, RTX 3090 / Ti
- FP8 (8.93 GiB): RTX 3060, NVIDIA T4, RTX 4060 Ti 16GB, RTX 4070 Ti Super
- INT4 (5.88 GiB): RTX 3060, NVIDIA T4, RTX 4060 Ti 16GB, RTX 4070 Ti Super
At 8k context for one user, the smallest cards first. A discrete card is budgeted at vLLM's default 92% of its memory, a unified-memory device at the share its GPU can address, and each carries vLLM's overhead at its own defaults.
How many users fit
| GPU | BF16 | FP8 | INT4 |
|---|---|---|---|
| RTX 4090 | 7 | 13 | 16 |
| RTX 5090 | 14 | 20 | 23 |
| RTX 6000 Ada | 29 | 35 | 38 |
| H100 SXM 80GB | 57 | 64 | 67 |
| RTX PRO 6000 Blackwell | 72 | 78 | 81 |
| AMD Ryzen AI Max+ 395 (128GB) | 73 | 79 | 82 |
| H200 141GB | 113 | 119 | 122 |
| B200 180GB | 147 | 154 | 157 |
Users at 8k context each, on one card. ✗: the weights leave no room for even one.
Fine-tuning Mistral 7B Instruct v0.3
| Method | Memory | Smallest GPU |
|---|---|---|
| Full fine-tune | 109.5 GiB | NVIDIA DGX Spark (GB10) |
| LoRA (rank 16, attention) | 15.18 GiB | RTX 4060 Ti 16GB |
| QLoRA (rank 16, attention) | 5.16 GiB | RTX 3060 |
Sequence length 2,048, batch size 1, gradient checkpointing on, Adam. Full fine-tuning keeps 16 bytes per parameter before activations; QLoRA stores the frozen base in 4-bit NF4.
Where the numbers come from
Weights are parameters × bytes per parameter. The KV cache is 2 × layers × key-value heads × head dimension × bytes × context × users. For Mistral 7B Instruct v0.3 that is 128.0 KiB per token at FP16. These are capacity-planning figures: the serving engine — vLLM, TGI, llama.cpp — and its paged-attention efficiency still move the real number.
More on KV cache size and on GQA, MQA and MLA.
Work with Mistral 7B Instruct v0.3
- Size it for your workload
- Fine-tuning memory
- vLLM parameters
- Model anatomy
- Its config.json, explained
- What its files say about serving it