Qwen3 4B: how much RAM do you need?
Qwen3 4B: butuh RAM berapa?
About 2.2 GB for the weights at 4-bit, and about 4.4 GB in total with an 8K context (7.7 GB at 32K). Numbers are estimates.
Sekitar 2.2 GB untuk bobot pada 4-bit, dan sekitar 4.4 GB total dengan konteks 8K (7.7 GB pada 32K). Angkanya perkiraan.
Specs
Spesifikasi
| Parameters | Parameter | 4.0B |
|---|---|---|
| Layers / KV heads | Layer / kepala KV | 36 / 8 |
| Native context | Konteks asli | 40K tokens |
| License | Apache 2.0 |
Memory by context length
Memori menurut panjang konteks
| Context | Konteks | KV cache | Q4 | Q8 | FP16 |
|---|---|---|---|---|---|
| 4K | 0.6 GB | 3.8 GB | 5.5 GB | 9.1 GB | |
| 8K | 1.1 GB | 4.4 GB | 6.1 GB | 9.6 GB | |
| 16K | 2.2 GB | 5.5 GB | 7.2 GB | 11 GB | |
| 32K | 4.5 GB | 7.7 GB | 9.5 GB | 13 GB |
Totals include the weights, the KV cache and about 1 GB of runtime overhead. The KV cache column shows the memory the context adds. Real use varies with the app and settings.
Total mencakup bobot, KV cache, dan sekitar 1 GB beban runtime. Kolom KV cache menunjukkan memori tambahan dari konteks. Pemakaian nyata bergantung pada aplikasi dan pengaturan.
Good to know
Perlu diketahui
- Text only: it cannot read images. Use a vision model for that.
- Hanya teks: tidak bisa membaca gambar. Pakai model vision untuk itu.
Source: Hugging Face model card · checked 2025-07-26 (model files), page built from the model's configdicek 2025-07-26 (berkas model), halaman dibuat dari konfigurasi model