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 project is actively maintained by hiyouga with significant contributions from Kuangdd01 and codemayq, as tracked through 14026, 1079, and 520 events respectively across the repository's issue and pull request activity.
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.
According to GitGenius activity tracking, the repository maintains a median issue and pull request response latency of 0.0 hours with a mean of 56.4 hours across 4533 tracked items. The most prevalent issue labels are solved with 2441 instances, pending with 954 instances, and bug with 677 instances, indicating active issue resolution. 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.