Published:
Last updated:

Large Language Model Fundamentals

Authors
Time yourself:
Your progress:

00:30:00

0%

Filter by difficulty

35 of 35 questions shown

Language Model Foundations

1. What is a language model, and what does it predict?

Junior
Flag important question
Mark as complete

2. What is a token, and why is it not the same as a word?

Junior
Flag important question
Mark as complete

3. How does tokenization affect cost, latency, and language support?

Junior
Flag important question
Mark as complete

4. What is an embedding inside a language model?

Junior
Flag important question
Mark as complete

5. How does autoregressive text generation work?

Junior
Flag important question
Mark as complete

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?

JuniorPaid Question

7. How do queries, keys, and values work in attention?

Mid-levelPaid Question

8. Why do transformers use multiple attention heads?

Mid-levelPaid Question

9. Why do transformers need positional information?

Mid-levelPaid Question

10. How do encoder-only, encoder-decoder, and decoder-only transformers differ?

JuniorPaid Question

11. What is causal masking?

JuniorPaid Question

Context and Generation Controls

12. What is a context window, and what counts against it?

Mid-levelPaid Question

13. How do input and output tokens affect LLM latency?

JuniorPaid Question

14. How do greedy decoding, temperature, and top-p sampling differ?

Mid-levelPaid Question

15. Why can the same prompt produce different answers?

Mid-levelPaid Question

16. How do output limits, stop sequences, and end tokens work?

Mid-levelPaid Question

17. Why can models struggle even when the input fits inside the context window?

Mid-levelPaid Question

18. Why is context not the same as memory or model knowledge?

Mid-levelPaid Question

Training and Adaptation

19. What happens during language-model pretraining?

JuniorPaid Question

20. How do base, instruct, chat, and reasoning-oriented models differ?

Mid-levelPaid Question

21. How do instruction tuning and preference optimization differ?

Mid-levelPaid Question

22. When should you use prompting, retrieval, or fine-tuning?

SeniorPaid Question

23. How do full fine-tuning and parameter-efficient fine-tuning differ?

Mid-levelPaid Question

24. What is model distillation, and when is it useful?

SeniorPaid Question

25. What is quantization, and what does it trade?

SeniorPaid Question

Serving and Model Selection

26. How do hosted and open-weight models differ?

SeniorPaid Question

27. How do parameter count and model size relate to quality, latency, and cost?

SeniorPaid Question

28. Why do language models hallucinate?

SeniorPaid Question

29. How would you select an LLM for a production feature?

SeniorPaid Question

30. How do KV caching and batching improve LLM serving?

SeniorPaid Question

Inference Architecture and Serving Performance

31. How do the prefill and decode phases of LLM inference differ?

Mid-levelPaid Question

32. How do multi-head, multi-query, and grouped-query attention differ during inference?

SeniorPaid Question

33. How does speculative decoding reduce generation latency without changing the target distribution?

SeniorPaid Question

34. How do mixture-of-experts models work, and what do they trade?

SeniorPaid Question

35. Which metrics describe LLM serving performance, and why is one latency number insufficient?

Mid-levelPaid Question