Skip to content
mentoor

Inference: how a trained model runs

For both

Parameters, prefill and decode, the KV cache and mixture-of-experts explain why models differ in speed, memory needs and price

See where you stand

110 questions across four stages: Understand, Apply, Solve and Judge.

Try 5 questions

Practice items, not counted towards your mastery. No account needed.

Check yourself · 1 of 5

A model card says "8B". What does that most likely mean?

Choose one answer

Check yourself · 2 of 5

Which phase processes the whole prompt at once?

Choose one answer

Check yourself · 3 of 5

Prompt caching can reuse work only when the new prompt does what?

Choose one answer

Check yourself · 4 of 5

In a mixture-of-experts model, what are active parameters?

Choose one answer

Check yourself · 5 of 5

What does quantization change?

Choose one answer

Topics

  1. Parameters and what model size means4 min read · Weights, billions of parameters, the memory they need and what size does and does not predict
  2. Prefill, decode and time to first token5 min read · The prompt is read in parallel but the answer is written one token at a time, so output tokens cost more
  3. The KV cache behind prompt caching5 min read · Reusing work already done on an unchanged prompt prefix makes repeat calls cheaper and faster
  4. Mixture of experts: total versus active parameters4 min read · Many large models route each token through a few expert sub-networks, so active size differs from total size
  5. Distillation, quantization and speculative decoding5 min read · Smaller distilled models, lower-precision weights and draft-and-verify decoding trade quality for speed and cost

Start here

110 questions · last verified 2026-12