Qwen / Qwen3

Qwen3-32B

Plan the original Qwen3-32B text checkpoint with its explicit 128-dimensional attention heads. Separate weight precision, KV cache, workspace, and deployment headroom.

32.8B parameters
ArchitectureDense transformer · GQA
Native context32K tokens
LicenseApache 2.0
Q4 · 8K estimate21.7 GiB
Verified public config

Architecture values were refreshed from the official model config.

Evidence · Nov 26, 2026 ↗
Memory envelope

What changes the fit.

Weights establish the floor. Context, concurrent sequences, cache precision, and runtime overhead determine whether the deployment remains stable.

Efficient

4-bit · 8K

21.7 GiB

Useful starting point for local evaluation and cost-sensitive inference.

Quality-first

BF16 · 8K

71.2 GiB

Preserves original weight precision and establishes a conservative serving baseline.

Checkpoint-specific budget

How much VRAM does Qwen3-32B need?

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 21.7 GiB before free-space reserve, or 25.5 GiB of capacity with a 15% reserve. A 24 GiB card is a conditional, tighter deployment, not a comfortable fit promised by this worksheet. BF16 starts around 71.2 GiB before reserve, or 83.8 GiB with the same reserve. Actual fit depends on the quantized artifact, runtime, prefill peak, and other GPU users.

Use the right model and attention dimensions

This page covers Qwen/Qwen3-32B, 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 64 layers, 64 query heads, 8 KV heads, and an explicit head dimension of 128. Do not derive the head dimension as hidden size ÷ query heads (5120 ÷ 64 = 80): the config explicitly sets head_dim to 128.

For an FP16/BF16 full-attention cache, bytes = 2 × layers × KV heads × head dimension × 2 bytes × active tokens × sequences. For this checkpoint that is 262,144 bytes per token per sequence. Both keys and values are included. Weight quantization does not automatically quantize the KV cache.

Weight floor, artifact overhead, and runtime are different

Weights only, using the model card’s rounded 32.8B parameter count
Weight precisionIdeal packed weightsWorksheet weight allowance
16-bit61.09 GiB62.93 GiB (3% allowance)
8-bit30.55 GiB32.99 GiB (8% allowance)
4-bit15.27 GiB17.72 GiB (16% allowance)

The official BF16 safetensors index reports 61.02 GiB of tensor bytes (65,524,246,528 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.

Context and concurrency change the answer

4-bit weights, FP16 KV, no offload or prefix sharing; estimates in GiB
Tokens / sequenceSequencesKV cacheWeights + KV + workspaceCapacity with 15% free
8,19212.0021.7225.55
8,19248.0027.7232.61
32,76818.0027.7232.61
32,768432.0051.7260.84

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.

32K native context is not the 40,960 config field

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.

Choose hardware with an explicit operating envelope

Compare 24, 48, and 80 GiB budgets by workload. At 8K/one sequence, 4-bit is above our 24 GiB reserve target; shorter context or a smaller artifact can alter that. A 48 GiB budget gives more room for 4-bit and concurrent cache. BF16 can be made to run within 80 GiB under some runtime settings, but our conservative 15% reserve target is higher; do not turn that into an unconditional 80 GiB guarantee. 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.

Validate your deployment before committing capacity

  1. Record the exact model revision, quantization file and size, runtime version, GPUs, and available memory.
  2. Load with the intended maximum total tokens and active sequence limit. Start with one bounded request.
  3. Measure process/device peak during both long prompt prefill and decode; repeat with the intended concurrent requests.
  4. Allow for runtime cache reservations, graph capture, other processes, and uneven multi-GPU allocation. If it fails, lower total tokens or concurrency first, then reconsider artifact precision or offload.

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.

Sources and disclosure

ModelFit links to Flatkey, a related commercial GPU service. Those links are promotional and do not establish stock, pricing, independent endorsement, or a benchmark result.

Interactive plan

Tune Qwen3.

The worksheet starts with this model selected. Adjust context, precision, cache, and GPU count for your workload.

Deployment worksheetMODEL / GPU FIT
Calculated estimate · v1.0.0
01
QwenDense transformer · GQADetails ↗
02
Weight format
Lower precision reduces weight memory but requires a compatible checkpoint and runtime.
Context
Maximum active tokens per sequence; longer context increases KV cache.
Concurrent sequences
Requests kept active at once; cache memory scales with this value.
GPU count
Tensor-parallel devices sharing model weights and supported cache shards.
03

FP8 halves cache memory where supported.

Recommended VRAM
26 GiBper GPU × 1

Includes 15% operating headroom for the selected runtime profile.

Estimated allocation per GPU22 GiB each
Weights 18 GiBKV cache 2.0 GiBRuntime 2.0 GiB

Formula v1.0.0 · official model configurations checked Nov 26, 2026. GPU-hour figures use the Flatkey price index where available, updated Nov 26, 2026, 4:00 PM; unsupported profiles remain labeled references.

How to read this result
1. Recommended VRAM

The estimated workload divided by the 85% planning ceiling, leaving 15% runtime headroom.

2. Memory allocation

Weights, KV cache and runtime workspace explain what consumes memory before headroom.

3. Example cloud fits

Capacity and price-index shortlists—not performance benchmarks or availability guarantees.

Command template · vLLMvllm serve YOUR_COMPATIBLE_QUANTIZED_MODEL_ID --tensor-parallel-size 1 --max-model-len 8192 --quantization YOUR_MATCHING_BACKEND

4-bit is a memory assumption, not a checkpoint choice. Replace both placeholders with a compatible quantized artifact and its vLLM backend.