Inference simulator

Pick a device and a model to see where the time goes: reading the prompt, then writing the answer. The numbers come from a simple model, not from a measurement.

Device273 GB/s · 128 GB LPDDR5x, unified memory
ModelMoE, hybrid: most layers are Mamba, DeltaNet or convolution, so the KV cache stays small
Task
a 32K-token report and one question
Memory70 GB of 120 GB
weights 68 GB · KV cache 0.3 GB · runtime 2.0 GB · 8 GB kept for the OS
One request
27.4 s
plays at 1.4× speed
Prefill
14.3 s
2,295 tok/s
reads 32,768 tokens, then the first token appears
Decode
13.1 s
19.5 tok/s
writes 256 tokens, max ~40 tok/s at 6.8 GB a step
Sample answer256 tokens
Press Run to watch the answer arrive.
How this works
Tasks
Chat is a short question with a plain answer. Long document is a 32K-token report pasted in with one question about it. Coding agent holds 128K tokens of repository files and tool output, then writes a fix.
chat 1K in, 256 out · document 32K in, 256 out · agent 128K in, 512 out
Prefill
The model reads the whole prompt in one pass. Every token goes through every active weight, so the chip's compute sets the speed.
2 × active weights × prompt tokens + attention ÷ (compute peak × efficiency)
Decode
The answer comes one step at a time. Each step must read the active weights and the KV cache from memory, so bandwidth sets the speed.
(active weights + KV cache) ÷ (bandwidth × efficiency)
Efficiency
No chip reaches its datasheet peak. These shares are typical for one user.
bandwidth 75%, MoE expert reads 50%; compute 12% on DGX Spark, 35-45% on GPUs
Draft
A small model guesses a few tokens and the big model checks them in one step. In a MoE that step costs more, because the tokens go to different experts.
~1.8× per step at 4 tokens, 2× at 8
KV cache
The memory of the prompt so far. It grows with every token in the full-attention layers; Mamba, linear and sliding-window layers keep a small fixed one.
tokens × KV size per token from config.json
Sources
Datasheets for the devices, each model's config.json for its shape.
a rough guide: compare it with real runs before you trust a number