datawhalechina/llms-from-scratch-cn

仅需Python基础,从0构建大语言模型;从0逐步构建GLM4\Llama3\RWKV6, 深入理解大模型原理

View on GitHub ↗Jump to charts ↓Open shareable report

Summary Information

Updated 1 hour ago
Added to GitGenius on September 15th, 2026
Created on February 28th, 2024
Open Issues & Pull Requests: 14 (+0)
GitHub issues: Enabled
Number of forks: 598
Total Stargazers: 4,370 (+0)
Total Subscribers: 37 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 0.0 hours
Mean response time: 111.4 days
90th percentile: 546.1 days
Tracked items: 11

Most active contributors

Sign in to see contributor activity.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 9
New in 7 days: 0
Closed in 7 days: 0
Avg open age: 623 days
Stale 30+ days: 9
Stale 90+ days: 9

Recent activity

Opened in 7 days: 0
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

No label distribution available yet.

Most active issues this week

No issue events were indexed in the last 7 days.

Detailed Description

LLMs from Scratch CN is an educational resource that teaches how to build large language models from the ground up using only Python fundamentals.

The resource addresses the challenge of understanding how large language models work by providing step-by-step construction guides for specific models. Rather than treating these systems as black boxes, it takes a hands-on approach where learners build working implementations of GLM4, Llama3, and RWKV6 from scratch. This practical methodology helps developers grasp the underlying principles and architecture decisions that define modern language models.

This resource suits developers and researchers who want to move beyond using pre-built models to actually understanding their internals. It works well for those with basic Python knowledge who are willing to engage with detailed implementation walkthroughs. The focus on building multiple distinct architectures means learners encounter different design patterns and can understand both common principles and model-specific innovations. This is particularly valuable for anyone planning to fine-tune, optimize, or extend language models in their own work.

The project maintains active development with regular updates to its educational materials and implementations. The codebase uses Jupyter Notebooks as its primary format, making it accessible for interactive learning and experimentation. The repository demonstrates consistent engagement with its subject matter through ongoing refinement of its tutorials and code examples.