cd /news/ai-infrastructure/sizing-open-weight-models-for-rented… · home › topics › ai-infrastructure › article
[ARTICLE · art-179425] src=discuss.huggingface.co ↗ pub= topic=ai-infrastructure verified=true sentiment=· neutral

Sizing open-weight models for rented GPUs: where does a weights-only estimate mislead?

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.

recommendation

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.

more in playbook: Inference and self-hosting
read1 min views6 publishedDec 1, 2026

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.

Also 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.

A 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.

── more in #ai-infrastructure 4 stories · sorted by recency
── more on @vllm 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/sizing-open-weight-m…] indexed:0 read:1min 2026-12-01 · —