datawhalechina/code-your-own-llm
一份全栈式大语言模型参考指南,用最简洁的代码帮助你端到端定义模型从零训练到工程落地的每一个细节
This project is a comprehensive guide for those who want to build their own large language models (LLMs) from scratch. It provides clear, simplified code and detailed explanations for every step of the process, from initial data preparation and model architecture design to training, fine-tuning, and deployment. The ideal user is a machine learning engineer, researcher, or advanced student looking to deeply understand and implement LLMs.
136 stars.
Use this if you need to develop a custom large language model and require an end-to-end reference that simplifies complex concepts into actionable code and theoretical understanding.
Not ideal if you are looking for a high-level API to quickly use pre-built LLMs without needing to understand their internal mechanics or customize their core architecture.
Stars
136
Forks
24
Language
—
License
—
Category
Last pushed
Jan 15, 2026
Commits (30d)
0
Get this data via API
curl "https://pt-edge.onrender.com/api/v1/quality/transformers/datawhalechina/code-your-own-llm"
Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.
Compare
Related models
datawhalechina/happy-llm
📚 从零开始的大语言模型原理与实践教程
Xnhyacinth/Awesome-LLM-Long-Context-Modeling
📰 Must-read papers and blogs on LLM based Long Context Modeling 🔥
PacktPublishing/Mastering-NLP-from-Foundations-to-LLMs
Mastering NLP from Foundations to LLMs, Published by Packt
mlabonne/llm-course
Course to get into Large Language Models (LLMs) with roadmaps and Colab notebooks.
HandsOnLLM/Hands-On-Large-Language-Models
Official code repo for the O'Reilly Book - "Hands-On Large Language Models"