# SmolLM2-1.7B-Instruct GPU requirements

SmolLM2-1.7B-Instruct has 1.7B parameters. To serve it, plan for about 4.1 GB of GPU memory in 16-bit, 2.1 GB in 8-bit or 1.0 GB in 4-bit, including about 20% for the KV cache and activations.

[Deploy it on Arrakis](/console/#/models?model=HuggingFaceTB/SmolLM2-1.7B-Instruct).

## What it takes to serve it

| Precision | Memory and the smallest setup |
|---|---|
| 16-bit | 4.1 GB: one [RTX 4090](/gpus/rtx-4090.html.md) or [RTX 3090](/gpus/rtx-3090.html.md) |
| 8-bit | 2.1 GB: one [RTX 4090](/gpus/rtx-4090.html.md) or [RTX 3090](/gpus/rtx-3090.html.md) |
| 4-bit | 1.0 GB: one [RTX 4090](/gpus/rtx-4090.html.md) or [RTX 3090](/gpus/rtx-3090.html.md) |

## What it takes to fine-tune it

| Method | Memory and the smallest setup |
|---|---|
| QLoRA | 1.2 GB: one [RTX 4090](/gpus/rtx-4090.html.md) or [RTX 3090](/gpus/rtx-3090.html.md) |
| LoRA | 4.1 GB: one [RTX 4090](/gpus/rtx-4090.html.md) or [RTX 3090](/gpus/rtx-3090.html.md) |
| Full fine-tuning | 27 GB: one [RTX 5090](/gpus/rtx-5090.html.md) |

## About the model

| | |
|---|---|
| Parameters | `1.7B` |
| Context window (tokens) | `8,192` |
| Published in | `BF16` |
| License | `apache-2.0` |
| Released | `2024-10-31` |
| Weights | [HuggingFaceTB/SmolLM2-1.7B-Instruct](https://huggingface.co/HuggingFaceTB/SmolLM2-1.7B-Instruct) |

## Serve it yourself

```
vllm serve HuggingFaceTB/SmolLM2-1.7B-Instruct --tensor-parallel-size 1
```

## Questions

**How much GPU memory does SmolLM2-1.7B-Instruct need?** To serve it, about 4 GB in 16-bit, 2 GB in 8-bit, 1 GB in 4-bit, including about 20% for the KV cache and activations. To fine-tune it, about 1 GB with QLoRA, 4 GB with LoRA and 27 GB for full fine-tuning with Adam, before activations.

**Can I run SmolLM2-1.7B-Instruct on one GPU?** Yes. In 16-bit it needs about 4.1 GB, which fits on one RTX 4090 or RTX 3090.

**What does it cost to run SmolLM2-1.7B-Instruct?** In 16-bit it needs one RTX 4090 or RTX 3090; in 4-bit, one RTX 4090 or RTX 3090. Each setup on this page shows the lowest price per GPU-hour on Arrakis right now, and you pay by the hour from a prepaid balance.

**How do I deploy SmolLM2-1.7B-Instruct on Arrakis?** Open Models in the Arrakis console, paste HuggingFaceTB/SmolLM2-1.7B-Instruct, choose vLLM, SGLang or llama.cpp, and rent a GPU it fits on. You get an OpenAI-compatible endpoint with its own API key, and root SSH to the machine.


More models: [/models](/models.html.md).
