Skip to content
aicoolies logo
LLaMA Factory project logo

LLaMA-Factory

Unified framework for fine-tuning 100+ large language models

LLaMA-Factory is an open-source toolkit providing a unified interface for fine-tuning over 100 LLMs and vision-language models. It supports SFT, RLHF with PPO and DPO, LoRA and QLoRA for memory-efficient training, and continuous pre-training. The LLaMA Board web UI enables no-code configuration, while CLI and YAML workflows serve advanced users. Integrates with Hugging Face, ModelScope, vLLM, and SGLang for model deployment.

About LLaMA-Factory

LLaMA-Factory has become a widely adopted open-source fine-tuning framework in the LLM ecosystem, accumulating over 72K+ GitHub stars and a peer-reviewed ACL 2024 publication. The toolkit abstracts away the boilerplate complexity of adapting large language models to custom datasets, offering a single unified interface that spans LLaMA, Mistral, Qwen, Gemma, DeepSeek, ChatGLM, and dozens of other model families. Its support for LoRA and QLoRA with 2/3/4/5/6/8-bit quantization enables fine-tuning surprisingly large models on consumer-grade GPUs, dramatically lowering the barrier to entry for teams without enterprise compute clusters.

The framework covers the full spectrum of modern training methodologies: supervised fine-tuning for instruction following, DPO and KTO for preference alignment, PPO for reinforcement learning from human feedback, and ORPO for combined objectives. Recent 2025 updates added OFT and OFTv2 orthogonal fine-tuning methods, SGLang as an inference backend, multimodal model support including audio understanding, and compatibility with Llama 4, Qwen3, and InternVL3. FlashAttention-2, DeepSpeed, and GaLore integrations further optimize training throughput and memory efficiency.

LLaMA-Factory stands out through exceptional developer experience. The LLaMA Board web interface provides a Gradio-powered dashboard for configuring datasets, selecting training methods, setting hyperparameters, and monitoring experiments through integrated TensorBoard and Weights & Biases tracking. The CLI accepts YAML configuration files with extensive examples for every supported scenario. Trained models can be exported to Hugging Face Hub, served through an OpenAI-compatible API endpoint, or deployed via vLLM and SGLang workers for high-throughput inference.

Pricing & Platform Specs

Pricing Summary

LLaMA-Factory is 100% free and open-source software under the Apache 2.0 license. It provides a visual WebUI and CLI for fine-tuning over 100 large language models with no subscription or licensing fees (users supply their own compute).

Supported Platforms

Python, Linux, macOS, Windows (CUDA GPUs recommended)

Explore categories, tags & use cases

Categories

Meta's official PyTorch library for LLM fine-tuning

torchtune is Meta's official PyTorch-native library for fine-tuning large language models. It provides composable building blocks for training recipes covering LoRA, QLoRA, full fine-tuning, DPO, and knowledge distillation. Supports Llama, Mistral, Gemma, Qwen, and Phi model families with distributed training across multiple GPUs. Designed as a hackable, dependency-minimal alternative to higher-level frameworks.

freeOpen Source

Distributed AI compute engine for scaling Python and ML workloads

Ray is an open-source distributed computing framework built for scaling AI and Python applications from a laptop to thousands of GPUs. It provides libraries for distributed training, hyperparameter tuning, model serving, reinforcement learning, and data processing under a single unified API. Ray's public site highlights OpenAI and other enterprise users. Maintained by Anyscale with Apache-2.0 open-source licensing.

freemiumOpen Source

Side-by-Side Comparisons

ModelScope logo
ms-swift
vs
LLaMA Factory project logo
LLaMA-Factory

ms-swift vs LLaMA-Factory — ModelScope Fine-Tuning Hub vs Universal Training Orchestrator

ms-swift and LLaMA-Factory both simplify LLM fine-tuning with web UIs and CLI interfaces but serve different primary ecosystems. ms-swift by ModelScope supports over 600 models with native integration into China's ModelScope Hub alongside Hugging Face. LLaMA-Factory provides the most popular fine-tuning framework globally with 69,000+ stars, comprehensive training method coverage, and deep Hugging Face ecosystem integration.

ms-swiftLLaMA-Factory
LLaMA Factory project logo
LLaMA-Factory
vs
Unsloth logo
Unsloth

LLaMA-Factory vs Unsloth — Unified Training Hub vs Raw Speed Optimizer

LLaMA-Factory and Unsloth both aim to simplify LLM fine-tuning but approach the problem from fundamentally different angles. LLaMA-Factory provides a comprehensive training hub with a web UI, CLI, and support for 100+ models across every major training methodology. Unsloth focuses relentlessly on speed and memory efficiency through custom GPU kernels, delivering 2-5x faster training with 80% less VRAM on consumer hardware.

LLaMA-FactoryUnsloth

Community experience

Sources & verification

Sources checked
Content verified

Verification dates are editorial checks. Routine CMS saves and automatic updatedAt timestamps do not advance them.

FAQ

What is LLaMA-Factory?

LLaMA-Factory is an open-source toolkit providing a unified interface for fine-tuning over 100 LLMs and vision-language models. It supports SFT, RLHF with PPO and DPO, LoRA and QLoRA for memory-efficient training, and continuous pre-training. The LLaMA Board web UI enables no-code configuration, while CLI and YAML workflows serve advanced users. Integrates with Hugging Face, ModelScope, vLLM, and SGLang for model deployment.

Is LLaMA-Factory free?

Yes — LLaMA-Factory is open source and free to use. LLaMA-Factory is 100% free and open-source software under the Apache 2.0 license. It provides a visual WebUI and CLI for fine-tuning over 100 large language models with no subscription or licensing fees (users supply their own compute).

Is LLaMA-Factory open source?

Yes — LLaMA-Factory is open source.

Is LLaMA-Factory still maintained?

Yes — LLaMA-Factory is active. Its listing was last verified on August 26, 2026.

What are the best LLaMA-Factory alternatives?

The first editor-selected LLaMA-Factory alternatives are torchtune, Ray.

How does LLaMA-Factory score in our review?

The published editorial review lists LLaMA-Factory at 91/100 overall across speed, privacy, and developer experience. Check the review's evidence status and test metadata for its verification level.