What GPU do I need to run stabilityai/stablelm-zephyr-3b?
2.8B parameters, published in BF16. View on Hugging Face
stablelm-zephyr-3b is published by stabilityai on Hugging Face, with 15,163 downloads and 261 likes to date. It's a StableLmForCausalLM model built for text-generation, published natively in BF16.
VRAM required & cheapest live GPU fit
Required VRAM = weight size at each precision times a flat 1.2 overhead for activations and fragmentation. The KV-cache grows with context and is not in that factor; it is listed per model below where the architecture is published. Full formula and assumptions: methodology.
| Precision | Weight size | Required VRAM | Cheapest live fit | GPUs needed | Est. $/hr (full fit) |
|---|---|---|---|---|---|
| BF16 | 5.2 GB | 6.2 GB | RTX 3060 | 1 | $0.110/hr |
| FP8 (quantized) | 2.6 GB | 3.1 GB | RTX 5060 Ti | 1 | $0.188/hr |
| INT4 (quantized) | 1.3 GB | 1.6 GB | RTX 3060 | 1 | $0.110/hr |
A GPU is only matched to a row if its hardware supports that precision, and the primary recommendation is always a single-GPU fit when one exists.
INT4 requires a quantized checkpoint actually published for this model, check its Hugging Face page before relying on this row.
Cheapest way to run stablelm-zephyr-3b at its published (BF16) precision: 1× RTX 3060, at $0.110/hr per GPU ($0.110/hr total). Quantizing to FP8 or INT4 (rows above) can cost less, but requires a compatible quantized checkpoint to exist for this model.
stablelm-zephyr-3b: KV cache by context length
The KV cache is the memory the attention layers hold for every token of context, on top of the weights. It is not part of the flat 1.2x overhead in the table above, grows with context length and with every concurrent request, and is why a long-context deployment needs more VRAM than the table shows.
Multi-head attention: every layer caches keys and values for every head. Cached per token: 327,680 bytes at 16-bit.
| Context | KV cache, one sequence |
|---|---|
| 4K | 1.3 GB |
Computed from the layer, head and window counts in the model's own configuration (stabilityai/stablelm-zephyr-3b), at 16 bits per cached value. Each concurrent sequence needs its own cache, on top of the weights.
stablelm-zephyr-3b: common questions
Does stablelm-zephyr-3b fit on a 8 GB GPU?
Yes. At BF16 it needs 6.2 GB of VRAM, so an 8 GB card holds it with 1.8 GB to spare. A 6 GB card is not enough for it at BF16.
What is the least VRAM stablelm-zephyr-3b can run in?
1.6 GB, at INT4 (quantized), which fits a 6 GB card, against 6.2 GB at BF16. That row assumes an INT4 checkpoint has actually been published for this model, so check its Hugging Face page before planning around it.
Weight-to-VRAM math, the fit rules, and how live prices are normalized: full methodology.
More StableLM models
- stablelm-3b-4e1t (2.8B, BF16)
- stablelm-2-zephyr-1_6b (1.6B, F16)
Alternatives at this size
Other models for text-generation within about a third of stablelm-zephyr-3b's 2.8B parameters, from other model lines.
- Qwen2.5-3B-Instruct (3.1B, BF16)
- phi-2 (2.8B, F16)
- Llama-3.2-3B-Instruct (3.2B, BF16)
- PowerMoE-3b (3.4B, F32)
- gemma-2-2b-it (2.6B, BF16)
More on stablelm-zephyr-3b
Fits on an 8 GB GPU at BF16: every model that fits in 8 GB.
Best chat and assistants models: how stablelm-zephyr-3b ranks against the rest.
Related reading: H100 pricing and specs, How much VRAM you need for LLMs, Serving LLMs with vLLM, vLLM vs TensorRT-LLM vs SGLang, and Best GPU for LLM inference.