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.
Visit llamafactory.readthedocs.io
Markdown version of https://godooo.ai/en/framework/llamafactory. Every page on this site has one: add .md to its address.
At a glance
- Type
- Framework
- Launched
- 2023
- Galaxy
- Models & APIs
- Open source
- Yes · Apache-2.0
- Source code
- 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
- Also known as
- LLaMA-Factory · LLaMA Factory
What it can do
Fine-tuningmain jobunconfirmed
“Easily fine-tune 100+ large language models with zero-code CLI and Web UI”— github.com, 2026-09-24
Model trainingsupportedunconfirmed
“(增量)预训练、(多模态)指令监督微调、奖励模型训练、PPO 训练、DPO 训练、KTO 训练、ORPO 训练等等。”— llamafactory.readthedocs.io, 2026-09-24
unconfirmedproposed by a machine, awaiting calibration
Alternatives
- nanoGPTOpen source, freeAlso does: Fine-tuning, Model training
- Kohya's GUIOpen source, freeAlso does: Fine-tuning, Model training
- TRLOpen source, freeAlso does: Fine-tuning, Model training
- UnslothOpen source, freeAlso does: Fine-tuning, Model training
- AxolotlOpen source, freeAlso does: Fine-tuning
- MLXOpen source, freeAlso does: Model training, Fine-tuning
- PEFTOpen source, freeAlso does: Fine-tuning
- Hugging FaceFree plan + paid upgradesAlso does: Fine-tuning, Model training
- ModelScopeOpen source, freeAlso does: Fine-tuning, Model training
- Sentence TransformersOpen source, freeAlso does: Fine-tuning, Model training
- Together AIPaidAlso does: Fine-tuning, Model training
- ModalPaidAlso does: Fine-tuning, Model training
Connections
- Applies
- LoRA
- Built with
- 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/hiyouga/LlamaFactorychecked 2026-09-24
- llamafactory.readthedocs.io/zh-cn/latest/checked 2026-09-24
- llamafactory.readthedocs.io