- Published:
- Last updated:
Large Language Model Fundamentals
- Authors
- Name
- Lucian Oprea
- @LucianDSA_
00:30:00
Filter by difficulty
35 of 35 questions shown
Language Model Foundations
⏷ 1. What is a language model, and what does it predict?
⏷ 2. What is a token, and why is it not the same as a word?
⏷ 3. How does tokenization affect cost, latency, and language support?
⏷ 4. What is an embedding inside a language model?
⏷ 5. How does autoregressive text generation work?
Transformer Intuition
Free preview complete
You’ve reached the end of the free preview
Get every remaining question and complete answer, plus progress tracking across the full Interview Question Library.
- 30 more questions and complete answers in this topic
- Full access to every interview topic
- Progress tracking and question flags
- New questions and improvements during your subscription
Full access from
$12/month
No long-term commitment. Cancel whenever you want.
⏷ 6. What problem does self-attention solve?
⏷ 7. How do queries, keys, and values work in attention?
⏷ 8. Why do transformers use multiple attention heads?
⏷ 9. Why do transformers need positional information?
⏷ 10. How do encoder-only, encoder-decoder, and decoder-only transformers differ?
⏷ 11. What is causal masking?
Context and Generation Controls
⏷ 12. What is a context window, and what counts against it?
⏷ 13. How do input and output tokens affect LLM latency?
⏷ 14. How do greedy decoding, temperature, and top-p sampling differ?
⏷ 15. Why can the same prompt produce different answers?
⏷ 16. How do output limits, stop sequences, and end tokens work?
⏷ 17. Why can models struggle even when the input fits inside the context window?
⏷ 18. Why is context not the same as memory or model knowledge?
Training and Adaptation
⏷ 19. What happens during language-model pretraining?
⏷ 20. How do base, instruct, chat, and reasoning-oriented models differ?
⏷ 21. How do instruction tuning and preference optimization differ?
⏷ 22. When should you use prompting, retrieval, or fine-tuning?
⏷ 23. How do full fine-tuning and parameter-efficient fine-tuning differ?
⏷ 24. What is model distillation, and when is it useful?
⏷ 25. What is quantization, and what does it trade?
Serving and Model Selection
⏷ 26. How do hosted and open-weight models differ?
⏷ 27. How do parameter count and model size relate to quality, latency, and cost?
⏷ 28. Why do language models hallucinate?
⏷ 29. How would you select an LLM for a production feature?
⏷ 30. How do KV caching and batching improve LLM serving?
Inference Architecture and Serving Performance
⏷ 31. How do the prefill and decode phases of LLM inference differ?
⏷ 32. How do multi-head, multi-query, and grouped-query attention differ during inference?
⏷ 33. How does speculative decoding reduce generation latency without changing the target distribution?
⏷ 34. How do mixture-of-experts models work, and what do they trade?
⏷ 35. Which metrics describe LLM serving performance, and why is one latency number insufficient?