llm-course
这是一套面向大模型领域从业者的免费学习课程,分为基础、模型研发、应用落地三个模块,配套可直接运行的实操教程。
这个项目值得继续研究吗?
这是一套面向大模型领域从业者的免费学习课程,分为基础、模型研发、应用落地三个模块,配套可直接运行的实操教程。
- 解决什么问题
- 企业落地大模型应用时,常面临团队缺乏体系化的大模型相关知识、学习路径不清晰、零散查资料效率低、实操经验不足导致项目推进慢、试错成本高的问题。
- 适合什么团队
- 适合有大模型落地需求的企业技术、产品团队学习,也适合想要入门大模型研发、应用开发的相关从业人员使用。
- 使用前注意
- 课程永久免费,配套Colab实操需要谷歌账号,部分高阶操作需额外付费采购GPU算力,采用Apache-2.0许可可自由使用,项目目前仍在维护更新。
本页用于缩短初步筛选时间,不构成技术、采购或法律结论。 正式使用前请在真实业务数据上验证,并以官方说明与许可证为准。
从官方资料看清能力、部署与采用边界
以下内容依据项目公开 README 或模型卡翻译整理,代码、命令和产品名保持原样。
项目定位
本项目是一套免费的大模型体系化学习课程,面向想要进入大语言模型(Large Language Model,简称LLM,是一类能理解和生成人类语言的人工智能模型)领域的从业者,提供清晰的分阶段学习路径和可直接运行的实操指导,覆盖从零基础入门到应用落地的全流程内容,降低大模型相关知识的学习门槛。
核心课程体系
课程共分为三个模块,不同基础的学习者可按需选择:
- LLM基础(可选):覆盖数学、Python、神经网络相关的前置知识,适合零基础学习者补全基础。其中数学部分包含线性代数、微积分、概率统计三类机器学习必备的数学知识,同时配套了多个公开的可视化学习资源,降低理论学习难度。
- LLM科学家模块:聚焦大模型本身的研发技术,教授如何用当前最新的技术训练出效果更优的大模型,覆盖微调、量化、模型合并等核心技术点。
- LLM工程师模块:聚焦基于大模型的应用开发与部署落地,适合想要做业务落地的技术、产品人员学习。
配套实操资源
课程配套了大量可直接运行的实操笔记,全部基于Colab(谷歌提供的免费在线Python运行环境,无需本地搭建复杂环境即可运行代码),点击即可打开操作,覆盖四大类场景:
- 工具类:包含一键自动评估大模型效果的LLM AutoEval、一键合并模型的LazyMergekit、一键微调模型的LazyAxolotl、一键完成多格式模型量化的AutoQuant、自动生成聊天界面的ZeroSpace等实用工具,降低重复操作成本。
- 微调类:覆盖Llama 3.1、Llama 3、Mistral-7b、CodeLlama等主流开源大模型的微调教程,支持Unsloth、ORPO、DPO、QLoRA(QLoRA是一种低显存占用的大模型微调技术,可在普通消费级GPU上完成大模型微调)等多种主流微调方案,每个教程都配套图文讲解。
- 量化类:覆盖8bit量化、4bit GPTQ量化、GGUF量化、EXL2量化等多种主流模型压缩方案,教学习者将大模型压缩到可在普通消费级硬件上运行的大小,降低大模型部署的硬件成本。
- 其他场景:包含模型合并、MoE(MoE即Mixture of Experts,混合专家模型,是一种将多个小模型组合成更高性能大模型的技术架构)制作、知识图谱增强大模型回答效果等实操教程,覆盖更多偏门场景需求。
学习路径建议
不同角色的学习者可按需选择学习顺序:
课程本身永久免费,官方也推出了配套的《LLM Engineer's Handbook》书籍,是课程内容的延伸,想要更系统深入学习的可自行选购,不会影响课程本身的免费使用。
- 如果你是业务、产品人员,只需要了解大模型落地的全流程,可直接跳过基础的数学模块,先学习LLM工程师模块的内容,了解大模型应用的开发、部署流程,再按需补相关的技术常识即可。
- 如果你是想要从事大模型研发的技术人员,可先根据自身基础补全LLM基础模块的内容,再依次学习LLM科学家、LLM工程师模块的内容,每学习一个知识点就跟着对应的实操笔记动手操作,避免纸上谈兵。
使用要求
本课程的所有内容均在线公开,无需部署即可直接访问学习。配套的Colab实操需要使用者持有谷歌账号,基础的实操操作使用Colab提供的免费GPU即可完成,部分涉及大参数量模型微调、量化的高阶操作,可能需要升级Colab付费算力,或使用自有的GPU资源才能完成。
许可证与采用建议
本项目采用Apache-2.0许可证,个人和企业均可自由使用、修改、分发课程内容,无需额外授权,可直接裁剪为企业内部的大模型培训材料使用。项目目前仍在持续维护更新,内容会跟进最新的大模型技术进展,适合作为企业大模型相关团队的统一学习材料,降低团队的整体学习成本,加快大模型业务落地的进度。
官方资料与来源
- 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
上游文档较长,此处为节选。完整内容见官方项目。