Will It Fit?

Estimate single-GPU text inference VRAM across Transformers and vLLM with a compact, explainable breakdown.

32.5B dense • 131,072 context • 8 KV heads

Official profile: Official BF16 checkpoint. The official Qwen2.5-32B-Instruct checkpoint repository is about 65.5 GB on Hugging Face.

Quick mental model: Transformers stays a fixed single-request baseline, while vLLM exposes serving context and concurrency. Runtime presets still change the required card VRAM, and FP8 KV cache cuts the KV term roughly in half versus BF16.

Does not fit on selected GPU

Qwen 2.5 32B · vLLM · Official BF16 checkpoint

Required GPU VRAM (0.9 budget)

81.4 GB

Core estimate: 73.2 GB. Against RTX 4090 24GB, this leaves 55.6 GB of deficit.

At 4,096 tokens, the estimated max concurrency is 0 concurrent requests.

Quick read

Selected GPU

RTX 4090 24GB

Runtime

vLLM

KV cache dtype

BF16

Context length

4,096

Current concurrency

1

Max concurrency @ context

0

Class

Consumer

Bandwidth

1,008 GB/s

Nominal VRAM

24 GB

Core estimate

73.2 GB

Required GPU VRAM (0.9 budget)

81.4 GB

Deficit

55.6 GB

Breakdown

Where the memory goes

Weights

32.5B resident parameters at 2.02 bytes each. Calibrated from the official checkpoint profile.

65.5 GB

KV cache

Concurrency 1, context 4,096, 64 KV-bearing layers, 8 KV heads, BF16 cache storage.

1.1 GB

Runtime / safety overhead

Conservative buffer for allocator fragmentation, kernels, and runtime scratch space.

6.7 GB

Weights = parameter count × bytes per parameter.

KV cache grows with context length, KV-bearing layers, concurrent requests, and the selected KV cache dtype.

Hybrid Qwen3.5 layers also keep a static linear-attention state, and runtime presets can inflate the required card VRAM beyond the core estimate.

Show the substituted formulas

Weights

parameter count × bytes per weight

32.5B × 2.02 = 65.5 GB

The official Qwen2.5-32B-Instruct checkpoint repository is about 65.5 GB on Hugging Face.

KV cache

batch × effective KV tokens across attention layers × 2 × KV heads × head dim × bytes per KV element

1 × 262,144 × 2 × 8 × 128 × 2 = 1.1 GB

Longer context, deeper models, and larger batches all expand the cache linearly. BF16 controls the bytes per stored KV element.

Overhead

max(1.5 GB, 10% of weights + KV cache + linear state)

max(1.5 GB, 10% of 66.6 GB) = 6.7 GB

This leaves room for runtime buffers instead of claiming an unrealistically exact fit.

Tips

What to change next

Try 4-bit weights to cut the resident model footprint before touching anything else.

Reduce context length if KV cache is the fastest-growing term in the estimate.

Model

Selected model

Qwen 2.5 32B

32.5B dense • 131,072 context • 8 KV heads

About model

Architecture

Dense decoder-only transformer

Total params

32.5B

Active params

Dense model

Layers

64

Hidden size

5,120

Attention heads

40

KV heads

8

KV-bearing layers

64

Context length

131,072

Modality

Text

License

Apache 2.0

Assumptions

The calculator works in raw bytes, displays decimal GB, and keeps both the core tensor footprint and the runtime-adjusted card requirement explicit instead of pretending every engine uses the full card the same way.