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.
# open datawhalechina/happy-llm and follow its README
datawhalechina/happy-llm is a third-party open-source project, listed here from public GitHub data. ImuTechz did not write it and has not reviewed or security-audited its code. Read the source and its permissions before you install or run it.
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
This repository showcases various advanced techniques for Retrieval-Augmented Generation (RAG) systems. Each technique has a detailed notebook tutorial
Welcome to the Llama Cookbook! This is your go to guide for Building with Llama: Getting started with Inference, Fine-Tuning, RAG. We also show you how to solve end…