explaingit

zju-llms/foundations-of-llms

Analysis updated 2026-06-24

16,262Audience · researcherComplexity · 2/5Setup · easy

TLDR

Free open-access textbook in Chinese on the foundations of large language models, covering architectures, prompting, fine-tuning, knowledge editing, and RAG.

Mindmap

mindmap
  root((Foundations-of-LLMs))
    Inputs
      Chapter PDFs
      Paper lists
    Outputs
      Study notes
      Research starting points
    Use Cases
      Self study LLMs
      Course material
      Survey reading
    Topics
      Language models
      Architectures
      Prompting
      Fine tuning
      Knowledge editing
      RAG
    Audience
      Students
      Researchers
Click or tap to explore — scroll the page freely

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Self-study the technical foundations of large language models chapter by chapter

USE CASE 2

Use as a Chinese-language textbook for a university course on LLMs

USE CASE 3

Find curated reading lists of key papers grouped by LLM subtopic

What is it built with?

LaTeXPDF

How does it compare?

zju-llms/foundations-of-llmsgustavoguanabara/html-csssteven-tey/novel
Stars16,26216,26216,261
LanguageHTMLTypeScript
Setup difficultyeasyeasymoderate
Complexity2/51/53/5
Audienceresearchergeneraldeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · easy Time to first run · 5min

Material is in Chinese, so non-Chinese readers will need translation help.

In plain English

This repository is a free, open-access textbook on the foundations of large language models (LLMs), the AI systems that power tools like ChatGPT and Claude. Written in Chinese by a research team, it is designed for readers who want to understand how LLMs work at a technical level, from the basics up to cutting-edge methods. The book covers six main areas: how traditional and modern language models work at their core, how the architecture of large AI models has evolved over time, how to write effective prompts (instructions given to an AI model) to get better results, how to efficiently fine-tune (customize and adapt) a pre-existing model without retraining it from scratch, how to edit or correct specific pieces of knowledge stored inside a model, and how retrieval-augmented generation works, a technique where the model pulls in relevant information from an external source before responding. Each chapter is downloadable as a PDF, and the repo also provides curated lists of academic papers linked to each chapter's topic. The team plans monthly updates to keep the content current. This material is aimed at students, researchers, and practitioners who want a rigorous yet readable guide to LLM technology. No specific prior coding skill is assumed, but some familiarity with machine learning concepts would help.

Copy-paste prompts

Prompt 1
Summarize the chapter on parameter-efficient fine-tuning from Foundations-of-LLMs in English
Prompt 2
Translate the table of contents of Foundations-of-LLMs and recommend a 4-week study order
Prompt 3
Use the RAG chapter of Foundations-of-LLMs to design a simple retrieval-augmented chatbot
Prompt 4
Pick three papers from the prompting chapter's reading list and explain how they connect

Frequently asked questions

What is foundations-of-llms?

Free open-access textbook in Chinese on the foundations of large language models, covering architectures, prompting, fine-tuning, knowledge editing, and RAG.

How hard is foundations-of-llms to set up?

Setup difficulty is rated easy, with roughly 5min to a first successful run.

Who is foundations-of-llms for?

Mainly researcher.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Scan in gitsafehub Deploy in gitdeployhub zju-llms on gitmyhub

Verify against the repo before relying on details.