Sungju Kim · Study

숫자 하나부터 Agent RL까지,
직접 돌려 보며 배우는 커리큘럼

From a single loss value to agent RL —
a curriculum you learn by running it

머신러닝의 손실 함수에서 시작해 역전파, Transformer, LLM 사전·사후학습을 지나 GRPO와 멀티턴 agent RL, 미·중 frontier lab의 기술 보고서, 그리고 아키텍처·추론·frontier RL·RL 프레임워크 딥다이브까지 이어지는 열 개 트랙입니다. 모든 레슨에 손으로 만지는 그림이 있고, 핵심 알고리즘은 NumPy로 바닥부터 구현해 이 페이지 안에서 바로 실행됩니다.

Ten tracks that start from a loss function and run through backprop, Transformers, LLM pre- and post-training, GRPO and multi-turn agent RL and the technical reports of frontier labs in the US and China, to deep dives on architectures, inference, frontier RL and RL frameworks. Every lesson has figures you manipulate, and the key algorithms are implemented from scratch in NumPy and run right here in the page.

11 tracks · 106 lessons · ~81 h · in-browser Python (Pyodide)
MLP 2→16→16→1 · tanh · Adam step 0 loss – acc –
A small neural network learning two interleaved spirals, live in your browser. A boundary that starts out almost straight bends along the spirals within a few hundred steps. Click to add a point there (Shift+click for the other class). Track II builds why this works, from scratch.
작은 신경망이 두 나선을 브라우저 안에서 실시간으로 학습합니다. 처음엔 거의 직선이던 경계가 수백 step 만에 나선을 따라 휘어집니다. 점을 클릭하면 그 자리에 새 데이터가 추가됩니다(Shift+클릭은 반대 클래스). 왜 이게 되는지는 Track II에서 직접 구현합니다.
0

준비: 수학Math Foundations Math Foundations

선형대수·미분·최적화·확률·통계·정보 이론·수치 계산 — 이후 모든 트랙이 쓰는 수학을, 어디에 쓰이는지와 함께 손으로 만져 본다.Linear algebra, calculus, optimisation, probability, statistics, information theory and numerics — the maths every later track uses, handled hands-on and tied to where it is used.

VI

프론티어 기술 보고서 리뷰Frontier Tech Reports Frontier Tech Reports

DeepSeek·Qwen·Kimi·MiMo·MAI 등 미·중 frontier lab 보고서의 아키텍처·데이터·학습법·결과를 직접 돌려 보며 읽는다.Architecture, data, training and results of frontier-lab reports from the US and China — DeepSeek, Qwen, Kimi, MiMo, GLM, MAI and more — read by running them.

VII

Frontier 아키텍처 딥다이브Architecture Deep Dives Architecture Deep Dives

MoE, MLA, sparse·linear attention, Mamba 하이브리드, MTP — 부품을 하나씩 해부하고, frontier 모델들이 왜 그 조합을 골랐는지 직접 조작하며 따라간다.MoE, MLA, sparse and linear attention, Mamba hybrids, MTP — take each component apart, then follow why frontier models chose their combinations by manipulating them yourself.

VIII

추론과 추론 최적화Inference & Optimisation Inference & Optimisation

roofline부터 FlashAttention, KV cache 관리, 배칭·PD 분리, 양자화, speculative decoding, MoE 서빙, RL rollout용 추론까지.From the roofline to FlashAttention, KV-cache management, batching and prefill/decode disaggregation, quantisation, speculative decoding, MoE serving and inference for RL rollouts.

IX

Frontier RL: 알고리즘과 안정화Frontier RL: Algorithms & Stability Frontier RL: Algorithms & Stability

frontier lab들의 RL 목적함수를 한 틀로 비교하고, long-horizon·비동기 staleness·학습–추론 불일치를 다루는 엔지니어링까지.The frontier labs' RL objectives in one frame, and the engineering behind long-horizon training, async staleness and training–inference mismatch.

레슨 지도Lesson map

Lesson map. Columns are tracks, lines are "read this first" relations. Hover a lesson to light up what it builds on (the chain above) and what it unlocks (the chain below). Finished lessons become filled dots.
레슨 지도. 세로 줄이 트랙, 선이 "먼저 볼 것" 관계입니다. 레슨에 마우스를 올리면 그 레슨이 기대는 것(위쪽 사슬)과 그 레슨이 여는 것(아래쪽 사슬)이 함께 밝아집니다. 완료한 레슨은 채워진 점으로 바뀝니다.

이 사이트를 쓰는 법

커리큘럼의 뼈대

Track I–III은 고전 교과서(Bishop, Goodfellow et al., Karpathy의 Zero to Hero)의 순서를 따르되, LLM 사후학습에 실제로 쓰이는 개념 — cross-entropy와 KL, softmax와 log-prob, AdamW, causal mask — 에 비중을 더 두었습니다. Track IV–V는 Nathan Lambert의 RLHF Book과 강의를 뼈대로 삼고, RL 고전(Sutton & Barto, Spinning Up)과 2025–26년의 GRPO 계열·agent RL 논문으로 살을 붙였습니다. Track VI는 frontier lab 보고서를 원문 그대로 읽고, 핵심 method를 직접 재구현합니다.

How to use this site

How the curriculum is built

Tracks I–III follow the classic textbooks (Bishop, Goodfellow et al., Karpathy's Zero to Hero) but weight the ideas that LLM post-training actually reuses — cross-entropy and KL, softmax and log-probs, AdamW, causal masks. Tracks IV–V use Nathan Lambert's RLHF Book and course as the skeleton, filled in with RL classics (Sutton & Barto, Spinning Up) and the 2025–26 GRPO-family and agent-RL papers. Track VI reads frontier-lab reports from the primary source and re-implements their key methods.