{"slug": "sizing-open-weight-models-for-rented-gpus-where-does-a-weights-only-estimate", "title": "Sizing open-weight models for rented GPUs: where does a weights-only estimate mislead?", "summary": "A weights-only estimate for sizing open-weight models on rented GPUs can mislead because the KV cache grows with context length, batch size, layer count and KV heads, and can rival the weights themselves at long context or high concurrency, according to a practitioner guide. The guide recommends adding 10 to 20 percent extra memory for runtime overhead (framework, CUDA context, activations), noting quantized weights are not always pure INT4 since embeddings stay in higher precision and scales add size, and that mixture-of-experts models should be sized by total parameters for memory but judged by active parameters for speed. It advises adding a tokens-per-second column, since GPU memory bandwidth often decides speed more than capacity, letting users enter context length and concurrent requests, and validating estimates against real vLLM or llama.cpp memory logs for two or three models.", "body_md": "A weights only estimate is a good first filter, but it can mislead in a few common ways. The KV cache grows with context length, batch size, number of layers and KV heads. A rough formula is 2 times layers times KV heads times head dimension times bytes per value, per token. For long context or many users this can be as large as the weights, so show it as a separate number.\n\nAlso add runtime overhead, since the framework, CUDA context and activations usually need 10 to 20 percent extra memory. Quantized weights are not always INT4 only, because some layers like embeddings stay in higher precision and scales add a little size. For mixture of experts you already size by total parameters, which is right for memory, but speed depends on active parameters.\n\nA useful addition is a column for tokens per second, since memory bandwidth of the GPU often decides the speed more than its size. I would also let users enter context length and concurrent requests so the page shows a full estimate. Then check your numbers against real vLLM or llama.cpp memory logs for two or three models.", "url": "https://wpnews.pro/news/sizing-open-weight-models-for-rented-gpus-where-does-a-weights-only-estimate", "canonical_source": "https://discuss.huggingface.co/t/sizing-open-weight-models-for-rented-gpus-where-does-a-weights-only-estimate-mislead/192574#post_4", "published_at": "2026-12-01 13:23:38+00:00", "updated_at": "2026-12-01 13:46:15.709594+00:00", "lang": "en", "topics": ["ai-infrastructure", "large-language-models"], "entities": ["vLLM", "llama.cpp"], "also_reported_by": [], "takeaway": "Size GPU memory as weights plus a separate KV-cache figure (2 × layers × KV heads × head dimension × bytes per value, per token) plus 10–20% runtime overhead, and validate against real vLLM or llama.cpp logs for two or three models.", "recommendation": {"advice": "Add KV cache and 10–20% runtime overhead to weights-only estimates, expose context length and concurrency inputs, and check the numbers against vLLM or llama.cpp memory logs before renting GPUs.", "playbook": "inference-serving", "playbook_url": "https://wpnews.pro/playbooks/inference-serving"}, "alternates": {"html": "https://wpnews.pro/news/sizing-open-weight-models-for-rented-gpus-where-does-a-weights-only-estimate", "markdown": "https://wpnews.pro/news/sizing-open-weight-models-for-rented-gpus-where-does-a-weights-only-estimate.md", "text": "https://wpnews.pro/news/sizing-open-weight-models-for-rented-gpus-where-does-a-weights-only-estimate.txt", "jsonld": "https://wpnews.pro/news/sizing-open-weight-models-for-rented-gpus-where-does-a-weights-only-estimate.jsonld"}}