4-bit · 8K
7.6 GiBUseful starting point for local evaluation and cost-sensitive inference.
Budget the original Qwen3-8B text model using its 36-layer config: compare 4-bit and BF16 weights, 8K or 32K context, and concurrent requests.
Architecture values were refreshed from the official model config.
Evidence · Nov 26, 2026 ↗Weights establish the floor. Context, concurrent sequences, cache precision, and runtime overhead determine whether the deployment remains stable.
Useful starting point for local evaluation and cost-sensitive inference.
Preserves original weight precision and establishes a conservative serving baseline.
Planning estimates, not a GPU benchmark. Reviewed by the ModelFit team on November 23, 2026.
At 8,192 total tokens and one active sequence, our 4-bit planning model uses about 7.6 GiB before free-space reserve, or 8.9 GiB of capacity with a 15% reserve. An 8 GiB budget is therefore tight under these assumptions; 12 or 16 GiB gives more room. BF16 starts around 18.9 GiB before reserve, or 22.2 GiB with the same reserve. Actual fit depends on the quantized artifact, runtime, prefill peak, and other GPU users.
This page covers Qwen/Qwen3-8B, the original dense text checkpoint. It does not describe Qwen2.5, Qwen3-VL, a MoE model, or a later Qwen3 release. The pinned configuration has 36 layers, 32 query heads, 8 KV heads, and an explicit head dimension of 128. Do not substitute a 40-layer configuration from another model.
For an FP16/BF16 full-attention cache, bytes = 2 × layers × KV heads × head dimension × 2 bytes × active tokens × sequences. For this checkpoint that is 147,456 bytes per token per sequence. Both keys and values are included. Weight quantization does not automatically quantize the KV cache.
| Weight precision | Ideal packed weights | Worksheet weight allowance |
|---|---|---|
| 16-bit | 15.27 GiB | 15.73 GiB (3% allowance) |
| 8-bit | 7.64 GiB | 8.25 GiB (8% allowance) |
| 4-bit | 3.82 GiB | 4.43 GiB (16% allowance) |
The official BF16 safetensors index reports 15.26 GiB of tensor bytes (16,381,470,720 bytes). That is a checkpoint cross-check, not a measured GPU peak. The ideal 4-bit number assumes every parameter takes half a byte; real GGUF/AWQ/GPTQ files can retain some tensors at higher precision and carry scales and metadata. The worksheet’s allowances (3% BF16, 8% 8-bit, 16% 4-bit) are assumptions, not measured sizes for a particular artifact.
| Tokens / sequence | Sequences | KV cache | Weights + KV + workspace | Capacity with 15% free |
|---|---|---|---|---|
| 8,192 | 1 | 1.12 | 7.55 | 8.89 |
| 8,192 | 4 | 4.50 | 10.93 | 12.86 |
| 32,768 | 1 | 4.50 | 10.93 | 12.86 |
| 32,768 | 4 | 18.00 | 24.43 | 28.74 |
Tokens here mean prompt plus generated tokens retained in each sequence, including thinking tokens. Four sequences each holding 32K tokens have four times the cache of one 32K sequence in this full-residency estimate. Prefix sharing, paging, cache quantization, and CPU offload can change residency; none is silently assumed here. Workspace is max(2 GiB, 10% of planned weights), then capacity = subtotal ÷ 0.85. Long prefill and graphs may exceed that workspace estimate.
The official card states 32,768 tokens natively and 131,072 with YaRN. The pinned config has max_position_embeddings = 40,960 and rope_scaling = null. These are distinct facts: this page starts at the card’s native limit, and it does not treat 40,960 as a native-context claim or 128K as automatically enabled. Longer context needs the documented runtime/YaRN setup and enough cache memory; a calculator result alone does not validate quality at that length.
For a 12/16 GiB memory budget, start with a compatible 4-bit artifact, one request, and a bounded context. A 24 GiB budget provides more space for BF16 at 8K under this model, but four 32K requests still need a new budget. Smaller cards may run with a shorter context, different artifact, or offload; latency and host-RAM costs must be tested. GPU labels may use a different GB/GiB convention: use the available memory reported on your machine. A memory fit says nothing about tokens per second or software/kernel compatibility.
For multiple GPUs, check actual runtime tensor-parallel support, interconnect, and per-device peaks. Eight KV heads limit simple KV-head sharding; dividing the entire memory total by an arbitrary GPU count is unsafe. The worksheet below lets you test context, cache precision, and GPU count, with the model preselected.
No GPU run or throughput measurement was performed for these pages. The tables are reproducible arithmetic checked against official configuration dimensions. Use the memory methodology for assumptions, the other Qwen3 size for a capacity comparison, or the separate Qwen2.5 profile if that is your actual checkpoint.
b968826d9c46dd6066d109eabc6255188de91218ModelFit links to Flatkey, a related commercial GPU service. Those links are promotional and do not establish stock, pricing, independent endorsement, or a benchmark result.