tianyi-zhang-02/cooking-agi
Über uns
Cooking AGI / AGI 大锅烩 · Bilingual (English / 中文) ML & LLM notes with worked examples, step-by-step figures and coding practice. Free to read.
Produktivität und AutomatisierungGemessener Sternzuwachs
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- +1
Nettoänderungen in überlappenden Zeiträumen, keine Tagessummen. Fehlende Messwerte bleiben leer. Sterne zeigen Interesse, nicht Qualität.
README.md
OriginalCooking AGI
Bilingual notes on ML and language models. Work through a training step on paper, follow a token through a Transformer, or see what a serving engine does between one output token and the next.
Read the notes → · 中文 · Contributors · Contribute
The notes are free to read and will stay that way. There's no sign-up. If you save a note, it stays in this browser; My reading lets you export a backup.
Start here
| What brings you here? | Try this |
|---|---|
| I'm new to ML | Train one small model. Make a prediction, measure its error, then change one weight. No GPU needed. |
| I'm reviewing for an interview | Pick a self-check question. Try explaining it aloud; go back to the note where your explanation gets stuck. |
| I want to understand one subject | Open the Transformer topic. Follow the core notes in order, or open a deep dive under the part you want to unpack. |
| I'm curious how we got here | Browse the tech timeline. Follow one branch, such as chips or networks, to see what made later work possible. |
For another subject, choose a reading route.
What's inside
- How models work: Transformer walkthrough · BERT · CLIP and multimodal learning
- How models learn: Training basics · Deep RL · Post-training · LLM-as-a-Judge
- How models get used: Inference · Search and retrieval · Agents and tools
- What's moving: Frontier watch · AI infrastructure · Perception, robots and driving
- Building and running models: From formulas to code · An ML system in production · Inside the runtime · System design
Coverage shows what each area covers and what has been checked. What comes next is in the roadmap; how the site is updated is in updates.
Contributors and reviewers
Commit counts tell only part of the story; questions, reviews, and corrections count too. Add a contribution credit · Share your next stop
Join us!
If a passage is confusing, something is out of date, or a topic is missing, tell us. You don't need the answer first.
- Feedback: open an issue and link the passage. Every note also has a feedback link at the end.
- Changes: small fixes can go straight into a PR. For a new article, start with a content proposal.
- Pass it on: if the notes helped, share the link with a friend.
These are working notes, not an official curriculum. We share public knowledge, never company-specific material. Notes are CC BY 4.0 and code is MIT; see the licenses.
Contributing, review, and privacy
See the contributing guide, editorial guide, and area reviewers. Community PRs need a relevant non-author CODEOWNER review and passing checks. Use public sources and your own explanations; disclose and check AI-assisted work. Issues are public, so don't attach private progress backups, company material, or unredacted logs.
Run locally
No database needed. From the repository root, with Python 3.12:
python3 -m pip install markdown pygments numpy
python3 site/build.py --serve
Then open http://localhost:8000. python3 site/build.py alone writes the site to _site/.
Checks before submitting
python3 site/collaboration.py
python3 -m unittest discover -s site/tests
python3 site/leakcheck.py
python3 site/paritycheck.py --strict
python3 site/build.py
Some experiments also need PyTorch; their tests skip when it isn't installed.
Why this exists
Useful explanations are scattered across lectures, papers, documentation, and bookmarks. These notes bring them together, with worked examples that connect reading a method to explaining and implementing it. Sharing the notes also gives others a way to question the explanations and help fill the gaps.
The aim is to make a field easier to start without a background in it or someone to hand you a reading list. Less time spent searching can mean more time for learning—and for the rest of life.
Changelog
Selected updates, newest first
| Date | Major | Minor |
|---|---|---|
| 2026-12-03 | Topic filters keep the full list of notes, and returning from a note restores the expanded group. Core notes and optional deep dives now have distinct next links (#181). | — |
| 2026-11-25 | Why a prompt's GRPO samples miss the prefix cache on a hybrid model, with two small examples and measured numbers (#154) | — |
| 2026-11-22 | The KV cache note gains a quick read and a visual lab that steps through the cache (#153) | Every page shares one set of colours and type sizes (#153) |
| 2026-11-21 | Learning routes for Production ML and AI infrastructure: recommendation data, experiments and ranking; model serving, queues and recovery; two exercises you can run (#150) · Home page with clear starting points and a topic index; simpler navigation and layouts, better search, and recent notes, reading positions and backups up front in “My reading” (#152) | The reward-learning notes cite their papers next to each claim; the attention-ladder check no longer fails on some machines (#149) |
| 2026-11-20 | Deep RL: offline model-based RL, comparing MOPO, MOReL and COMBO on one small example, and more on ranking, preference strength and what zero successes tell you (#148) | Entry points for starting, review and debugging moved up · Personal details removed from the contributor data, with a check that keeps them out (#148) |
| 2026-11-19 | Deep RL reward learning: RLOO, MaxEnt IRL, GAIL, reward-model ranking and debugging an RL batch, with review questions that link to the worked examples (#146) · Notes on reward signals and on exploration under uncertainty; worked examples added to the MDP, policy-gradient, model-based, planning and offline RL notes (#147) | — |
| 2026-11-14 | Reading-room home page: a route for learning ML from the start, a first calculation to try, and one interface style across the site (#145) · Code blocks with numbered lines and implementations as tabs; a new exercise writes attention five ways, from MHA to MLA (#144) | — |
| 2026-11-13 | — | The build is green again after GitHub updated its runners (#142) |
| 2026-11-09 | — | Formulas in search results read as text · The study buddy hides while the phone menu is open · The KV cache figure no longer fills the console with errors (#141) |
| 2026-11-06 | — | Every topic stays in the reading sidebar; the “show all chapters” toggle is gone (#139) · Shorter PR descriptions: Summary, Changes, Testing (#140) |
| 2026-11-05 | A core-chapters route for ML and LLM interviews, and a walkthrough from one matrix multiply to gradients, memory and multiple GPUs (#134) · A quieter reading layout under the same night sky, with optional colour palettes and a text-size setting (#135 #137) | Career section removed; its old links open the home page (#136) · Reading-page fixes: a steady top bar, the interview home heading, footer alignment (#138) |
| 2026-11-03 | Systems notes: a new note on failure and recovery (timeouts with unknown outcomes, bounded retries, resuming a task), and worked examples on traces, review handoffs and the cost of correcting an assistant | — |
| 2026-10-31 | Nine notes on how ML systems run: a systems map, CPU, GPU and cluster scheduling, Megatron, RL updates and async RL, then prefill, decode and training stability read through the vLLM, SGLang and NeMo RL source | The vLLM and SGLang comparison clarified; systems and post-training notes polished · Chinese pages show the English term wherever a glossary word appears |
| 2026-10-30 | Step-by-step figures for the order of temperature and top-p (#130), the KV cache memory bill (#131), PPO and GRPO baselines (#132) and dividing attention scores by √d_k (#133) | README demo re-filmed with the chronicle in place of interview prep; the changelog brought up to date (#129) |
| 2026-10-29 | Faster search and pages: one index per language, results that open the matching section, and files cached until they change (#128) · README cards merged into one overview; the roadmap and updates pages rewritten for the current priorities (#127) | — |
| 2026-10-26 | — | Post-training notes polished in both languages |
| 2026-10-24 | Diffusion and autoregressive LM notes expanded with worked examples | Two small fixes from the bilingual read-through (#126) |
| 2026-10-22 | — | Navigation and “My reading” work better on phones · The build is green again: the PyTorch example runs only where PyTorch is installed (#125) |
| 2026-10-21 | Every note, 323 in both languages, reviewed: errors fixed and worked examples added (#119) · Explanations polished and technical details corrected (#124) | Draft labels (#120) and difficulty labels (#121) removed · A step-by-step figure for prefill vs decode (#122) · The chronicle tree grows without per-stroke blur (#123) |
| 2026-10-20 | — | Chronicle: Genie 3 linked, and the last candidates from the gap review (#117 #118) |
| 2026-10-19 | Chronicle: a 3D object for every milestone, a star-map view and sourced links (#113); twenty-four pivotal works (#115) and fifteen underdog works (#116) | A cheaper night sky and a cached chronicle tree for faster pages (#114) |
| 2026-10-17 | Interview coach skill: mock interviews in Claude Code or Codex graded against the notes, which now come from a read-only data API on the site (#103, contributed by @Juggernaut0825) · New README: animated preview, and topic, roadmap and contributor cards that update with the site (#104 #105) · README in the site's night-sky style, contributors as a crew card (#109) · Chronicle milestones for 2024–2026 (#108) | Contributor pages move from the site to the GitHub page (#104) · Card icons and folded sections (#106) · One contributor entry per person (#107) · A next-page link at the bottom of the home page (#110) · Per-note read and save counts, and the study buddy's live count, removed (#111 #112) |
| 2026-10-16 | Every note audited: errors fixed, interview pages kept free of company hiring processes (#99), facts updated to October 2026 (#100), repeated explanations folded together and links to the new areas (#101) · Draft series on scaling laws, diffusion LMs and quantization (#102) | The unpublished quant notes removed (#98) |
| 2026-10-15 | Frontier watch, AI infrastructure and embodied AI, with the papers' own figures and 26 step-by-step figures (#97) | — |
| 2026-10-14 | Step-by-step animations in the LeetCode notes (#78) · Step-by-step figures and the papers' own figures in four chapters (#83) · Every note read through once in both languages, checking facts, worked examples and wording (#84 #85 #87 #88 #89 #90) · Step-by-step figures in 16 training and systems notes (#94) | Saved notes, reading history and backups fold into “My reading”; the study dashboard goes and its exercises move to the study plan (#81) · New README promo (#79) · README roadmap, topic coverage and changelog (#82) · Line breaks inside Chinese paragraphs no longer render as spaces (#86) · Review list and changelog (#91) · The interview-prep home becomes a plain directory (#93) · With the private repo archived, the leak check is the only gate (#92) · The gated-attention example uses gates that do not sum to 1 (#95) |
| 2026-10-13 | Chronicle: a technology world tree with 143 sourced milestones, later a vertical timeline (#65 #71) · Study dashboard and reading history (#64 #67) | Reading panel: today, this week, all time (#66 #70) · One-click page feedback (#72) · Security hardening (#73) · Study buddy (#74) · Anonymous counts (#75 #76) · vLLM / SGLang comparison (#68) · README animation (#69) |
| 2026-10-11 | Bilingual entry, README and learning routes; engineering labs and more worked examples (#61 #62) | Training, inference, SigLIP and ML systems guides (#63) |
| 2026-10-09 | Bilingual learning routes reorganized, examples checked one by one (#60) | — |
| 2026-10-05 | Bilingual Deep RL lessons with interactive labs (#58) | More natural career notes (#59) |
| 2026-10-03 | Math and quant review with proofs and worked examples (#56, later removed) | Discussions retired to refocus on the notes (#57) |
| 2026-10-02 | Bilingual LLM-as-a-Judge lessons with interactive evaluation labs (#55) | — |
| 2026-10-01 | Navigation, reading tools and community pages (#45) | Discussions launched and laid out (#53 #54) |
| 2026-09-30 | Bilingual learning paths and chapter self-checks (#42) | CLIP / VLM notes and bilingual READMEs (#44) · The Python you use in coding problems (#40) |
| 2026-09-25 | — | AI Infra section removed; skipped notes polished, a co-reviewer added (#37 #38) |
| 2026-09-24 | Quant zone: a probability series (#36, later removed) | — |
| 2026-09-23 | Close readings, agents, model choice, career and AI infra (#33 #34) | Contributors page and credits (#30 #31 #32) · ML Systems reading list (#35) |
| 2026-09-22 | A nine-note RLHF series; MoE, looped Transformers and Agents with seven live figures (#24 #25) | One language per page (#18) · Night-sky design and home page (#19 #20 #21 #22) · Long evaluation notes split (#23) · Career notes (#26 #27 #28 #29) |
| 2026-09-21 | Site redesign around career routes, knowledge blocks and quick review (#17) | — |
| 2026-08-27 | — | Interview fundamentals, a whiteboard checklist and reference implementations (#15 #16) |
| 2026-08-26 | Post-training series in four steps, from PPO to what came after (#11 #13 #14) | A Chinese reading guide (#10) |
| 2026-08-24 | — | Decoding and the RLHF pipeline restored (#8) |
| 2026-08-14 | — | Multi-head attention, normalization and residual connections (#7) |
| 2026-08-12 | Foundations chapter, reading order and the first site (#3) | Smoother Chinese, grouped sidebar (#4) · Architecture diagrams and intro / advanced layers (#6) |
| 2026-08-10 | First AI infrastructure study guide (#1) | Redrawn diagrams (#2) |
Ähnliche Projekte entdecken
Wird geladen…