The executive version.
Everything else explains why.
Common local models
8–150 t/sA useful single-user range across quantized 7B–70B models. Production servers can produce thousands of aggregate t/s, while each user receives a fraction.
Start with memory
Fit, then feed.Weights, KV cache and runtime buffers must fit. HBM bandwidth, low-precision compute and interconnect then determine how fast the model runs.
The artifact
Tensors + recipeLearned arrays, architecture configuration, tokenizer, chat template and license—usually not the original data or full production serving stack.
The loop
Load → prefill → decodeThe engine places tensors, processes the prompt, predicts one next token, reuses cached state and repeats until a stop condition is reached.
A model repository is
a machine in pieces.
The checkpoint is the largest component, but weights alone are not enough. The runtime needs an architectural blueprint, a text codec and an exact conversation protocol.
model-00001-of-N.safetensorsLearned tensorsEmbeddings, attention projections, expert matrices, normalization parameters and output weights.
model.safetensors.index.jsonShard mapMaps every named tensor to its file so loaders can stream, validate and place weights.
config.jsonArchitecture blueprintLayers, hidden dimensions, heads, experts, context length, data types and model identifiers.
tokenizer.jsonText codecThe exact mapping between human-readable text and the token IDs consumed by the model.
chat_template.jinjaConversation protocolFormats system, user, assistant, tool and multimodal messages as expected during post-training.
generation_config.jsonDecode defaultsSuggested temperature, top-p, stop tokens and generation controls—not learned knowledge.
model code + kernelsExecution logicCustom layers and optimized operations. A new architecture may need engine patches before it runs well.
README + LICENSEOperational contractIntended use, limitations, model-specific instructions and the legal permissions attached to the release.
How frozen numbers
become a live answer.
Inference does not search inside the weight files. It executes the network they define.
Prefill
All input tokens are processed to create the initial state. Long prompts increase time to first token. Prefill is highly parallel and usually compute-heavy.
Decode
One output token is produced per model step. Low-batch decode often becomes memory-bandwidth-bound because the weights are streamed repeatedly.
KV cache
Attention keys and values are retained so earlier tokens are not recomputed. This saves work but consumes memory as context and concurrency grow.
Access to the tensors changes
what can be optimized.
An API customer can tune prompts and request parameters. An inference provider with open weights can transform the model artifact itself—and co-design its representation, execution graph and hardware placement.
Optimize around the model
- Prompts and response length
- Request concurrency
- Application-side caching
- Model and service-tier selection
The provider controls precision, kernels, placement, batching and cache policy.
Optimize the model + system
- Quantize and repack tensors
- Shard layers or MoE experts
- Fuse architecture-specific kernels
- Compile fixed execution paths
- Fine-tune or attach adapters
- Choose KV-cache representation
The checkpoint becomes an input to a hardware-specific compilation and serving pipeline.
Change representation
Convert BF16 to FP8, INT8 or INT4; select group size and calibration; store scales; repack tensors into the blocked layout consumed by the target kernel.
Change placement
Split tensors across devices, place MoE experts for locality, replicate hot experts or consolidate a quantized model onto fewer GPUs.
Change execution
Fuse dequantization with matrix multiplication, fuse normalization and activation operations, capture stable graphs and select model-specific kernels.
Change cache policy
Use paged KV memory, lower cache precision, reuse common prefixes, or separate compute-heavy prefill from bandwidth-heavy decode.
Change the model
Apply pruning, distillation, low-rank adapters or task-specific fine-tuning—subject to license—and evaluate quality against the original.
Inspect failures
Trace layers, profile tensor shapes, measure expert imbalance and validate numerical drift—visibility unavailable through a remote endpoint.
Optimizing a hypothetical 70B dense model for one H100
This example uses capacity and bandwidth arithmetic to make the engineering process concrete. It is not a benchmark for a particular checkpoint.
- 01
Establish a reference
Run a fixed prompt suite on BF16. Record task quality, TTFT, inter-token latency, output t/s, memory and power. Without a locked baseline, “optimized” has no measurable meaning.
- 02
Calibrate and quantize
Observe representative activations, select an INT4 scheme and convert large linear matrices. Sensitive tensors may stay at higher precision. Four-bit storage gives a 35 GB floor; scales and exceptions increase the operational image.
- 03
Repack for the kernel
Pack INT4 values into aligned tiles. A fused kernel expands values inside registers or shared memory and immediately performs the matrix multiplication—without writing a BF16 copy back to HBM.
- 04
Consolidate placement
If weights, KV cache and workspaces fit in 80 GB, move from two GPUs to one and remove tensor-parallel collectives. Or retain two GPUs and convert freed capacity into batch and concurrency.
- 05
Spend the memory dividend
Reserve runtime headroom, then allocate the rest to paged KV cache. More cache blocks allow more concurrent requests or longer contexts without CPU offload.
- 06
Batch against an SLO
Continuous batching combines tokens from multiple requests so a weight read serves more useful work. Raise the scheduling budget until aggregate throughput improves without breaking TTFT or ITL targets.
- 07
Re-test the real workload
Compare quantized output quality with BF16, including hard prompts and long contexts. Measure p50 and p99, not only the average, and preserve every configuration detail.
Why smaller weights can accelerate decode
At batch 1, a simplified ceiling divides aggregate HBM bandwidth by bytes of weights read per token. It ignores compute, KV traffic, communication and imperfect utilization, so real performance is lower.
The subtlety: weights became roughly 4× smaller, but consolidating from two GPUs to one also halves aggregate HBM bandwidth. The simplified ceiling therefore rises about 2×, not 4×. Keeping two GPUs may instead turn the memory dividend into greater aggregate throughput. Quantization creates options; it does not guarantee a multiplier.
Can the weights fit?
The floor excludes block scales, higher-precision tensors, alignment, activations, communication workspaces, graph buffers, KV cache and safety margin. At BF16, the same parameter count would require 5.6 TB before overhead.
VRAM / HBM
Weights plus live state must fit. CPU or storage spill can make transfers the critical path.
HBM bandwidth
Low-batch decode repeatedly streams weights. Idle tensor cores cannot outrun starved memory.
Low precision
Native FP8, INT8, INT4 or MXFP4 kernels determine whether fewer bytes become speed.
Interconnect
Tensor and expert parallelism exchange partial results and routed activations across devices.
One label.
Four measurements.
Time to first token
Queueing, prompt prefill and first decode. The visible latency for long prompts.
Inter-token latency
Milliseconds between streamed tokens. Approximately 1,000 ÷ decode t/s.
Per-sequence t/s
The rate experienced by one response—the useful conversational metric.
Aggregate t/s
Total server output across all requests—the useful capacity and economics metric.
What can actually
be achieved?
Illustrative single-sequence decode ranges, not promises. Engine, context, quantization, thermals and hardware generation can move them substantially.
Why the K3 “gold rush”
will begin in data centers.
Sparse compute is not small storage.
Only a fraction of experts execute for each token, lowering arithmetic relative to a 2.8T dense model. But any expert may be selected, so the expert bank must remain reachable across the fabric. Expert parallelism places experts on devices and moves routed activations to resident weights.
What t/s should we expect?
No reproducible open-weight number exists before the promised July 27, 2026 checkpoint release. A prudent early planning target is tens of t/s per interactive sequence on an optimized 64–72 accelerator supernode, with aggregate throughput potentially in the thousands or tens of thousands. That is a projection, not a benchmark.
Speed is a stack of
compounding wins.
Quantize
Reduce weight bytes and memory traffic; validate quality and native kernel support.
Fuse kernels
Reduce launches, synchronization and intermediate memory movement.
Cache prefixes
Reuse shared system prompts, tool definitions and document prefixes.
Batch continuously
Fill accelerator steps with tokens from multiple requests while enforcing latency goals.
Page KV memory
Allocate cache in blocks to reduce fragmentation and support dynamic sequences.
Parallelize deliberately
Use tensor, pipeline and expert parallelism according to model shape and topology.
Decode speculatively
Let a draft model propose tokens and verify several with the target model at once.
Split prefill / decode
Scale compute-heavy prompt work and bandwidth-heavy generation independently.
Measure the workload
Tune with real prompts, output lengths, concurrency distributions and SLOs.
Facts, estimates,
and clean labels.
Primary model-maker, engine-maintainer and hardware-vendor documentation was prioritized. Speed ranges are planning estimates because t/s is workload-dependent. K3 statements reflect information available on 18 July 2026, before the promised weight release.
- 01Moonshot AI — Kimi K3 technical blog↗
- 02Hugging Face — Safetensors format↗
- 03Hugging Face — Tensor metadata↗
- 04Hugging Face — KV-cache strategies↗
- 05vLLM — Parallelism and scaling↗
- 06vLLM — Expert-parallel deployment↗
- 07NVIDIA — H100 specifications↗
- 08NVIDIA — DGX B200 specifications↗
- 09NVIDIA — GB200 NVL72↗
- 10AMD — Instinct MI350 series↗
- 11llama.cpp — Benchmark methodology↗
- 12TensorRT-LLM — Quantization↗