# LlamaFactory

Framework · https://godooo.ai/en/framework/llamafactory

> LlamaFactory is an open-source AI framework, launched in 2023, made for developers.

A toolkit with a web UI for fine-tuning over a hundred language and vision models.

Main jobs: Fine-tuning. It is open source and free to use. You can use it on your own server, offline on your own machine, in the terminal, in the browser and through an API.

## At a glance

- **Type:** [Framework](https://godooo.ai/en/browse#framework)
- **Launched:** 2023
- **Galaxy:** [Models & APIs](https://godooo.ai/en/galaxy/builders)
- **Open source:** Yes · Apache-2.0
- **Source code:** [github.com/hiyouga/LlamaFactory](https://github.com/hiyouga/LlamaFactory)
- **GitHub stars:** 75,004
- **How you run it:** Self-host · Runs offline · Terminal · Web · API
- **Made for:** Developers
- **Website:** [llamafactory.readthedocs.io](https://llamafactory.readthedocs.io)
- **Also known as:** LLaMA-Factory · LLaMA Factory

## What it can do

- **[Fine-tuning](https://godooo.ai/en/capability/fine-tuning)** — main job, _proposed by a machine, awaiting calibration_. “Easily fine-tune 100+ large language models with zero-code CLI and Web UI” (read on [github.com](https://github.com/hiyouga/LlamaFactory), 2026-09-24)
- **[Model training](https://godooo.ai/en/capability/model-training)** — supported, _proposed by a machine, awaiting calibration_. “（增量）预训练、（多模态）指令监督微调、奖励模型训练、PPO 训练、DPO 训练、KTO 训练、ORPO 训练等等。” (read on [llamafactory.readthedocs.io](https://llamafactory.readthedocs.io/zh-cn/latest/), 2026-09-24)

## Alternatives

- **[nanoGPT](https://godooo.ai/en/framework/nanogpt)** (Open source, free): Also does: Fine-tuning, Model training
- **[Kohya's GUI](https://godooo.ai/en/product/kohya-ss)** (Open source, free): Also does: Fine-tuning, Model training
- **[TRL](https://godooo.ai/en/framework/trl)** (Open source, free): Also does: Fine-tuning, Model training
- **[Unsloth](https://godooo.ai/en/framework/unsloth)** (Open source, free): Also does: Fine-tuning, Model training
- **[Axolotl](https://godooo.ai/en/framework/axolotl)** (Open source, free): Also does: Fine-tuning
- **[MLX](https://godooo.ai/en/framework/mlx)** (Open source, free): Also does: Model training, Fine-tuning
- **[PEFT](https://godooo.ai/en/framework/peft)** (Open source, free): Also does: Fine-tuning
- **[Hugging Face](https://godooo.ai/en/product/huggingface)** (Free plan + paid upgrades): Also does: Fine-tuning, Model training
- **[ModelScope](https://godooo.ai/en/product/modelscope)** (Open source, free): Also does: Fine-tuning, Model training
- **[Sentence Transformers](https://godooo.ai/en/framework/sentence-transformers)** (Open source, free): Also does: Fine-tuning, Model training
- **[Together AI](https://godooo.ai/en/product/together)** (Paid): Also does: Fine-tuning, Model training
- **[Modal](https://godooo.ai/en/product/modal)** (Paid): Also does: Fine-tuning, Model training

## Connections

- **Applies:** [LoRA](https://godooo.ai/en/concept/lora)
- **Built with:** [Transformers](https://godooo.ai/en/framework/transformers)

## Questions

### What is LlamaFactory?

LlamaFactory is an open-source AI framework, launched in 2023, made for developers. A toolkit with a web UI for fine-tuning over a hundred language and vision models.

### Is LlamaFactory free?

Yes. LlamaFactory is open source (Apache-2.0) and free to use.

### Is LlamaFactory open source?

Yes, under the Apache-2.0 license. The source code is at https://github.com/hiyouga/LlamaFactory.

### Can LlamaFactory run locally?

Yes. LlamaFactory can run offline on your own machine. It can also be self-hosted on your own server.

### What can LlamaFactory do?

Main jobs: Fine-tuning. It can also do: Model training.

### What are open-source alternatives to LlamaFactory?

Open-source ones: nanoGPT, Kohya's GUI, TRL, Unsloth, Axolotl, MLX, PEFT and ModelScope. Others: Hugging Face, Together AI and Modal.

## Sources

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

---

Last updated 2026-09-24 · sources checked 2026-09-24 · Markdown version of https://godooo.ai/en/framework/llamafactory. Every page on this site has one: add .md to its address.
