ML.
/

Writing log70 posts277 tagslatest Jul 24, 2026

Paper-reading.

Latest posts

  1. Llama 3 (2024) Paper Notes

    Paper notes on The Llama 3 Herd of Models: 15T tokens, a 405B flagship, 128K context, and a design philosophy of 'managing complexity' (dense over MoE, SFT → rejection sampling → DPO instead of PPO) — the paper where an open-weight model first reaches GPT-4-class performance. It completes Llama 2's skeleton through scale, data, and simplicity.

    llmpaper-readingtransformer+5

  2. Llama 2 (2023) Paper Notes

    Paper notes on Llama 2 covering its commercial license, a base model scaled to 2T tokens with 4k context and GQA, and the Llama 2-Chat alignment pipeline (SFT → two reward models → iterative RLHF with rejection sampling + PPO → GAtt). It fuses LLaMA's open base lineage with InstructGPT's RLHF at production quality.

    llmpaper-readingtransformer+5

  3. LLaMA (2023) Paper Notes

    Paper notes on LLaMA covering its core strategy — train smaller models for longer on publicly available data, optimized for inference — the result where a 13B model beats 175B GPT-3, the RMSNorm/SwiGLU/RoPE architecture changes, the 2048-A100 training scale, and how it kicked off the open LLM ecosystem.

    llmpaper-readingtransformer+5

  4. InstructGPT (2022) Paper Notes

    Paper notes on InstructGPT covering its core method — the three-step RLHF recipe (SFT → reward model → PPO) — the alignment result where a 1.3B model beats 175B GPT-3, gains in truthfulness and toxicity, the alignment tax and PPO-ptx, and the limitations.

    llmpaper-readingtransformer+4

  5. GPT-3 (2020) Paper Notes

    Paper notes on GPT-3 covering its core ideas: 175B scaling, in-context learning (zero/one/few-shot), weighted-sampling training data, headline benchmark numbers, and the data-contamination and bias limitations.

    llmpaper-readingtransformer+4

  6. GPT-2 (2019) Paper Notes

    Paper notes on GPT-2 covering its core ideas: decoder-only Transformer scaling, WebText, next-token prediction, zero-shot task transfer, and the staged release controversy.

    llmpaper-readingtransformer+3

  7. BERT (2018) Paper Notes

    Paper notes covering the core ideas of BERT: the bidirectional Transformer encoder, masked language model, next sentence prediction, and the fine-tuning paradigm.

    llmpaper-readingtransformer+2

  8. LLM Architecture Basics: Encoder-only vs. Decoder-only

    A comparison of encoder-only and decoder-only architectures that distinguish the BERT and GPT families.

    llmtransformerencoder-only+2

  9. LLM Basics: RNNs and Sequential Processing

    Explains how RNNs — the dominant architecture before Transformers — process sequences token by token, and the fundamental limitations that motivated moving beyond them.

    llmrnnsequence-modeling+1

  10. LLM Learning Basics: Masked Language Model

    Explains BERT's core training objective — the Masked Language Model — with formulas, commentary, and examples.

    llmmasked-language-modelmlm+2

  11. LLM Learning Basics: Pre-training and Fine-tuning

    Explains large-scale pre-training and task-specific fine-tuning through the lens of the BERT workflow.

    llmpre-trainingfine-tuning+2

  12. Transformer Basics: Encoder and Decoder

    A clear explanation of what the Transformer encoder and decoder each do, grounded in the original architecture and illustrated with simple examples.

    llmtransformerencoder+2

  13. Attention Is All You Need (2017) — Paper Notes

    A reading note on the Transformer paper — the core ideas, why it mattered, and what to read next.

    llmpaper-readingtransformer+1

  14. LLM Learning Basics: cross-entropy and perplexity

    Explains cross-entropy and perplexity — the metrics used to measure how wrong a model is — with formulas, commentary, and examples.

    llmlosscross-entropy+2

  15. LLM Math Basics 2: Softmax and Probability Interpretation

    A walkthrough of how softmax converts raw scores into probability-like values, with formulas, explanations, and examples.

    llmmathsoftmax+2

  16. LLM Math Basics 1: Vectors and the Dot Product

    A walkthrough of vectors and the dot product — with notation, explanations, and examples — covering what you need to know before reading LLM papers.

    llmmathvector+2

  17. LLM Paper Evolution Map (MOC)

    A Map of Content page for reading core LLM papers in order, starting from the Transformer.

    llmpaper-readingmoc+1

  18. Transformer Basics: Intuition Behind Q, K, and V

    Explains the role of Q, K, and V through the attention formula, a plain-language walkthrough, and a concrete example.

    llmtransformerattention+2

  19. Transformer Basics: Residual, LayerNorm, FFN

    Why Residual, LayerNorm, and FFN are necessary in a Transformer block — explained with equations, commentary, and examples.

    llmtransformerresidual+3