# LlamaFactory

框架 · https://godooo.ai/zh/framework/llamafactory

> LlamaFactory 是开源 AI 开发框架，2023 年推出，面向开发者。

带网页界面、可微调上百种语言与视觉模型的工具包。

主打：模型微调。开源，可以免费使用。使用方式：自部署、本地离线运行、命令行、网页版、API。

## 速览

- **类别:** [框架](https://godooo.ai/zh/browse#framework)
- **推出于:** 2023
- **所属星系:** [模型与 API](https://godooo.ai/zh/galaxy/builders)
- **是否开源:** 是 · Apache-2.0
- **源代码:** [github.com/hiyouga/LlamaFactory](https://github.com/hiyouga/LlamaFactory)
- **GitHub 星标:** 75,004
- **使用方式:** 可自部署 · 可离线本地运行 · 命令行 · 网页 · API
- **适合谁:** 开发者
- **官网:** [llamafactory.readthedocs.io](https://llamafactory.readthedocs.io)
- **别名:** LLaMA-Factory · LLaMA Factory

## 能做什么

- **[模型微调](https://godooo.ai/zh/capability/fine-tuning)** — 主打, _由机器提出，尚待校准_. “Easily fine-tune 100+ large language models with zero-code CLI and Web UI” (摘自 [github.com](https://github.com/hiyouga/LlamaFactory)，2026-09-24)
- **[模型训练](https://godooo.ai/zh/capability/model-training)** — 支持, _由机器提出，尚待校准_. “（增量）预训练、（多模态）指令监督微调、奖励模型训练、PPO 训练、DPO 训练、KTO 训练、ORPO 训练等等。” (摘自 [llamafactory.readthedocs.io](https://llamafactory.readthedocs.io/zh-cn/latest/)，2026-09-24)

## 平替与同类

- **[nanoGPT](https://godooo.ai/zh/framework/nanogpt)** (开源免费): 同样能做：模型微调、模型训练
- **[Kohya's GUI](https://godooo.ai/zh/product/kohya-ss)** (开源免费): 同样能做：模型微调、模型训练
- **[TRL](https://godooo.ai/zh/framework/trl)** (开源免费): 同样能做：模型微调、模型训练
- **[Unsloth](https://godooo.ai/zh/framework/unsloth)** (开源免费): 同样能做：模型微调、模型训练
- **[Axolotl](https://godooo.ai/zh/framework/axolotl)** (开源免费): 同样能做：模型微调
- **[MLX](https://godooo.ai/zh/framework/mlx)** (开源免费): 同样能做：模型训练、模型微调
- **[PEFT](https://godooo.ai/zh/framework/peft)** (开源免费): 同样能做：模型微调
- **[Hugging Face](https://godooo.ai/zh/product/huggingface)** (免费版 + 付费升级): 同样能做：模型微调、模型训练
- **[ModelScope](https://godooo.ai/zh/product/modelscope)** (开源免费): 同样能做：模型微调、模型训练
- **[Sentence Transformers](https://godooo.ai/zh/framework/sentence-transformers)** (开源免费): 同样能做：模型微调、模型训练
- **[Together AI](https://godooo.ai/zh/product/together)** (付费): 同样能做：模型微调、模型训练
- **[Modal](https://godooo.ai/zh/product/modal)** (付费): 同样能做：模型微调、模型训练

## 关系

- **应用了:** [LoRA](https://godooo.ai/zh/concept/lora)
- **基于…构建:** [Transformers](https://godooo.ai/zh/framework/transformers)

## 常见问题

### LlamaFactory 是什么？

LlamaFactory 是开源 AI 开发框架，2023 年推出，面向开发者。带网页界面、可微调上百种语言与视觉模型的工具包。

### LlamaFactory 免费吗？

免费。LlamaFactory 是开源软件（Apache-2.0）。

### LlamaFactory 开源吗？

开源，许可证是 Apache-2.0。源代码在 https://github.com/hiyouga/LlamaFactory。

### LlamaFactory 能本地运行吗？

能，可以在自己的电脑上离线运行。也可以部署在自己的服务器上。

### LlamaFactory 能做什么？

主打：模型微调。也能做：模型训练。

### LlamaFactory 有哪些开源替代品？

开源的有：nanoGPT、Kohya's GUI、TRL、Unsloth、Axolotl、MLX、PEFT、ModelScope。其他：Hugging Face、Together AI、Modal。

## 来源

- [github.com](https://github.com/hiyouga/LlamaFactory) — 核实于 2026-09-24
- [llamafactory.readthedocs.io](https://llamafactory.readthedocs.io/zh-cn/latest/) — 核实于 2026-09-24
- [llamafactory.readthedocs.io](https://llamafactory.readthedocs.io)

---

最后更新 2026-09-24 · 来源核实于 2026-09-24 · 这是 https://godooo.ai/zh/framework/llamafactory 的 Markdown 版本。本站每个页面都有：在地址后面加 .md。
