BLOGLLM Logo
Guest
Not signed in
All BlogsCoursesPracticeSeriesTagsBookmarksPricing
Log in
All BlogsCoursesPracticeTagsBookmarksPricing
BlogsCourses
Practice
Practice / Study plans
Pro

LLM internals in 3 weeks

A focused run through the advanced architecture track with the explainers that go with it. One problem a day.

0 of 15 steps done on this device

Next: How does attention work, without the maths overload

Week 1 Attention and position 0/4

  1. LessonHow does attention work, without the maths overload
  2. ProblemWrite scaled dot-product attention with a causal maskMedium
  3. ProblemRotate a vector by its position (RoPE)Hard
  4. ProblemNormalize activations with RMSNormEasy

Week 2 Variants that save memory 0/5

  1. ProblemShare keys and values across heads with grouped-query attentionMedium
  2. ProblemLimit attention to a sliding window of recent tokensEasy
  3. ProblemRoute each token to its top 2 experts in a mixture of expertsMedium
  4. LessonWhat is a KV cache, and why it decides what you can serve
  5. ProblemGenerate one token at a time with a KV cacheMedium

Week 3 Serving 0/6

  1. ProblemWork out how many tokens fit in GPU memory for the KV cacheEasy
  2. LessonThe KV Cache Problem Is an OS Problem. Paging Is the Fix
  3. ProblemAllocate KV cache memory in pages, like vLLMMedium
  4. LessonSpeculative decoding, in plain English, and how it works in production
  5. ProblemVerify a draft model's guesses in speculative decodingMedium
  6. ProblemQuantize weights to int8 and measure the errorMedium

Progress is saved in this browser. Solved problems, lessons you marked done and mocks you took tick themselves; tick anything else by hand.

Other plans: AI Engineer in 4 weeks, ML Engineer in 6 weeks.

© BlogLLM, Bengaluru, IndiaAboutTermsPrivacyRefundsDMCAContactRSS