LatentLens · Mastery

LLM Mastery

From one token to a production AI system. Every topic answers the same ten questions and follows the same A to M format, using the real Qwen3-8B-Base architecture wherever a fact can be verified.

New to all of this? Start with the Storybook (level 0) for intuition. Progress is stored only in this browser.

The path

  1. 0
    Storybook
    Build the intuition
    Open
  2. 1
    Transformer foundations
    Trace one token through Qwen3-8B · after level 0
    0/14 mastered · not started
    1. 1.1 Autoregressive language modelingNot started
    2. 1.2 TokenizationNot started
    3. 1.3 EmbeddingsNot started
    4. 1.4 The residual streamNot started
    5. 1.5 RMSNorm (and Q/K norm)Not started
    6. 1.6 Linear projections (xW)Not started
    7. 1.7 Queries, keys and valuesNot started
    8. 1.8 MHA, MQA and GQANot started
    9. 1.9 RoPE: rotary position embeddingNot started
    10. 1.10 Causal attention, end to endNot started
    11. 1.11 The MLP (SwiGLU)Not started
    12. 1.12 Residual connections and depthNot started
    13. 1.13 Final norm and LM headNot started
    14. 1.14 Softmax and decodingNot started
  3. 2
    Training and post-training
    From corpus to gradient update to assistant · after level 1
    0/9 mastered · not started
  4. 3
    Inference and serving
    From request to prefill, KV cache and decode · after level 1
    0/3 mastered · not started
  5. 4
    RAG and retrieval
    Ground answers in retrieved text · after level 1 and 3
    0/2 mastered · not started
  6. 5
    Agents and tools
    Loops, tools, memory and MCP · after level 4
    0/3 mastered · not started
  7. 6
    Interpretability and latent states
    Read and test what is inside · after level 1
    0/3 mastered · not started

Levels 7 to 10 continue in the Security Lab; level 11 is the research workspace.

Practice

How it all connects

Five lanes of one system. Pick any step to see where it sits and what it touches in the other lanes.

How an LLM computes
How it learns
How it runs
How it is used
How it fails and is secured

Residual stream

Where am I? How an LLM computes, step 5 of 10.

What comes before? Embedding.

What comes after? 36 blocks: norm, attention, MLP.

Connections to other lanes (highlighted):
  • RAG: Retrieved text becomes tokens whose states mix into the residual stream through attention.
Open the lesson →