LLM Kitchen
Explanations

Wrap-up

Ch 46. Check yourself

Sixteen questions

Twenty questions

One or more questions from every Part, in reading order. Pick an answer for each, then check them all at once. Each answer links to the chapter that explains it, and any you miss are gathered into a short list of chapters worth another look.

Try it

Quick check

Computed in your browser
  1. What does raising the temperature do when a model picks the next word?
  2. Why might a model miscount the letters in “strawberry”?
  3. Where do a model’s weights come from?
  4. How does a model get good at guessing the next word?
  5. What does a language model’s training loss, the cross-entropy, measure?
  6. How does attention help with “The trophy didn’t fit in the suitcase because it was too big”?
  7. What does the model itself produce each time it runs?
  8. You round a model’s weights from 16 bits to 4 bits each. What happens?
  9. A small model drafts tokens and a big model checks them. How does the text compare with the big model writing alone?
  10. When the big model samples, how does guess-and-check keep its text exactly as likely as before?
  11. What does a reasoning model do differently from an ordinary chat model?
  12. You add four worked examples to a prompt. What changes inside the model?
  13. You put four examples in a prompt. Does the model learn anything that lasts?
  14. A chat app re-sends its whole, growing conversation on every call. Why is that often cheaper than it sounds?
  15. A chat app sends its whole conversation again on every call. What keeps that from being as slow and costly as it sounds?
  16. Without a KV cache, how does the work for n new tokens grow?
  17. When an assistant uses a calculator, who actually runs it?
  18. Why can a hidden line in a web page change what a summarizer writes?
  19. A web page tells the agent to delete your files. What stops it?
  20. Why can BERT fill in a blank in the middle of a sentence better than GPT-2?
  21. Mixtral sends each token to 2 of its 8 experts. Why does a token use 13 of its 47 billion weights, more than a quarter?
  22. A Decision Transformer is asked to aim for a higher score than any run it was trained on. What does it do?
  23. Which of these jobs suits a language model on its own best?

Thanks for reading. If something here was unclear or wrong, the sources for every claim are listed at the bottom of each chapter.