# happy-llm

> Open-source project: happy-llm

- Type: skill
- Field: Learning & Education
- Repository: https://github.com/datawhalechina/happy-llm
- GitHub stars: 35068
- Licence: NOASSERTION
- Language: Jupyter Notebook
- Last push: 2026-08-08
- Page: https://imutechz.in/agents/happy-llm

## What it is
Happy-LLM is a free, open-source systematic tutorial from Datawhale for learning large language model principles and training. It guides readers from NLP basics through Transformer architecture, pre-trained models, and LLM fundamentals to hands-on implementation of a LLaMA2 model, pre-training, supervised fine-tuning, LoRA/QLoRA, RAG, Agent, and Agentic RL techniques. The project includes chapter-specific code, downloadable pre-trained models (215M base and SFT), PDF and PPT resources, and targets university students, researchers, and LLM enthusiasts with Python and deep learning background.

## Features
- Free open-source systematic LLM learning tutorial with 8 chapters
- Hands-on implementation of complete LLaMA2 model in PyTorch
- Covers full training pipeline: pre-training, SFT, LoRA/QLoRA
- Includes RAG, Agent, and Agentic RL (GRPO, OPD, Search-R1, ReTool)
- Provides downloadable pre-trained models (215M base and SFT) on ModelScope
- Offers PDF version and PPT teaching materials for offline study

## Best for
- Systematic self-study of LLM fundamentals and architecture
- Hands-on practice building and training LLMs from scratch
- Learning RAG, Agent, and Agentic RL application techniques
- Academic teaching or structured group learning with provided PPTs

## Pros
- Completely free and open-source with no cost barriers
- Structured progression from basics to advanced practical topics
- Includes runnable code implementations for each chapter
- Pre-trained models available for immediate experimentation

## Cons
- Requires prior Python programming and deep learning knowledge
- Assumes familiarity with NLP concepts and terminology
- Chapter dependencies require separate Python environments

Tags: educational, llm-tutorial, transformer, llama2, rag, agent, fine-tuning, pytorch
