VKVlad KulikovPublic / lectures
Modern LLMs20 / 20

Module 20. The complete LLM: from tokens to training and generation

Choose your answers and select “Check”. Numbers accept a decimal point, comma, or simple fraction. Answers and drafts are saved in this browser and shared between RU/EN.

Checked: 0 / 15 · Correct: 0

Question 20.1.1

20.1. Three computations that should not be conflated

What distinguishes a forward pass from generation?

One correct option

Question 20.3.1

20.3. Embedding lookup starts the computation

For sequence [BOS, A, B, EOS], the inputs are [BOS, A, B]. What are the targets?

One correct option

Question 20.4.1

20.4. RMSNorm controls scale before a sublayer

Why does RMSNorm in this model preserve causal visibility?

One correct option

Question 20.5.1

20.5. Projections and RoPE attach a position to a comparison

What does RoPE transform in the base M20 configuration?

One correct option

Question 20.6.1

20.6. Causal attention and shared key/value heads

With h_q=4 and h_kv=2, which zero-based query heads share the first K/V head?

One correct option

Question 20.7.1

20.7. SwiGLU completes the block

What travels along the first residual branch of a pre-norm block?

One correct option

Question 20.8.1

20.8. The stack, output projection, and parameter inventory

The example has V=4, d=m=2, and one block. How many parameters remain after tying E and U?

One correct option

Question 20.10.1

20.10. From a next-token distribution to sequence likelihood and loss

The sole selected target, EOS, has probability 0.183502. What is the masked mean loss?

One correct option

Question 20.11.1

20.11. Backpropagation reaches every learned part

How are gradients accumulated for tied embedding table E?

Second pass — after Section 11.

One correct option

Question 20.12.1

20.12. AdamW turns derivatives into a new model

What follows from the loss falling from 1.109374 to 1.084832 after one AdamW step?

One correct option

Question 20.13.1

20.13. Generation adds a selection rule

Top-2 removes EOS from the selection distribution. What does that imply about the base model?

One correct option

Question 20.14.1

20.14. KV-cache preserves a computation already performed

Which cache can be used after training updates the weights?

One correct option

Question 20.15.1

20.15. MoE replaces a specific operator

Where does MiniLLM's sigmoid router use the balancing offset?

Second pass — after Section 15.

One correct option

Question 20.19.1

20.19. Where the construction changes: SSMs and diffusion

What can remain unchanged when attention is replaced by a causal SSM?

One correct option

Question 20.19.2

20.19. Where the construction changes: SSMs and diffusion

Why does the diffusion probability sum over hidden sequences?

One correct option