datawhalechina/happy-llm: 📚 从零开始的大语言模型原理与实践教程
Happy-LLM is a systematic large language model learning tutorial open-sourced by Datawhale, designed to help readers deeply understand LLM principles and train models hands-on. Starting from NLP fundamentals, the tutorial progressively explains the Transformer architecture, pretrained language models, and the full LLM training pipeline, and implements a complete LLaMA2 model based on the PyTorch and Transformers frameworks. The content covers cutting-edge technologies such as pretraining, supervised fine-tuning, PEFT, RAG, Agent, and GRPO, and is suitable for learners with some foundation in Python and deep learning. The project is completely free, providing PDF tutorials, PPT courseware, and code practice, along with a ModelScope Studio experience link.