Katkat

Free course

AI Engineering Interview Course

Everything AI and LLM engineering interviews test, in reading order: model fundamentals, building LLM applications, agents, serving and GPU infrastructure, fine-tuning, then worked practice questions. 30 of 88 lessons are out; new ones are added every few days.

1.Getting started

What AI engineering interviews cover and how this course is organised.

  1. What AI Engineering Interviews Cover8 min
  2. A Study Plan for AI Engineering Interviews8 min

2.How LLMs work

The model-level ideas every AI engineering interview assumes.

  1. Tokenization: BPE, Vocabulary Size and Why Tokens Matter10 min
  2. The Transformer, Explained for Engineers8 min
  3. Decoding: Greedy, Temperature, Top-k and Top-p9 min
  4. Context Windows: Limits, Cost and Long-Context Behaviour9 min
  5. Embeddings: Representing Text as Vectors10 min
  6. Positional Information: Sinusoidal, Learned and RoPE8 min
  7. From Pretraining to Chat Model: SFT and RLHF8 min
  8. Why Language Models Hallucinate8 min
  9. Choosing a Model: Size, Open Weights and Cost9 min
  10. Multimodal Models: Images, Audio and Text9 min

3.Building LLM applications

Prompting, retrieval, evaluation and safety for production LLM features.

  1. Prompt Engineering That Survives Production9 min
  2. Getting Reliable JSON and Structured Output9 min
  3. Streaming and Latency Metrics: TTFT and Tokens per Second9 min
  4. Conversation Memory for Chat Applications10 min
  5. Vector Search: HNSW, IVF and Approximate Nearest Neighbours10 min
  6. Retrieval-Augmented Generation, End to End8 min
  7. Chunking Documents for Retrieval10 min
  8. Hybrid Search and Reranking9 min
  9. Evaluating a RAG System9 min
  10. LLM Evaluation and LLM-as-a-Judge9 min
  11. Prompt Injection and Guardrails9 min
  12. Semantic Caching for LLM Applications9 min
  13. Token Rate Limits, Quotas and Backpressure9 min

4.Agents

Tool use, agent loops and how to make agents reliable and safe.

  1. Tool Calling and the Agent Loop8 min
  2. Agent Patterns: ReAct, Plan-and-Execute and Reflection10 min
  3. Designing Tools an Agent Can Use8 min
  4. The Model Context Protocol (MCP)9 min
  5. Agent Memory and State10 min
  6. Multi-Agent Systems: When and HowComing soon
  7. Making Agents Reliable: Retries, Timeouts and CheckpointsComing soon
  8. Evaluating AgentsComing soon
  9. Agent Safety: Permissions, Sandboxing and Human ApprovalComing soon
  10. Browser and Computer-Use AgentsComing soon

5.Serving and infrastructure

Inference, training and data infrastructure behind LLM products.

  1. Prefill, Decode and the KV CacheComing soon
  2. Continuous Batching for LLM ServingComing soon
  3. PagedAttention and KV Cache Memory ManagementComing soon
  4. Prefix CachingComing soon
  5. Quantization: INT8, INT4 and FP8Coming soon
  6. Speculative DecodingComing soon
  7. FlashAttention and IO-Aware AttentionComing soon
  8. Serving LLMs: Metrics, Autoscaling and DisaggregationComing soon
  9. Parallelism for Training: Data, Tensor and PipelineComing soon
  10. Sharded Training State: ZeRO and FSDPComing soon
  11. Training Memory MathComing soon
  12. Mixed-Precision TrainingComing soon
  13. Checkpointing and Fault Tolerance in Long Training RunsComing soon
  14. GPU Fundamentals for AI EngineersComing soon
  15. Compute-Bound vs Memory-Bound: The Roofline ModelComing soon
  16. GPU Interconnects and Collective OperationsComing soon
  17. Scheduling GPU Jobs and QueuesComing soon
  18. GPU Utilisation and CostComing soon
  19. Building a Training Data PipelineComing soon
  20. Document Ingestion for RAGComing soon
  21. Synthetic Data for LLMsComing soon
  22. Labelling and Preference DataComing soon
  23. LLM Observability and TracingComing soon
  24. Versioning and Rolling Out Prompts and ModelsComing soon
  25. Online Evaluation and A/B Tests for LLM FeaturesComing soon
  26. Model Routing and FallbacksComing soon

6.Fine-tuning

When and how to adapt a model instead of prompting it.

  1. Fine-Tuning, RAG or Prompting: How to ChooseComing soon
  2. LoRA and QLoRAComing soon
  3. Supervised Fine-Tuning: Data and RecipeComing soon
  4. Preference Tuning: RLHF and DPOComing soon
  5. Distillation: Teaching a Small ModelComing soon
  6. Evaluating Fine-Tuned Models and Catastrophic ForgettingComing soon

7.Practice questions

Open-ended interview scenarios and coding exercises, worked through.

  1. How Would You Reduce Hallucinations in a Support Bot?ScenarioComing soon
  2. Your RAG System Gives Wrong Answers: How Do You Debug It?ScenarioComing soon
  3. How Would You Cut LLM Response Latency in Half?ScenarioComing soon
  4. How Would You Cut LLM Costs by 10x?ScenarioComing soon
  5. An Agent Keeps Looping: How Do You Fix It?ScenarioComing soon
  6. How Many GPUs Does It Take to Serve a 70B Model?ScenarioComing soon
  7. Training Loss Spiked: How Do You Find the Cause?ScenarioComing soon
  8. How Do You Ship a Prompt Change Safely?ScenarioComing soon
  9. Implement Numerically Stable Softmax and Cross-EntropyCodingComing soon
  10. Implement Multi-Head AttentionCodingComing soon
  11. Implement Top-k and Top-p SamplingCodingComing soon
  12. Implement a Byte-Pair Encoding TokenizerCodingComing soon
  13. Implement a KV Cache for Autoregressive GenerationCodingComing soon
  14. Implement Beam SearchCodingComing soon
  15. Implement Rotary Position EmbeddingsCodingComing soon
  16. Implement a LoRA Linear LayerCodingComing soon
  17. Implement Top-k Retrieval with Cosine SimilarityCodingComing soon
  18. Implement a Text Chunker with OverlapCodingComing soon
  19. Implement a Minimal Tool-Calling Agent LoopCodingComing soon

8.Before the interview

Quick-reference material for the last day.

  1. AI Engineering Interview Cheat SheetReviewComing soon
  2. Numbers Every AI Engineer Should KnowReviewComing soon