datawhalechina/diy-llm resource
🎓 系统性大语言模型构建课程|🛠️ 覆盖预训练数据工程、Tokenizer、Transformer、MoE、GPU 编程 (CUDA/Triton)、分布式训练、Scaling Laws、推理优化及对齐 (SFT/RLHF/GRPO)|🚀 6 个渐进式作业 + 代码驱动,建立 LLM 全栈认知体系 observed · 2026-09-03
Health v2 · maintenance only
79/100
- Activity 100
- Release rhythm 86
- Longevity 20
Flags: no_license
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 68
- age_days: 282
- days_rel: 16
- days_push: 0
- n_releases_24m: 2
Adoption not part of the score
1278 stars · 131 forks observed · 2026-09-03
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A Chinese-language, code-driven course (adapted from Stanford CS336) for systematically building large language models from scratch. It covers tokenizers, Transformer architecture, MoE, CUDA/Triton GPU programming, distributed training, scaling laws, inference optimization, data engineering, and alignment (SFT/RLHF/GRPO) through six progressive hands-on assignments.
Use cases
- learn how large language models are built from scratch
- implement a BPE tokenizer and transformer in PyTorch
- learn CUDA and Triton GPU programming for LLMs
- understand distributed training and FSDP
- study scaling laws and compute-optimal training
- practice SFT and RLHF alignment with GRPO
- chinese-language alternative to stanford cs336
When to choose
- you want a code-driven, hands-on LLM full-stack curriculum in Chinese
- you already know Python, PyTorch, and deep learning basics and want to go deeper
- you want to cover everything from data engineering to GPU kernels and alignment in one course
When to avoid
- you need a production LLM training framework or library rather than a course
- you are a complete beginner without Python and deep learning fundamentals
- you need English-only materials
Facets
learning-resource · maturity active
llm-training llm-inference gpu-computing machine-learning deep-learning prompt-engineering large-language-models deep-learning machine-learning tutorials education gpu-computing python cross-platform course chinese-language cs336 cuda triton moe rlhf scaling-laws tokenizer distributed-training jupyter-notebook datawhale gpu
2 sources
- readme: https://github.com/datawhalechina/diy-llm · fetched 2026-09-03 · 1213b67ad584
- homepage: https://datawhalechina.github.io/diy-llm/ · fetched 2026-08-29 · dc7b04b11a57
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| datawhalechina/diy-llm | main | 79 |
For agents
markdown · JSON · MCP: product_card(name="datawhalechina/diy-llm")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem