If the weights fit, does the model really fit?
VRAM is a budget, not a switch.
Why fitting a model, serving a model, and running it fast are different questions.
Model weights are only one part of GPU memory pressure; activations, KV caches, temporary buffers, and data movement also matter.
The model fits, but serving also needs cache, activations, and buffers.
The model “fits”—until inference starts
A checkpoint might occupy 7 GB on disk, but file size is not a reliable estimate of peak GPU memory: serialization format and on-disk dtype may differ from the tensors actually loaded. Even after the weights are resident, inference can also require activations, KV cache, temporary workspace, input/output buffers, allocator slack, and framework overhead.
A better estimate is a peak-live-memory budget, not a checkpoint-size comparison. For autoregressive models, KV-cache memory can grow with sequence length and batch size, so a model may load successfully and still fail only when a realistic request or concurrency level arrives.
The hierarchy is the design space
Think in tiers: GPU VRAM is usually fast and scarce; system RAM is larger but slower to access from the GPU; NVMe is larger again but significantly slower. Moving tensors between tiers creates latency and bandwidth costs. Keeping everything on the GPU might be impossible, but offloading the wrong component can destroy throughput.
An inference runtime can decide which components remain resident, what to prefetch before the next compute step, and what to evict when a memory budget is exceeded. Those decisions require understanding execution order, data dependencies, and whether tensors will be reused.
A useful planning exercise
Draw a timeline of the model's stages. For each stage, list the tensors it needs now, the tensors it will need next, and the tensors that can safely leave fast memory. Estimate the transfer volume between tiers and compare it to the compute saved or made possible.
The practical question is whether data movement lies on the critical path. If host↔device or storage transfers cannot be hidden by prefetching, overlap, or pipelining, they can dominate latency even when offloading makes the model fit. A system can therefore be correct and memory-feasible while still missing its throughput or latency target.
What I would measure
Peak allocated and reserved memory, device-level VRAM usage, KV-cache growth, latency by stage, host↔device transfer volume, cold and warm starts, throughput under concurrency, and output fidelity. Precision changes, quantization, pruning, tensor/pipeline parallelism, and offloading solve different constraints; do not collapse them into one vague claim that the model “fits.”
The principle
A resource limit is not always a dead end. It is a constraint that should shape scheduling, caching, and measurement. But “runs on my laptop” and “runs at useful speed” are different engineering achievements.