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.

12.2B dense • 128,000 context • 8 KV heads

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

Does not fit on selected GPU

Mistral Nemo 12B · vLLM · Official BF16 checkpoint

Required GPU VRAM (0.9 budget)

31.0 GB

Core estimate: 27.9 GB. Against RTX 4090 24GB, this leaves 5.2 GB of deficit.

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

Quick read

Selected GPU

RTX 4090 24GB

Runtime

vLLM

Load dtype

FP16

GPU utilization

0.9

GPU count

1

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

27.9 GB

Required GPU VRAM (0.9 budget)

31.0 GB

Deficit

5.2 GB

GPU compare

What fits this setup

GPUStatusHeadroomMax conc.
GB200 NVL72 GPU 186GBFits168.7 GB165
B200 180GBFits162.3 GB159
H200 141GBFits120.4 GB118
RTX PRO 6000 96GBFits72.1 GB71
A100 80GBFits54.9 GB54
H100 80GBFits54.9 GB54
L40 48GBFits20.6 GB21
A100 40GBFits12.0 GB12
RTX 5090 32GBFits3.4 GB4
RTX 3090 24GBOOM-5.2 GB0
RTX 4090 24GBOOM-5.2 GB0

Breakdown

Where the memory goes

Weights

12.2B resident parameters at 2.01 bytes each. Calibrated from the official checkpoint profile.

24.5 GB

KV cache

Concurrency 1, context 4,096, 40 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.

2.5 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

12.2B × 2.01 = 24.5 GB

Mistral's official consolidated BF16 weights for Mistral Nemo are about 24.5 GB.

KV cache

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

1 × 163,840 × 2 × 8 × 160 × 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 25.3 GB) = 2.5 GB

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

Model

Selected model

Mistral Nemo 12B

12.2B dense • 128,000 context • 8 KV heads

About model

Total params

12.2B

Active params

Dense model

Layers

40

Hidden size

5,120

Attention heads

32

KV heads

8

KV-bearing layers

40