#317 · Primary category: Education & Research
llms-from-scratch-cn
Build large language models from scratch with basic Python; construct GLM4, Llama3, RWKV6 step-by-step and deeply understand LLM principles.
Project last updated:03/26/26
GitHub Stars
4.3K
Forks
596
Contributors
27
License
Other
Why we included this project
For anyone who has used an LLM through an API and wondered what is actually happening inside, this Chinese-language tutorial is a good place to find out. It assumes only basic Python and a little PyTorch, then walks the full pipeline, from tokenization and pretraining to fine-tuning, using runnable Jupyter notebooks. Alongside the GPT-style core it adds step-by-step implementations of GLM4, Llama3, and RWKV6. Engineers can read the notebooks to see how the models they already work with behave under the hood, and educators can lift them straight into course material, which matters because most tutorials jump to fine-tuning and deployment without covering the architecture underneath. It is a learning resource rather than something you deploy, so treat it as the reference you read before attempting a serious from-scratch project.
Articles for this project
No articles for this project yet.
To suggest a topic or contribute an article, contact us.
Related projects in this category
prompts.chat
f.k.a. Awesome ChatGPT Prompts. Share, discover, and collect prompts from the community. Free and open source — self-host for your organization with complete privacy.
JavaGuide
Java Interview & Backend General Interview Guide, covering computer fundamentals, databases, distributed systems, high concurrency, system design, and AI application development.
system-prompts-and-models-of-ai-tools
A curated collection of system prompts, internal tools, and AI models from popular AI assistants and coding agents.
30-seconds-of-code
Coding articles to level up your development skills
generative-ai-for-beginners
21 Lessons, Get Started Building with Generative AI