AI analysis grounded in the code graph — computed facts, not vibes · 2026-12-06T03:05:50Z
This is an educational, from-scratch implementation of a full LLM training pipeline in PyTorch — covering tokenisation (src/tokenizer/bpe.py), pretraining a Transformer, and post-training alignment (SFT, DPO/ORPO/KTO, PPO, GRPO) through to evaluation and chat inference. It targets developers and researchers who want to understand or run every stage of the "raw text → tokens → base model → aligned model" pipeline themselves, without relying on trl, peft, or transformers. It is designed to scale from a 13M-parameter model trainable on CPU up to billion-parameter models on a single GPU.
The repository has 13,382 stars but gained none in this period, and there's only a single tagged release (v1.0.0, 2026-11-16) despite the project existing since January 2025 — so star growth clearly predates this window and isn't explained by recent activity. Commit history shows active, substantive engineering (bug fixes to PPO entropy, GSM8K reward checker, MoE routing loss, gradient accumulation in SFT) rather than marketing-driven changes, suggesting the project's draw is its comprehensiveness and pedagogical completeness rather than recent news.
What changed recently, how it's actually built (from the code graph), and whether you should care. Free account — no card, no spam.