llm-course
这是一套免费开源的大模型学习课程,配套结构化学习路径和可直接运行的Colab实操笔记,覆盖从基础理论到落地应用全环节。
这个项目值得继续研究吗?
这是一套免费开源的大模型学习课程,配套结构化学习路径和可直接运行的Colab实操笔记,覆盖从基础理论到落地应用全环节。
- 解决什么问题
- 企业落地大模型时普遍面临团队能力升级难的问题,零散的学习资料不成体系、实操性不足,新人培养和团队技能打磨的试错成本高、周期长。
- 适合什么团队
- 计划落地大模型应用的企业业务、技术团队,以及想要系统学习大模型知识、掌握实操技能的个人及学习小组均可使用。
- 使用前注意
- 本课程内容永久免费,配套《LLM Engineer's Handbook》为付费出版物;部分Colab实操笔记需用户自行准备Google账号及对应算力资源。
本页用于缩短初步筛选时间,不构成技术、采购或法律结论。 正式使用前请在真实业务数据上验证,并以官方说明与许可证为准。
从官方资料看清能力、部署与采用边界
以下内容依据项目公开 README 或模型卡翻译整理,代码、命令和产品名保持原样。
项目定位
llm-course是一套面向大模型领域学习者的免费开源课程,核心目标是提供成体系、可落地的学习路径与实操资源,帮助学习者从入门到精通大模型相关的全链路技能,覆盖从底层理论到上层应用落地的完整环节。
课程核心结构
课程共分为三个模块,学习者可根据自身基础灵活选择学习起点:
- LLM基础(可选):覆盖大模型相关的数学、Python、神经网络基础知识点,适合零基础学习者补全前置知识,也可作为有基础学习者的参考手册,模块配套可视化学习路径图:
- LLM科学家模块:聚焦大模型训练优化的前沿技术,适合负责大模型选型、训练、优化的技术人员学习。
- LLM工程师模块:聚焦大模型应用的开发与部署,适合负责大模型业务落地的技术、业务人员学习。
如果需要更完整的课程内容,可访问官方合作的DeepWiki版本获取。
配套实操资源
课程配套了大量可直接运行的Colab(Google推出的云端代码运行平台,无需本地配置复杂环境即可运行大模型相关代码)笔记,按场景分为四大类,所有笔记均支持一键打开运行:
工具类笔记
覆盖大模型全生命周期的常用工具,包括自动评估模型效果的LLM AutoEval、一键合并模型的LazyMergekit、一键微调模型的LazyAxolotl、一键完成多格式量化的AutoQuant、自动生成聊天界面的ZeroSpace等,可直接用于日常大模型相关工作,降低重复开发成本。
微调类笔记
覆盖主流开源大模型的微调方案,包括使用Unsloth微调Llama 3.1、使用ORPO(单阶段大模型微调技术,成本更低速度更快)微调Llama 3、使用DPO(偏好对齐微调技术,可提升监督微调后模型的效果)微调Mistral-7b、使用QLoRA(低显存占用的大模型微调技术)微调Llama 2、Mistral-7b等主流模型的实操教程,每类方案均配套对应的讲解文章,可直接复用在企业的模型微调场景中。
量化类笔记
覆盖常用的大模型量化技术,包括8比特量化入门、GPTQ 4比特量化、GGUF格式量化、ExLlamaV2量化等,可帮助学习者掌握将大模型压缩到消费级硬件可运行的方法,降低大模型部署的硬件成本。
其他实操资源
还包括无需GPU即可合并大模型、使用MergeKit创建混合专家模型、基于知识图谱增强大模型回答效果等场景的实操教程,覆盖更多小众需求。
典型使用方式
学习者可根据自身基础和需求选择学习路径:
- 零基础学习者:可先从LLM基础模块开始,补全数学、Python、神经网络的前置知识,再依次学习LLM科学家、LLM工程师模块的内容,每学习一个知识点即可运行对应的Colab笔记实操验证。
- 有基础的技术人员:可直接跳过基础模块,根据自身需求选择对应模块的内容学习,比如需要做模型微调的直接看微调类笔记,需要做部署优化的直接看量化类笔记,可直接复用现成的笔记完成工作任务,无需从零开发。
- 企业团队学习:可将该课程作为大模型团队的内部培训素材,根据团队不同角色的需求拆分学习内容,配套实操练习快速提升团队整体技能。
许可证与使用建议
本项目采用Apache-2.0许可证,你可以自由使用、修改、分发课程内容,无需支付费用。课程本身将永久免费,作者基于本课程内容编写的《LLM Engineer's Handbook》为付费出版物,如果你认为课程对你有帮助,可通过购买图书支持作者的创作。
维护状态
该项目目前处于活跃维护状态,未被归档,最近一次内容更新为2026年2月,内容会持续跟进大模型领域的最新技术进展。
官方资料与来源
- course
- large-language-models
- llm
- machine-learning
- roadmap


