登录 注册

llm-course (大语言模型入门实战课程)

去点 Star
教育与学习AI 模型与开发框架 courselarge-language-modelsllmmachine-learningroadmap
85,065
Stars
9,898
Forks
757
Watchers
92
Open Issues
Apache-2.0
许可证
未知
语言
2023-06-17
创建时间
2026-02-05
最近更新

项目能做什么

包含学习路线图与 Colab Notebook 的大语言模型(LLM)入门课程。
来源:基于仓库元数据 · 内容以仓库实际 README 为准

使用说明 查看原始 README 原仓库文档

项目简介

mlabonne/llm-course 是一个免费的大语言模型(LLM)开源学习课程,提供系统的学习路线图和丰富的 Google Colab 实战 Notebook。

课程主要分为三个部分: 1. LLM Fundamentals(可选):涵盖数学、Python 和神经网络的基础知识。 2. The LLM Scientist:专注于使用最新技术构建高性能的 LLM。 3. The LLM Engineer:专注于创建并部署基于 LLM 的应用程序。

此外,作者还基于本课程合著了实战书籍 LLM Engineer's Handbook(涵盖从设计到部署的端到端 LLM 应用),并在 DeepWiki 上提供了更全面的课程版本。

核心功能

项目主要提供两大类即开即用的 Google Colab Notebook 及配套文章:

  • 实用工具(Tools):
  • LLM AutoEval:使用 RunPod 自动评估 LLM。
  • LazyMergekit:使用 MergeKit 一键合并模型。
  • LazyAxolotl:使用 Axolotl 在云端一键微调模型。
  • AutoQuant:一键将 LLM 量化为 GGUF、GPTQ、EXL2、AWQ 和 HQQ 格式。
  • Model Family Tree:可视化合并模型的家族树。
  • ZeroSpace:使用免费的 ZeroGPU 自动创建 Gradio 聊天界面。
  • AutoAbliteration:使用自定义数据集自动进行模型 abliteration 处理。
  • AutoDedup:使用 Rensa 库自动对数据集进行去重。
  • 模型微调(Fine-tuning):
  • 提供多种主流模型与微调技术的实战教程,包括使用 Unsloth 微调 Llama 3.1、使用 ORPO 微调 Llama 3、使用 DPO 或 QLoRA(基于 TRL)微调 Mistral-7b、使用 Axolotl 微调 CodeLlama,以及使用 QLoRA 微调 Llama 2 等。

适合谁用

  • 具备或希望补充数学、Python 和神经网络基础,想要入门 LLM 的开发者。
  • 希望掌握模型微调、量化、合并等最新技术的算法工程师与研究人员。
  • 计划开发并部署端到端 LLM 应用的软件工程师。

安装步骤

此部分原文未说明,请查看原仓库。(注:课程中的实战内容主要通过点击 README 中的 Google Colab 链接直接在云端运行。)

配置说明

此部分原文未说明,请查看原仓库。

常见问题

此部分原文未说明,请查看原仓库。

原始 README 摘录(英文原文,节选前 3000 字符)
<div align="center">
<img src="img/banner.png" alt="LLM Course">
  <p align="center">
    𝕏 <a href="https://twitter.com/maximelabonne">Follow me on X</a> • 
    🤗 <a href="https://huggingface.co/mlabonne">Hugging Face</a> • 
    💻 <a href="https://mlabonne.github.io/blog">Blog</a> • 
    📙 <a href="https://packt.link/a/9781836200079">LLM Engineer's Handbook</a>
  </p>
</div>
<br/>

<a href="https://a.co/d/a2M67rE"><img align="right" width="25%" src="https://i.imgur.com/7iNjEq2.png" alt="LLM Engineer's Handbook Cover"/></a>The LLM course is divided into three parts:

