THE LEARNING PATH

One mechanism at a time.

12 progressive lessons that follow requests through DeepInfer’s architecture and mechanisms.

Your progress0 / 12
s0115 min

Follow a Request

Start at LLM.generate and trace scheduling, execution, sampling, and state updates.

s0222 min

Inside an Execution Step

Understand how Worker and ModelRunner pass input metadata, cache references, and sampling results.

s0318 min

Remember with KV

Follow CacheEngine and request lifetimes to see how historical state is retained, located, and released.

s0416 min

Choose the Next Token

Trace model output through sampling into request state that can be committed.

s0518 min

Work in Batches

Use static batching to understand request identity, input layouts, and independent stopping conditions.

s0622 min

Schedule Every Step

Understand continuous batching through waiting and running queues plus token budgets.

s0720 min

Page the KV Cache

Use a block table to separate logical token positions from physical cache blocks.

s0820 min

Reuse a Prefix

Use request forks to understand prefix reuse, reference counts, and copy-on-write.

s0925 min

Draft, Then Verify

Separate drafting, target verification, and confidence budgets to advance several tokens at once.

s1024 min

Overlap the Pipeline

Read ZOS forward, postprocess, and sampling order, including one-step-late state correction.

s1124 min

Route to Experts

Follow a MoE pass through gating, dispatch, expert computation, and combine.

s1225 min

Balance the Hot Experts

Understand EPLB through historical token counts, then evaluate placement on the next window.