Intermediate · Learning path

LLM Inference and Serving

Connect model and cache constraints to deployment choices, serving configurations, latency, and capacity planning.

Intended audience
Engineers planning local inference or production model serving.
Prerequisites
Basic model architecture and tensor shape familiarity is helpful.

Learning objectives

  • Estimate weight and KV-cache memory from explicit assumptions.
  • Compare serving configuration choices without treating one workload as universal.
  • Separate lab measurements from theoretical capacity estimates.

Local progress

Module checks are stored only in this browser. There is no account, synchronization or transmission to the site.

Path modules

  1. 1. Local inference and model constraints

    Read

    Practice activity

    For a model card, identify parameter count, quantization, runtime, and hardware assumptions before estimating memory.

  2. 2. Weights and KV cache

    Read

    Practice activity

    Calculate weight memory and KV cache separately, then vary context length and KV-head count to observe sensitivity.

  3. 3. Serving trade-offs

    Read

    Practice activity

    Define a latency/throughput target and list which serving assumptions would need a real workload benchmark.

Completion criteria

Deliver a transparent capacity estimate and a measurement plan that states what must be verified on the target runtime and hardware.