#4848th of 100 in Learning and cookbooks
llms-from-scratch-cn
Chinese notebooks for building GPT, Llama3, RWKV and ChatGLM from scratch
- Stars
- 4.4k
- License
- custom license
- Last commit
- Sep 2026
- Language
- Jupyter Notebook
Missed the latest GitHub check; these facts may be older.
Overview
Datawhale tutorial repo that walks through implementing a GPT-style LLM in PyTorch notebooks, based on rasbt/LLMs-from-scratch with a Chinese translation. It covers text processing, attention, the GPT model and pretraining on unlabeled data, plus architecture notebooks for ChatGLM3/4, Llama3, RWKV V2 to V6 and MiniCPM. Chapters on fine-tuning and human feedback are still marked as coming soon.
Who it is for: Developers and researchers learning LLM internals in Chinese
Strengths
- Runnable notebooks with exercise solutions for chapters 2-5 and appendices A and D
- Architecture walkthroughs for ChatGLM3/4, Llama3, MiniCPM and RWKV V2 to V6
- Needs only PyTorch basics; includes a PyTorch intro appendix with a DDP script
- Offers a condensed Codes track and a detailed Translated_Book track
Weaknesses
- Chapters 6-8 (classification fine-tuning, human feedback, practical use) are marked coming soon
- Text is Chinese only; core content derives from rasbt's English original
- License is unclear: README shows both an Apache-2.0 badge and a CC BY-NC-SA 4.0 notice
- Teaches small educational models; not a training or serving stack
What it needs
- Needs PyTorch, Jupyter
- Models: GPT, Llama3, ChatGLM3, ChatGLM4, RWKV V2-V6
Also in Learning and cookbooks
See all 100| Rank | Project | Score |
|---|---|---|
| 1 | ai-engineering-from-scratchHands-on AI engineering curriculum with 542 lessons across 20 phases | 91 out of 100 |
| 2 | generative-ai-for-beginners21-lesson course on building generative AI apps in Python and TypeScript | 83 out of 100 |
| 3 | rag_techniquesCollection of 42 runnable notebooks implementing RAG techniques | 82 out of 100 |
| #4 | cs249r_bookOpen textbook and course materials for machine learning systems engineering | 82 out of 100 |
| #5 | ai-for-beginners24-lesson AI curriculum with notebooks in PyTorch and TensorFlow | 81 out of 100 |