FitMyGPU

Will It Fit?

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

Model pages and release notes are included here too.

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

vLLM estimates use the selected GPU memory utilization. Transformers stays a fixed 4K single-request baseline.

Fits on selected GPU

DeepSeek R1 Distill Qwen 14B · vLLM · Official BF16 checkpoint

Required GPU VRAM (0.9 budget)

19.0 GB

Core estimate: 17.1 GB. Against RTX 4090 24GB, this leaves 6.7 GB of headroom.

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

Quick read

Selected GPU

RTX 4090 24GB

Runtime

vLLM

Load dtype

BF16

GPU utilization

0.9

GPU count

1

KV cache dtype

BF16

Context length

4,096

Current concurrency

1

Max concurrency @ context

7

Class

Consumer

Bandwidth

1,008 GB/s

Nominal VRAM

24 GB

Core estimate

17.1 GB

Required GPU VRAM (0.9 budget)

19.0 GB

Headroom

6.7 GB

GPU compare

What fits this setup

GPUStatusHeadroomMax conc.
GB200 NVL72 GPU 186GBFits180.7 GB184
B200 180GBFits174.2 GB178
H200 141GBFits132.4 GB135
RTX PRO 6000 96GBFits84.0 GB86
A100 80GBFits66.9 GB68
H100 80GBFits66.9 GB68
L40 48GBFits32.5 GB34
A100 40GBFits23.9 GB25
RTX 5090 32GBFits15.3 GB16
RTX 3090 24GBFits6.7 GB7
RTX 4090 24GBFits6.7 GB7

Breakdown

Where the memory goes

Weights

14B resident parameters at 1.06 bytes each. Calibrated from the official checkpoint profile.

14.8 GB

KV cache

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

0.8 GB

Runtime / safety overhead

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

1.6 GB

Weights = parameter count × bytes per parameter.

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

Show the substituted formulas

Weights

parameter count × bytes per weight

14B × 1.06 = 14.8 GB

The official DeepSeek-R1-Distill-Qwen-14B checkpoint totals about 14.77 GB on Hugging Face.

KV cache

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

1 × 196,608 × 2 × 8 × 128 × 2 = 0.8 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 15.6 GB) = 1.6 GB

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

Model

Selected model

DeepSeek R1 Distill Qwen 14B

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

About model

Total params

14B

Active params

Dense model

Layers

48

Hidden size

5,120

Attention heads

40

KV heads

8

KV-bearing layers

48