大模型基础

题集来源:AMIT SHEKHAR(amitshekhariitbhu)收录项目:ai-engineering-interview-questions查看原题集

题目目录

80 道原题
  1. What are foundation models, and how have they changed AI engineering?

    原题
  2. What is a Large Language Model (LLM), and how does it work?

    原题
  3. Inside ChatGPT: What Happens After You Hit Enter?

    原题
  4. What is the Transformer architecture and how does it work?

    原题
  5. What are the key components of the Transformer architecture?

    原题
  6. Walk me through what happens, step by step, in one forward pass of a decoder-only Transformer.

    原题
  7. What is tokenization in LLMs?

    原题
  8. Explain BPE (Byte Pair Encoding).

    原题
  9. Explain WordPiece and SentencePiece.

    原题
  10. What is positional encoding, and why is it needed in Transformers?

    原题
  11. What are embeddings?

    原题
  12. Explain the Query(Q), Key(K), and Value(V) in attention.

    原题
  13. What is self-attention, and how does it work in Transformers?

    原题
  14. What is Cross Attention in Transformers?

    原题
  15. Why do we scale the dot product attention by √dₖ in the Transformer architecture?

    原题
  16. What is causal masking?

    原题
  17. What are multi-head attention mechanisms? Why use multiple attention heads?

    原题
  18. What are Feed-Forward Networks in LLMs?

    原题
  19. What is Generative AI?

    原题
  20. What is the context window in LLMs, and why does it matter?

    原题
  21. Why is the context window limited in LLMs?

    原题
  22. What is temperature in the context of LLMs, and how does it affect output?

    原题
  23. Why is the first token slower than the rest in an LLM?

    原题
  24. Explain Top-p (nucleus) sampling and Top-k sampling. How do they differ?

    原题
  25. Compare greedy decoding, beam search, top-k, top-p, and temperature sampling. When does each fail?

    原题
  26. What are logits, and how are they used in text generation?

    原题
  27. What are stop tokens in LLMs, and how does an LLM know when to stop generating?

    原题
  28. What is the difference between a stop token and a stop sequence?

    原题
  29. What are skip connections (residual connections) in Transformers?

    原题
  30. What is the difference between open-source and closed-source LLMs? When would you choose one over the other?

    原题
  31. What is the difference between encoder-only, decoder-only, and encoder-decoder Transformer architectures?

    原题
  32. What is KV cache, and how does it speed up inference?

    原题
  33. Estimate the KV cache memory needed to serve a large model. How does it constrain batch size and context length?

    原题
  34. KV Cache Compression

    原题
  35. What is model distillation, and how is it used with LLMs?

    原题
  36. What is Mixture of Experts (MoE), and how does it work in models like Mixtral?

    原题
  37. What is the difference between dense and sparse models?

    原题
  38. How does DeepSeek-V4 work?

    原题
  39. What is Flash Attention?

    原题
  40. What is Cross-Entropy Loss?

    原题
  41. What is Grouped-Query Attention (GQA), and how does it differ from Multi-Head Attention (MHA)?

    原题
  42. How does Sliding Window Attention work?

    原题
  43. How do Attention Sinks work?

    原题
  44. How does Rotary Position Embedding (RoPE) work, and why is it preferred over learned positional embeddings?

    原题
  45. Explain Layer Normalization

    原题
  46. Explain RMSNorm (Root Mean Square Layer Normalization)

    原题
  47. Why do modern Transformers use Pre-LayerNorm (Pre-Norm) instead of Post-LayerNorm?

    原题
  48. What are scaling laws (Chinchilla), and how do they guide model size vs training data decisions?

    原题
  49. Your LLM keeps ignoring your instructions. How do you make it follow structured output formats?

    原题
  50. Your LLM-powered tool hits the context window limit on long documents. How do you handle it?

    原题
  51. Your LLM does not admit when it does not know the answer. How do you make it say "I don't know"?

    原题
  52. Your LLM generates responses that are too verbose. How do you control response length?

    原题
  53. Your LLM memorized proprietary training data and leaks it in responses. How do you prevent this?

    原题
  54. Your LLM coding assistant generates outdated code using deprecated libraries. How do you fix it?

    原题
  55. Your tokenizer splits important domain terms into meaningless subword pieces. How do you fix it?

    原题
  56. Your Transformer's KV cache grows too large during long sequence generation. How do you manage memory?

    原题
  57. Your Transformer runs out of memory on long documents due to quadratic self-attention. How do you scale it?

    原题
  58. Your distilled student model fails on the complex reasoning that the teacher model handled. How do you close the gap?

    原题
  59. After RLHF alignment, your LLM became safer but lost capability on hard tasks. How do you manage the alignment tax?

    原题
  60. Your RLHF-trained LLM is gaming the reward model instead of being genuinely helpful. How do you fix reward hacking?

    原题
  61. Your chatbot loses context after 10 turns in a conversation. How do you maintain a long conversation context?

    原题
  62. Your chatbot fails when users switch topics mid-conversation. How do you handle topic switches?

    原题
  63. Your QA system always generates an answer even when no answer exists in the context. How do you detect unanswerable questions?

    原题
  64. Your summarization system hallucinated facts not in the original article. How do you fix it?

    原题
  65. Your text generation repeats phrases in long outputs. How do you fix repetition?

    原题
  66. Transformers work on text, so can they also understand images?

    原题
  67. Small Language Models (SLMs)

    原题
  68. Large Reasoning Models (LRMs)

    原题
  69. Jev and System One Models

    原题
  70. What are Autoregressive Models?

    原题
  71. Explain the difference between autoregressive and masked language modeling.

    原题
  72. Proximal Policy Optimization (PPO)

    原题
  73. Direct Preference Optimization (DPO)

    原题
  74. Group Relative Policy Optimization (GRPO)

    原题
  75. Recursive Language Models (RLMs)

    原题
  76. Continual Learning in LLMs

    原题
  77. What is Recursive Self-Improvement (RSI)?

    原题
  78. How do Diffusion Language Models (DLMs) work?

    原题
  79. How Does LLM Watermarking Work?

    原题
  80. How do RNNs and Transformers differ?

    原题