What GPU do I need to run HuggingFaceTB/SmolLM2-135M?
135M parameters, published in BF16. View on Hugging Face
SmolLM2-135M is published by HuggingFaceTB on Hugging Face, with 2,542,296 downloads and 230 likes to date. It's a LlamaForCausalLM 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 | 0.3 GB | 0.3 GB | RTX 3070 | 1 | $0.088/hr |
| FP8 (quantized) | 0.1 GB | 0.2 GB | RTX 5060 Ti | 1 | $0.180/hr |
| INT4 (quantized) | 0.1 GB | 0.1 GB | RTX 3070 | 1 | $0.088/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 SmolLM2-135M at its published (BF16) precision: 1× RTX 3070, at $0.088/hr per GPU ($0.088/hr total). Quantizing to FP8 or INT4 (rows above) can cost less, but requires a compatible quantized checkpoint to exist for this model.
SmolLM2-135M: 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.
Grouped-query attention: every layer caches keys and values for a few shared KV heads. Cached per token: 23,040 bytes at 16-bit.
| Context | KV cache, one sequence |
|---|---|
| 4K | 0.09 GB |
| 8K (model maximum) | 0.18 GB |
Computed from the layer, head and window counts in the model's own configuration (HuggingFaceTB/SmolLM2-135M), at 16 bits per cached value. Each concurrent sequence needs its own cache, on top of the weights.
SmolLM2-135M: common questions
How much VRAM does SmolLM2-135M need?
0.3 GB at BF16, 0.2 GB at FP8 (quantized), 0.1 GB at INT4 (quantized). All of those sit under 6 GB, the smallest capacity this page reasons about, so VRAM is not what limits where this model runs. The 0.3 GB of weights plus inference overhead is the whole requirement.
How many copies of SmolLM2-135M fit on one RTX 3070?
26, by VRAM alone. That card carries 8.0 GB and one copy needs 0.3 GB at BF16, on a live rate of $0.088/hr for the whole card. Throughput is not modelled here, so 26 copies is not 26 times the requests served.
Weight-to-VRAM math, the fit rules, and how live prices are normalized: full methodology.
More SmolLM2 models
- SmolLM2-135M-Instruct (135M, BF16)
- SmolLM2-360M (362M, BF16)
- SmolLM2-360M-Instruct (362M, BF16)
- SmolLM2-1.7B (1.7B, BF16)
- SmolLM2-1.7B-Instruct (1.7B, BF16)
Lineage
Quantized and fine-tuned versions
Alternatives at this size
Other models for text-generation within about a third of SmolLM2-135M's 135M parameters, from other model lines.
- gpt2 (137M, F32)
- macbert4csc-base-chinese (102M, F32)
- gpt-neo-125m (150M, F32)
- mamba-130m-hf (129M, F32)
- openai-gpt (120M, F32)
More on SmolLM2-135M
Fits on an 8 GB GPU at BF16: every model that fits in 8 GB.
Best chat and assistants models: how SmolLM2-135M ranks against the rest.
Compare SmolLM2-135M with Qwen3-0.6B, Qwen2.5-1.5B-Instruct, Llama-3.2-1B-Instruct, Qwen2.5-0.5B-Instruct, Qwen3-1.7B.
Related reading: RTX 3070 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.
Your own GPU cloud accounts
One console for the GPU clouds you already rent from. Your keys stay on your machine.
$20 a month, flat