核对上游原始说明节选
Course to get into Large Language Models (LLMs) with roadmaps and Colab notebooks.
𝕏 Follow me on X • 🤗 Hugging Face • 💻 Blog • 📙 LLM Engineer's Handbook
The LLM course is divided into three parts:
- 🧩 LLM Fundamentals is optional and covers fundamental knowledge about mathematics, Python, and neural networks.
- 🧑🔬 The LLM Scientist focuses on building the best possible LLMs using the latest techniques.
- 👷 The LLM Engineer focuses on creating LLM-based applications and deploying them.
[!NOTE]
Based on this course, I co-wrote the LLM Engineer's Handbook, a hands-on book that covers an end-to-end LLM application from design to deployment. The LLM course will always stay free, but you can support my work by purchasing this book.
For a more comprehensive version of this course, check out the DeepWiki.
📝 Notebooks
A list of notebooks and articles I wrote about LLMs.
Toggle section (optional)
Tools
| Notebook | Description | Notebook | |----------|-------------|----------| | 🧐 LLM AutoEval | Automatically evaluate your LLMs using RunPod | | | 🥱 LazyMergekit | Easily merge models using MergeKit in one click. | | | 🦎 LazyAxolotl | Fine-tune models in the cloud using Axolotl in one click. | | | ⚡ AutoQuant | Quantize LLMs in GGUF, GPTQ, EXL2, AWQ, and HQQ formats in one click. | | | 🌳 Model Family Tree | Visualize the family tree of merged models. | | | 🚀 ZeroSpace | Automatically create a Gradio chat interface using a free ZeroGPU. | | | ✂️ AutoAbliteration | Automatically abliteration models with custom datasets. | | | 🧼 AutoDedup | Automatically deduplicate datasets using the Rensa library. | |
Fine-tuning
| Notebook | Description | Article | Notebook | |---------------------------------------|-------------------------------------------------------------------------|---------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------| | Fine-tune Llama 3.1 with Unsloth | Ultra-efficient supervised fine-tuning in Google Colab. | Article | | | Fine-tune Llama 3 with ORPO | Cheaper and faster fine-tuning in a single stage with ORPO. | Article | | | Fine-tune Mistral-7b with DPO | Boost the performance of supervised fine-tuned models with DPO. | Article | | | Fine-tune Mistral-7b with QLoRA | Supervised fine-tune Mistral-7b in a free-tier Google Colab with TRL. | | | | Fine-tune CodeLlama using Axolotl | End-to-end guide to the state-of-the-art tool for fine-tuning. | Article | | | Fine-tune Llama 2 with QLoRA | Step-by-step guide to supervised fine-tune Llama 2 in Google Colab. | Article | |
Quantization
| Notebook | Description | Article | Notebook | |---------------------------------------|-------------------------------------------------------------------------|---------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------| | Introduction to Quantization | Large language model optimization using 8-bit quantization. | Article | | | 4-bit Quantization using GPTQ | Quantize your own open-source LLMs to run them on consumer hardware. | Article | | | Quantization with GGUF and llama.cpp | Quantize Llama 2 models with llama.cpp and upload GGUF versions to the HF Hub. | Article | | | ExLlamaV2: The Fastest Library to Run LLMs | Quantize and run EXL2 models and upload them to the HF Hub. | Article | |
Other
| Notebook | Description | Article | Notebook | |---------------------------------------|-------------------------------------------------------------------------|---------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------| | Merge LLMs with MergeKit | Create your own models easily, no GPU required! | Article | | | Create MoEs with MergeKit | Combine multiple experts into a single frankenMoE | Article | | | Uncensor any LLM with abliteration | Fine-tuning without retraining | Article | | | Improve ChatGPT with Knowledge Graphs | Augment ChatGPT's answers with knowledge graphs. | Article | | | Decoding Strategies in Large Language Models | A guide to text generation from beam search to nucleus sampling | Article | |
🧩 LLM Fundamentals
This section introduces essential knowledge about mathematics, Python, and neural networks. You might not want to start here but refer to it as needed.
Toggle section (optional)
1. Mathematics for Machine Learning
Before mastering machine learning, it is important to understand the fundamental mathematical concepts that power these algorithms.
- Linear Algebra: This is crucial for understanding many algorithms, especially those used in deep learning. Key concepts include vectors, matrices, determinants, eigenvalues and eigenvectors, vector spaces, and linear transformations.
- Calculus: Many machine learning algorithms involve the optimization of continuous functions, which requires an understanding of derivatives, integrals, limits, and series. Multivariable calculus and the concept of gradients are also important.
- Probability and Statistics: These are crucial for understanding how models learn from data and make predictions. Key concepts include probability theory, random variables, probability distributions, expectations, variance, covariance, correlation, hypothesis testing, confidence intervals, maximum likelihood estimation, and Bayesian inference.
📚 Resources:
- 3Blue1Brown - The Essence of Linear Algebra: Series of videos that give a geometric intuition to these concepts.
- StatQuest with Josh Starmer - Statistics Fundamentals: Offers simple and clear explanations for many statistical concepts.
- Seeing Theory: A visual introduction to probability and statistics from Brown University.
- [Immersive Linear Algebra](https://immersivemath.com/il
上游文档较长,此处为节选。完整内容见官方项目。