Repository navigation
Releases
v1.3.0: sliding-window models sized like vLLM's allocator
Sliding-window models sized like vLLM's block allocator. A sliding-window layer does not hold just its window: vLLM keeps the window plus the tokens in flight for each request, groups layers to equal size with padding, and reports capacity as requests at full context × context. gpu-fit 1.3 follows the same rules.
- Gemma 3's local/global pattern (one global layer in six) is now read correctly. Before, every layer was treated as global, which overstated its KV cache several times.
- gpt-oss and Gemma 3 estimates now match vLLM's allocator, taken from the vLLM 0.31 and 0.34 source. Dense, MLA and hybrid models are unchanged. Sliding-window sizing is not yet measured on a GPU, and gpu-fit says so.
- New
--max-num-batched-tokens. The default followsvllm serve: 2,048 below 70 GiB, 8,192 from 70 GiB (A100 stays at 2,048) and 16,384 from 160 GiB. It matters only for sliding-window models. - The browser calculator adds Llama 3.1 8B, Llama 3.3 70B, Gemma 3 12B and Gemma 3 27B.
pip install -U gpu-fit
v1.2.0: vLLM 0.34 sizing, measured on an L40S
vLLM 0.34 sizing, measured on an L40S. vLLM 0.34 sizes the KV cache from the memory actually free after start-up instead of a fixed share of the card. gpu-fit 1.2 follows that rule by default.
- Measured on an AWS L40S 48 GB (g6e) with vLLM 0.34.0: dense Qwen3 models are at or below what vLLM reported, within 2.1%. On the same card, vLLM 0.34 holds 8.7% (Qwen3-8B) to 16.7% (Qwen3-14B) more KV tokens than 0.31.
--vllm-version 0.33keeps the earlier rule for vLLM 0.29 to 0.33. The suggestedvllm servecommand matches the version you pick.- The memory vLLM keeps free as a margin is shown on its own line, and the budget never exceeds the card.
- Notes when it matters: the FP8 KV cache failed to start on an L40S in our runs (it worked on L4 and A10G), and vision models on 0.34 are calibrated on one run, so treat them as provisional.
Full table and raw data: README → Accuracy, measured, and bench/results/l40s-vllm0.34.0.tsv.
pip install -U gpu-fit
v1.1.0: measured on three GPUs across Ampere and Ada
New measurements: A10G 24 GB (Ampere, AWS g5) and L4 24 GB (Ada, AWS g6), alongside the L40S, with vLLM 0.31.
- Ampere and Ada behave the same; FP8 weights and the FP8 KV cache both work on the A10G.
- vLLM's runtime overhead for dense text models grows with the model's width, so gpu-fit's default overhead now follows it (measured on hidden sizes 2,560 to 5,120). Dense models at 32K with the default KV cache are within 0.5% of what vLLM reported on all three GPUs.
- Mixture-of-experts, hybrid and vision models keep their L40S-measured values; MoE configs that use
moe_num_experts/moe_kare now recognised. - Qwen3-8B (16-bit) at 32K doesn't start on a 24 GB GPU; gpu-fit says so and suggests a context that does.
Full table and raw data: README → Accuracy, measured, and bench/results/.
pip install -U gpu-fit
v0.4.2: clearer commands and safer inputs
- Suggested
vllm servecommands always include--gpu-memory-utilization. From vLLM 0.34 the default is the whole GPU when the flag is left out, so stating it keeps the plan and the server in step. --reserve-giband--utilare validated, with a clear error for out-of-range values.- When not even one full-length request fits, gpu-fit now says vLLM won't start and suggests a
--max-model-lenthat does. - README wording scoped to the vLLM versions measured.
pip install -U gpu-fit
v0.4.0: shared GPUs and vLLM's real default
New: --reserve-gib for GPUs shared with other processes (OCR, embeddings, a second model, rolling deploys). Tell gpu-fit how much they need per GPU; it gives the highest --gpu-memory-utilization vLLM will accept and what still fits.
gpu-fit Qwen/Qwen3-8B --gpu L40S --reserve-gib 12 --context 16k --concurrency 8 --kv-cache-dtype fp8
→ --gpu-memory-utilization 0.72
Fixed: vLLM's default gpu_memory_utilization is 0.92, not 0.9. The calibration runs used the real default, so the overhead had absorbed the difference. Overheads are re-derived; predictions on the measured runs are unchanged, and the browser calculator matches (5,760 cases).
Heads-up: vLLM 0.34 sizes the KV cache from measured memory ("extensible KV cache"). Not measured yet; expect more capacity than predicted.
Also: bench/sweep/ concurrency sweep on vLLM's own bench sweep serve (not yet run on a GPU).
pip install -U gpu-fit