Implement a ChatGPT-like LLM in PyTorch from scratch, step by step
-
Updated
Dec 5, 2026 - Jupyter Notebook
Implement a ChatGPT-like LLM in PyTorch from scratch, step by step
Learn AI Engineering! Learn it. Build it. Ship it for others.
A 2.78-trillion-parameter Kimi K3 running inference on a single CPU in 8.24 GB of RAM. Portable C99: no BLAS, no framework, no GPU.
Build a modern LLM from scratch. Every line commented. Explained like we are five.
A shader-based software renderer written from scratch in C89
LeetCode for PyTorch — 65 ML/AI interview problems from real interviews at Google, Meta, Anthropic. Jupyter notebooks, an auto-grader, and an MCP AI tutor.
Agent工程师最全学习路径 · 从零精通 AI 工程 · 20 阶段 542 课 · 中文全量翻译 + 配套站点 + 动画讲解视频 · 如何成为 AI Agent 工程师的修成指南
Minimal neural network in pure C that classifies MNIST handwritten digits. No dependencies.
Multiplayer FPS game - Counter-Strike: Football 🏉
Don't memorize ML. Understand it from first principles including Inference, Cuda, Deep Learning, Data Science and Reinforcement Learning
Pure Rust implementation of a minimal Generative Pretrained Transformer
DSOD: Learning Deeply Supervised Object Detectors from Scratch. In ICCV 2017.
零基础入门 AI Agent 的基础教程。不只是教程,也是一个能在本地跑起来的 Agent:读写文件、执行命令、MCP、长期记忆,自带网页端看清每一步。从 100 行最小循环开始,一课加一个能力,最后拆解 Claude Code、Codex 等主流 Agent
A Chinese-first small language model built from scratch: open 60B-token dataset, tokenizer, mHC + Engram + MoE model, pretraining through RL, all in PyTorch. 从零做中文小模型,数据和代码全部开源
A x86_64 C99 compiler written in Rust from scratch
How to Train Your GPT 中文版:从零手写一个 GPT(分词、注意力、训练、推理、LoRA/QLoRA/DPO 微调),每行代码都有中文注释
From-scratch PyTorch replications of classic and SOTA AI/ML papers: transformers, attention, GANs, diffusion, CLIP, LoRA, MoE, plus SFT/GRPO post-training experiments.
C++ Path Tracer from scratch with zero third-party libraries.
零基础入门大模型(LLM)的基础教程:从零手写 GPT-2,一行行看懂大模型是怎么工作的 | Build GPT-2 from scratch in PyTorch, step by step
A simple in memory cache written using go
To associate your repository with the from-scratch topic, visit your repo's landing page and select "manage topics."