AI MOOC
✦ Grow togetherInvite 3 friends, earn 1 month of membership · Up to 12 monthsInvite friends →

Free learning library / Datawhale

Datawhale Diy-LLM: Building Language Models from Scratch

Follow the language model development workflow from tokenization and architecture to training, data, evaluation and systems.

Online course · Language model training and engineering · Chinese course with an English version; coverage may differ

Who it is for

For learners familiar with Python, deep learning and PyTorch who want to study model training and systems.

What you can learn

The community course covers language model architecture, GPU and distributed training, data engineering, evaluation and alignment with coding assignments. It draws on Stanford CS336 but is not an official Stanford course.

Try it first

Read the tokenizer chapter, record tokenization results on a short sample and compare segmentations. Check environment and compute requirements before running assignments.

Free access and conditions

The Chinese and English texts are free to read without signing in. Some assignments can be debugged on CPU; full training needs a GPU, and cloud compute or model services may charge. Check the project for translation coverage.

Source and rights

This page links to the project and offers original learning guidance. No repository-wide license was found; check rights for code, course and third-party materials separately.

Source: Datawhale

Related learning resources

Continue learning: Free courses on AI MOOC

Read now