1. 🧩 **LLM Fundamentals** is optional and covers fundamental knowledge about mathematics, Python, and neural networks.
2. 🧑‍🔬 **The LLM Scientist** focuses on building the best possible LLMs using the latest techniques.
3. 👷 **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](https://packt.link/a/9781836200079), 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](https://deepwiki.com/mlabonne/llm-course/).

## 📝 Notebooks

A list of notebooks and articles I wrote about LLMs.

<details>
<summary>Toggle section (optional)</summary>

### Tools

| Notebook | Description | Notebook |
|----------|-------------|----------|
| 🧐 [LLM AutoEval](https://github.com/mlabonne/llm-autoeval) | Automatically evaluate your LLMs using RunPod | <a href="https://colab.research.google.com/drive/1Igs3WZuXAIv9X0vwqiE90QlEPys8e8Oa?usp=sharing"><img src="img/colab.svg" alt="Open In Colab"></a> |
| 🥱 LazyMergekit | Easily merge models using MergeKit in one click. | <a href="https://colab.research.google.com/drive/1obulZ1ROXHjYLn6PPZJwRR6GzgQogxxb?usp=sharing"><img src="img/colab.svg" alt="Open In Colab"></a> |
| 🦎 LazyAxolotl | Fine-tune models in the cloud using Axolotl in one click. | <a href="https://colab.research.google.com/drive/1TsDKNo2riwVmU55gjuBgB1AXVtRRfRHW?usp=sharing"><img src="img/colab.svg" alt="Open In Colab"></a> |
| ⚡ AutoQuant | Quantize LLMs in GGUF, GPTQ, EXL2, AWQ, and HQQ formats in one click. | <a href="https://colab.research.google.com/drive/1b6nqC7UZVt8bx4MksX7s656GXPM-eWw4?usp=sharing"><img src="img/colab.svg" alt="Open In Colab"></a> |
| 🌳 Model Family Tree | Visualize the family tree of merged models. | <a href="https://colab.research.google.com/drive/1s2eQlolcI1VGgDhqWIANfkfKvcKrMyNr?usp=sharing"><img src="img/colab.svg" alt="Open In Colab"></a> |
| 🚀 ZeroSpace | Automatically create a Gradio chat interface using a free ZeroGPU. | <a href="https://colab.research.google.com/drive/1LcVUW5wsJTO2NGmozjji5CkC--646LgC"><img src="img/colab.svg" alt="Open In Colab"></a> |
| ✂️ AutoAbliteration | Automatically abliteration models with custom datasets. | <a href="https://colab.research.goo
阅读完整原文

项目深度分析 规则生成(AI 未配置)

综合评分 46.0 分。该项目在“个人可实施性”维度得 0.0 分,“付费可能性”维度得 72.0 分,差异化空间 64.0 分(评分依据见评分卡)。

将 llm-course 改造为垂直场景 SaaS

产品构想保留核心能力,针对某一类用户(如某行业团队)做托管版,收取月费。
目标用户有该需求的中小团队 / 独立站长
难度/周期较高 · 2~4 周(MVP)
收费模式订阅制(如 ¥29~99/月)
竞争风险需验证付费意愿;注意许可证合规
依据 数据支持的判断:许可证与关键词显示存在商用与付费场景

面向细分需求的二次开发产品

产品构想基于 llm-course 的核心能力,聚焦一个更窄的场景(如某平台、某行业)做差异化。
目标用户该细分场景用户
难度/周期中 · 2~6 周
收费模式买断制 / 订阅制 / 广告
竞争风险细分需求规模需验证
依据 AI 推测:基于项目主题标签的判断
以上为规则引擎基于仓库公开数据生成的参考结论,包含推测成分,不构成投资或创业承诺;配置 AI 后可获得更深入的分析。
报告会保存到 个人中心

竞品与相似项目 GitHub Search 真实检索

项目中文简介Stars语言
Developer-Y/cs-video-courses 计算机科学视频课程列表。 84,815 -
prakhar1989/awesome-courses 优质大学计算机科学课程资源列表。 72,761 -
fengdu78/Coursera-ML-AndrewNg-Notes 吴恩达老师的机器学习课程个人笔记。 38,107 HTML
以上为通过 GitHub 官方 Search API 检索的相似项目,功能差异与优劣势需进一步人工确认,配置 AI 后可生成对比分析。

项目优势与风险

技术成熟度创建于 2023-06-17,最近推送 2026-02-05
社区活跃Star 85,065 / Fork 9,898 / Issue 92(数据支持,可自行核实)
许可证Apache-2.0
主要风险上游项目方向可能变化;同赛道竞争者较多(见竞品表);热度与需求不完全等价

安装与使用

此项目未提供 Docker 镜像,安装步骤以原仓库 README 为准(涉及依赖安装与环境配置,对新手门槛较高)。