Versus / Qwen3 4B

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

ParametersParameter4.0B
Layers / KV headsLayer / kepala KV36 / 8
Native contextKonteks asli40K tokens
LicenseApache 2.0

Memory by context length

Memori menurut panjang konteks

ContextKonteksKV cacheQ4Q8FP16
4K0.6 GB3.8 GB5.5 GB9.1 GB
8K1.1 GB4.4 GB6.1 GB9.6 GB
16K2.2 GB5.5 GB7.2 GB11 GB
32K4.5 GB7.7 GB9.5 GB13 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.
Try it with your own memory in the calculator →Coba dengan memorimu sendiri di kalkulator →

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