Curated briefing on AI engineering, chips, and dev tools for tech leaders. Updated every 3 hours.

Guide

Running 8B vs. 70B Open-Weights Models in Production: Quantization, Latency, and Memory Math

Innocent Ncube, based in Poland ·

An 8B model can be a good fit for a support route that answers from short, retrieved passages and has a clear way to check the response. A 70B model may earn its place when the same route needs better answers on ambiguous cases. Make that case with examples where the smaller model fails, then price the larger deployment at the latency and concurrency your users need.

1. Budget weights, cache, and runtime memory

Start with the model's parameter count and its weight precision. Eight billion parameters at two bytes each give 16 GB, or about 14.9 GiB. Keep the rest of the estimate in GiB so you can compare it against the memory actually available on the GPU. These figures use rounded parameter counts and show the theoretical weight payload.

Weight format8B weights70B weights
BF16 or FP16, 2 bytes/parameter14.9 GiB130.4 GiB
8-bit, 1 byte/parameter7.5 GiB65.2 GiB
4-bit, 0.5 bytes/parameter3.7 GiB32.6 GiB

A real checkpoint can keep some tensors at higher precision and store scales or other quantization metadata. The serving process also needs memory for temporary activations, kernel workspaces, and any CUDA graphs it captures. Record the loaded weight footprint and the available cache budget after profiling the actual replica. vLLM optimization and tuning

The key-value (KV) cache grows with the total number of live tokens across requests. For these dense Llama 3.1 examples, estimate KV bytes = 2 × layers × KV heads × head dimension × bytes per element × live tokens. The leading two represents keys and values. Both examples have eight KV heads and a head dimension of 128, with 32 layers for 8B and 80 layers for 70B. Use the architecture of the checkpoint you intend to run. Meta's Llama 3.1 architecture settings

BF16 KV cache, across one replica8B70B
Per live token128 KiB320 KiB
Eight active requests at 4,096 tokens each4 GiB10 GiB
Sixteen active requests at 8,192 tokens each16 GiB40 GiB

Count the input tokens and the generated tokens still resident in each sequence. These cases assume every request is at its listed length at the same time and has an independent cache. A paged cache can round allocations up to block boundaries, while shared prefixes can reduce the space needed. Check engine-reported capacity under both cold and warm traffic. vLLM cache and concurrency guidance

Run two fit checks before booking hardware.

  • 8B BF16 on a 24 GiB GPU budget. At eight active 4,096-token requests the subtotal is about 18.9 GiB. That leaves about 5.1 GiB for runtime memory and headroom. At sixteen active 8,192-token requests the subtotal rises to 30.9 GiB, above that budget.
  • 70B 4-bit on a 48 GiB GPU budget. The same eight-request subtotal is about 42.6 GiB before real checkpoint overhead and workspace. Sixteen 8,192-token requests lift it to 72.6 GiB. On a larger GPU, measure the actual room left at that load. If you shard across cards, verify the allocation on each rank and benchmark the interconnect on the instance you plan to use. vLLM parallelism and scaling

2. Change one precision setting at a time

Start with a higher-precision quality baseline for each checkpoint where hardware allows. Try an INT8 or FP8 candidate and a compatible 4-bit weight format, such as AWQ or GPTQ, if memory or cost is tight. Keep the weight format, activation precision, and KV cache precision in your benchmark record. A 4-bit weight file can still use a BF16 cache. An FP8 KV cache roughly halves the raw cache payload in the examples above, and deserves its own quality and performance run. Verify kernel and cache support for the exact engine release and accelerator. vLLM quantization support · vLLM quantized KV cache

Replay the same cases across candidates and score the outputs your application can actually use. For extraction, check the correctness of fields as well as schema validity. For retrieval, check whether the answer is supported by its sources and whether the model abstains when evidence is missing. Keep a separate score for long prompts and rare cases where errors are costly. Those are useful cases to test when deciding whether to pay for 70B or keep it as a fallback.

3. Measure capacity at the latency users need

For streaming, track p95 time to first token and the gap between output tokens. Also track the end-to-end deadline, timeouts, and queue depth. Long prompts consume prefill capacity. Long answers keep requests in decode and grow their caches. Replay the real mix of both with bursts, then raise arrival rate until a target fails. Report how many requests per second completed within the targets, along with cache utilisation and preemptions. For batch jobs, use the number of valid results delivered by the deadline. NVIDIA inference metrics · vLLM scheduling and preemption

Suppose an 8B replica costs $1.20 an hour and sustains 15 qualifying requests per second, while a 70B replica costs $3.60 and sustains eight. At those steady loads the GPU costs are about $0.02 and $0.13 per 1,000 qualifying requests. These are illustrative figures. For your budget, include idle capacity, retries, and any fallback calls in the numerator, then divide by the number of requests that actually met the target. Compare monthly API and GPU estimates at your traffic level in Signal Engine.

Production decision checklist

Check before rolloutDone?
We pinned the checkpoint, tokenizer, chat template, weight and cache formats, engine image, and hardware.☐
The production candidate passes the quality gates, including the long and rare cases. Any 70B route has a measured reason to exist.☐
Memory fits per GPU during a burst at the supported request length and concurrency, with headroom measured on the running replica.☐
Warm and cold runs meet our latency and error targets at the expected peak. We recorded accepted throughput and cost per accepted request.☐
We capped prompt length, output length, and in-flight requests. We tested the rejection behavior when the queue fills.☐
A canary has an owner, rollback thresholds, and a tested way to switch traffic while existing streams finish.☐

Once you have a model and a capacity envelope, use the inference engine decision framework to compare runtimes and rehearse a switch. For a printable copy of the inference selection checklist and related deployment checks, get the free AI Engineering Decision Checklists.