hiyouga/LlamaFactory

Unified Efficient Fine-Tuning of 100+ LLMs & VLMs (ACL 2024)

View on GitHub ↗Jump to charts ↓Open shareable report

Summary Information

Updated 14 minutes ago
Added to GitGenius on June 19th, 2026
Created on May 28th, 2023
Open Issues & Pull Requests: 1,113 (+0)
Number of forks: 9,078
Total Stargazers: 74,265 (+4)
Total Subscribers: 345 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 3.0 hours
Mean response time: 6.4 days
90th percentile: 8.7 days
Tracked items: 4,095

How this project is maintained

Around half of the issues opened in the past year never receive a reply. 100% of open issues come from outside the core team, so the backlog reflects real-world use rather than internal planning. Work labelled "solved" is answered fastest, typically in about 2 hours, while "enhancement" waits about 3 days. 84% of tracked open issues have had no activity in three months, so the open count overstates what is actively being worked. Only 5% of issues opened in the past year have been closed.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 991
New in 7 days: 4
Closed in 7 days: 1
Avg open age: 352 days
Stale 30+ days: 970
Stale 90+ days: 908

Recent activity

Opened in 7 days: 3
Closed in 7 days: 1
Comments in 7 days: 4
Events in 7 days: 13

Top labels

  • solved (2,441)
  • pending (1,032)
  • bug (692)
  • wontfix (572)
  • duplicate (318)
  • invalid (235)
  • enhancement (161)
  • npu (142)

Detailed Description

LLaMA Factory is a unified framework for efficient fine-tuning of over 100 large language models and vision-language models, recognized with an ACL 2024 publication. The repository provides both command-line and graphical interfaces for fine-tuning, making advanced model customization accessible without requiring code.

The framework supports an extensive range of models including LLaMA, LLaVA, Mistral, Mixtral-MoE, Qwen3, Qwen3-VL, DeepSeek, Gemma, GLM, and Phi variants. It implements multiple training methodologies including continuous pre-training, multimodal supervised fine-tuning, reward modeling, PPO, DPO, KTO, ORPO, and other advanced techniques. The repository demonstrates rapid adoption of cutting-edge models, with day-zero support for models like Qwen3, Qwen2.5-VL, Gemma 3, and GLM-4.1V, and day-one support for Llama 4 and other recent releases.

LLaMA Factory offers diverse quantization and efficiency options spanning 16-bit full-tuning, freeze-tuning, LoRA, and 2 through 8-bit QLoRA implementations via AQLM, AWQ, GPTQ, LLM.int8, HQQ, and EETQ. The framework integrates advanced optimization algorithms including GaLore, BAdam, APOLLO, Adam-mini, Muon, OFT, DoRA, LongLoRA, LLaMA Pro, Mixture-of-Depths, LoRA+, LoftQ, and PiSSA. Performance enhancements are achieved through FlashAttention-2, Unsloth, Liger Kernel, KTransformers, RoPE scaling, NEFTune, and rsLoRA.

The repository supports diverse task types including multi-turn dialogue, tool usage, image understanding, visual grounding, video recognition, and audio understanding. Experiment monitoring is facilitated through LlamaBoard, TensorBoard, Wandb, MLflow, and SwanLab integration. For inference, the framework provides OpenAI-style API compatibility, Gradio UI, and CLI access with vLLM or SGLang workers for accelerated deployment.

The repository has established adoption among major technology companies including Amazon, NVIDIA, and Aliyun, with documented use cases in production environments.

The project provides comprehensive documentation at llamafactory.readthedocs.io, maintains an official blog at blog.llamafactory.net, and offers free cloud training options through Google Colab and Aliyun PAI-DSW. Docker support, ModelScope Hub integration, and Weights and Biases logging capabilities are included. The framework also supports specialized hardware backends including AMD GPU documentation and ASCEND NPU support, demonstrating broad hardware compatibility across different computing environments.