What it takes to serve it
GPU memory to run it for inference, with the smallest GPU setup that holds it and the lowest price on Arrakis right now.
| Precision | Memory and the smallest setup |
|---|---|
| 16-bit | 7.4 GB: one RTX 4090 or RTX 3090, RTX 3090 from $0.19 per GPU-hour |
| 8-bit | 3.7 GB: one RTX 4090 or RTX 3090, RTX 3090 from $0.19 per GPU-hour |
| 4-bit | 1.9 GB: one RTX 4090 or RTX 3090, RTX 3090 from $0.19 per GPU-hour |
What it takes to fine-tune it
QLoRA trains adapters on a 4-bit frozen model, LoRA on a 16-bit one, and full fine-tuning updates every weight. Figures are before activations, which grow with batch size and sequence length.
| Method | Memory and the smallest setup |
|---|---|
| QLoRA | 2.2 GB: one RTX 4090 or RTX 3090, RTX 3090 from $0.19 per GPU-hour |
| LoRA | 7.4 GB: one RTX 4090 or RTX 3090, RTX 3090 from $0.19 per GPU-hour |
| Full fine-tuning | 49 GB: one H100 or A100, H100 from $1.65 per GPU-hour |
About the model
From its card and files on Hugging Face. Memory figures here follow the GPU memory guide.
- Parameters
- 3.1B
- Context window (tokens)
- 32,768
- Published in
- BF16
- License
- other
- Released
- 2024-11-06
Deploy it on Arrakis
Open Models in the console, 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. Or run it yourself on any machine with enough GPU memory:
vLLM
vllm serve Qwen/Qwen2.5-Coder-3B-Instruct --tensor-parallel-size 1
Questions
Live prices for every GPU are on the GPU prices page.
How much GPU memory does Qwen2.5-Coder-3B-Instruct need?
To serve it, about 7 GB in 16-bit, 4 GB in 8-bit, 2 GB in 4-bit, including about 20% for the KV cache and activations. To fine-tune it, about 2 GB with QLoRA, 7 GB with LoRA and 49 GB for full fine-tuning with Adam, before activations.
Can I run Qwen2.5-Coder-3B-Instruct on one GPU?
Yes. In 16-bit it needs about 7.4 GB, which fits on one RTX 4090 or RTX 3090.
What does it cost to run Qwen2.5-Coder-3B-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 Qwen2.5-Coder-3B-Instruct on Arrakis?
Open Models in the Arrakis console, paste Qwen/Qwen2.5-Coder-3B-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
- Qwen2.5-3B-Instruct3.1B
- Qwen2.5-VL-3B-Instruct3.8B
- Qwen3.5-2B2.3B
- Qwen2-VL-2B-Instruct2.2B
- SmolLM3-3B3.1B
- Llama-3.2-3B-Instruct3.2B