What GPU do I need to run HuggingFaceTB/SmolLM-135M-Instruct?
135M parameters, published in BF16. View on Hugging Face
SmolLM-135M-Instruct is published by HuggingFaceTB on Hugging Face, with 32,481 downloads and 144 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 4070 Super | 1 | $0.121/hr |
| FP8 (quantized) | 0.1 GB | 0.2 GB | RTX 4070 Super | 1 | $0.121/hr |
| INT4 (quantized) | 0.1 GB | 0.1 GB | RTX 4070 Super | 1 | $0.121/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 SmolLM-135M-Instruct at its published (BF16) precision: 1× RTX 4070 Super, at $0.121/hr per GPU ($0.121/hr total). Quantizing to FP8 or INT4 (rows above) can cost less, but requires a compatible quantized checkpoint to exist for this model.
SmolLM-135M-Instruct: 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 |
|---|---|
| 2K (model maximum) | 0.04 GB |
Computed from the layer, head and window counts in the model's own configuration (HuggingFaceTB/SmolLM-135M-Instruct), at 16 bits per cached value. Each concurrent sequence needs its own cache, on top of the weights.
SmolLM-135M-Instruct: common questions
How much VRAM does SmolLM-135M-Instruct 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 SmolLM-135M-Instruct fit on one RTX 4070 Super?
39, by VRAM alone. That card carries 12.0 GB and one copy needs 0.3 GB at BF16, on a live rate of $0.121/hr for the whole card. Throughput is not modelled here, so 39 copies is not 39 times the requests served.
Weight-to-VRAM math, the fit rules, and how live prices are normalized: full methodology.
More SmolLM-1 models
- SmolLM-135M (135M, F32)
- SmolLM-135M-Instruct-FP32 (135M, F32)
- SmolLM-360M-Instruct (362M, BF16)
- SmolLM-1.7B (1.7B, F32)
Lineage
Based on SmolLM-135M.
Alternatives at this size
Other models for text-generation within about a third of SmolLM-135M-Instruct'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 SmolLM-135M-Instruct
Fits on an 8 GB GPU at BF16: every model that fits in 8 GB.
Best chat and assistants models: how SmolLM-135M-Instruct 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.