🦀 llama.cpp VRAM Calculator

Estimate VRAM for a Hugging Face GGUF model: quant size, context, KV cache options, YaRN context extension, MTP heads, and multi-GPU split. Architecture is auto-fetched from the GGUF header (range-read — no full model download).

1. Model source

GGUF file
mmproj file (optional, multimodal)

Architecture (editable)

2. Inference options

Quantization
KV cache dtype
Compute dtype
MTP draft KV dtype

3. Multi-GPU budget

split-mode

Live: every slider/dropdown above updates the results and graphs on change. The Compute button is a manual trigger for the same recompute.

Results

Assumed on by llama-server: continuous batching, jinja chat templates, prompt caching (--cache-prompt), flash-attention auto. The command notes these rather than emitting flags.

Auto-fit solvers

Uses the current architecture + GPU budget. Run the calculator first (or load a preset/fetch a GGUF) so the architecture is populated, then pick a solver.

Quant for max-context solver
Quant for min-GPU solver