StackMap
Subscribe
Explore / LlamaFactory
hiyouga

LlamaFactory

The unified fine-tuning framework: 100+ LLMs and VLMs via LoRA/QLoRA/full-parameter, config-driven or through the LlamaBoard GUI. ACL 2024, 1000+ citations, 73k stars.

73,318 8,951 Python Apache-2.0updated yesterday
Curator's take

The default answer to 'how do I fine-tune model X': whatever the architecture (Llama, Qwen, Mistral, VLMs…), whatever the method (LoRA, QLoRA, DPO, PPO, full), one YAML config or the LlamaBoard GUI runs it — with the broadest model-coverage matrix in open source and academic citation weight behind it. If TRL is the library you code against, LlamaFactory is the trainer you configure. NOT for frontier-scale RL dataflows (verl/slime territory), and the kitchen-sink coverage means version bumps occasionally break niche model+method combos — pin versions for anything long-running.

Mapped by ShipWithAI editors · links verified
README.md

# LLaMA Factory

GitHub Repo stars GitHub last commit GitHub contributors GitHub workflow PyPI Citation Docker Pulls

Twitter Discord WeChat Blog

Open in Colab Open in DSW Open in Spaces Open in Studios Open in Novita

Used by Amazon, NVIDIA, Aliyun, etc.

Supporters ❤️

SerpAPI sponsorship

Easily fine-tune 100+ large language models with zero-code CLI and Web UI

GitHub Trend

👋 Join our WeChat and NPU user groups.

[ English | 中文 ]

Fine-tuning a large language model can be easy as...

https://github.com/user-attachments/assets/3991a3a8-4276-4d30-9cab-4cb0c4b9b99e

Start local training:

Start cloud training:

Read technical notes:

  • Documentation (WIP): https://

Continue your stack

What teams reach for next — and why each earns a place beside LlamaFactory. Ranked by curator confidence.