// Qwen · Text LLM
Qwen2-7B: VRAM & local deployment
7.62B parameters. About 6.0 GB at 4-bit and 17.7 GB at BF16 with one 8K-token request.
released 2024-06-04licence: Commercial OKmemory figures are estimates
01Specs
| Publisher | Alibaba Qwen · Qwen |
|---|---|
| Family / series | Qwen · Qwen2 |
| Type | Text LLM (text-generation) |
| Parameters | 7.62B Source: counted from official safetensors weights |
| Context length | 128K tokens (131,072)max_position_embeddings in config.json |
| Architecture | 28 layers · GQA |
| Released weights | BF16 · 15.2 GBdownload |
| Licence | Apache-2.0 · Commercial OKPermissive licence (Apache-2.0 / MIT / CC-BY / OpenMDW): commercial use allowed. |
| Released | 2024-06-04 (Hugging Face repo created) |
02How much VRAM it needs (estimate)
Total = weights + 10% + 0.5GB overhead + KV cache for one request (FP16 KV). More concurrent users multiply the KV column.
| Precision | Weights | Total @ 8K | Total @ 32K | Total @ 128K | Smallest GPU | Mac |
|---|---|---|---|---|---|---|
| BF16 / FP16 (original) | 15.2 GB | 17.7 GB | 19.1 GB | 24.8 GB | RTX 4090 24GB | Mac 36GB |
| FP8 / INT8 / Q8_0 | 8.1 GB | 9.9 GB | 11.3 GB | 16.9 GB | 12GB GPU | Mac 24GB |
| 4-bit (Q4_K_M / AWQ / GPTQ-Int4) | 4.6 GB | 6.1 GB | 7.5 GB | 13.1 GB | 8GB GPU | Mac 16GB |
KV cache per request: 8K 0.5 GB · 32K 1.9 GB · 128K 7.5 GB
Bits per weight: BF16 16, FP8 8.5, 4-bit 4.85. “Fits” = total ≤ 90% of memory; Mac GPU can use ~2/3 of unified memory (≤36GB) or ~3/4 (larger). For MoE, all experts must be in memory, so size by total parameters. Method →
03How to run it
Only runtimes the publisher or the runtime’s official library names for this model.
- Transformers — mentioned in the official model card
- llama.cpp — official GGUF weights
- MLX — official MLX weights
- Ollama — in the official Ollama library · qwen2:7b
ollama run qwen2:7b 04Official repositories & quantised builds
7 official repo(s) from Qwen.
- Qwen2-7B main
- Qwen2-7B-Instruct Instruct
- Qwen2-7B-Instruct-GGUF Instruct/GGUF
- Qwen2-7B-Instruct-AWQ Instruct/AWQ
- Qwen2-7B-Instruct-GPTQ-Int4 Instruct/GPTQ/INT4
- Qwen2-7B-Instruct-GPTQ-Int8 Instruct/GPTQ/INT8
- Qwen2-7B-Instruct-MLX Instruct/MLX
05Other Qwen models
All 112 →| Model | Params | 4-bit total | Released |
|---|---|---|---|
| Qwen2-0.5B-Instruct · same series | 494M | 0.9 GB | 2024-06-03 |
| Qwen2-1.5B-Instruct · same series | 1.54B | 1.8 GB | 2024-06-03 |
| Qwen2-57B-A14B-Instruct · same series | 57.4B / 14B | 39.3 GB | 2024-06-04 |
| Qwen2-72B · same series | 72.7B | 51.7 GB | 2024-05-22 |
| Qwen-Image-2.1-Turbo | 7.12B | 5.2 GB | 2026-10-09 |
| Qwen-Image-2.1 | 7.12B | 5.2 GB | 2026-09-14 |
| Qwen3.8-Flash-Next | 180B / 6B | 121 GB | 2026-08-24 |
| Qwen3.8-2.4T-A95B | 2.4T / 95B | 1.60 TB | 2026-08-08 |
| Qwen3.8-27B | 27.8B | 19.6 GB | 2026-08-05 |
| Qwen3.6-27B | 27.8B | 19.6 GB | 2026-04-21 |
| Qwen3.6-35B-A3B | 36B / 3B | 24.6 GB | 2026-04-15 |
| Qwen3.5-0.8B | 873M | 1.2 GB | 2026-02-28 |
06Sources
Data checked 2024-06-06. Parameters, context and licence are copied from the official repository; memory figures are our estimates.