aicoolies logo
LLaMA Factory project logo
LLaMA Factory project logo

LLaMA-Factory

Unified framework for fine-tuning 100+ large language models

open sourceupdated Aug 16, 2026

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.

Read our LLaMA-Factory review

A detailed review by the aicoolies team — click to read

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

Free and open-source under Apache 2.0 license

Platforms

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

Categories

Tags

Use Cases

Related Tools

computed discovery: shared active categories · kept separate from editor-verified Alternatives

FiftyOne logo

FiftyOne

Open-source toolkit for curating datasets and evaluating visual AI models

FiftyOne is an open-source Python toolkit from Voxel51 for building high-quality datasets and better computer-vision and multimodal AI models. It pairs a browser-based visualization App with programmatic dataset curation, embeddings, similarity search, and model-evaluation workflows.

freemiumOpen SourceTelemetry
Open Notebook logo

Open Notebook

Private, self-hosted research notebooks with flexible AI models, source chat, and podcasts

Open Notebook is an MIT-licensed, self-hosted alternative to NotebookLM for collecting sources, chatting over research, generating reusable transformations, and producing multi-speaker podcasts. Its Docker stack keeps notebook data under the user's control while supporting 18-plus model providers, including local Ollama and LM Studio workflows.

Open SourceTelemetry
Hugging Face logo

Text Embeddings Inference

Hugging Face's open-source inference server for embeddings, rerankers, and classifiers

Text Embeddings Inference is Hugging Face's Apache-2.0 server for high-throughput embedding, reranking, and sequence-classification models. TEI packages token-based dynamic batching, optimized Transformers kernels, Safetensors loading, OpenAI-compatible embedding endpoints, Prometheus metrics, and configurable OpenTelemetry tracing in deployable CPU and GPU images.

Open Source
Presidio logo

Presidio

Open-source PII detection and anonymization for AI data flows

Presidio is an MIT-licensed privacy framework for identifying and anonymizing personally identifiable information in text, images, and structured data. It can act as a de-identification layer around LLM prompts, logs, RAG corpora, and customer-data workflows.

Open Source
ElevenLabs logo

ElevenLabs

Lifelike AI voice generation, cloning, and voice agents

ElevenLabs is an AI voice platform for text-to-speech, voice cloning, and conversational AI agents, built on models like Multilingual v2 and the low-latency Flash v2.5 and Turbo v2.5. Developers call its API to generate lifelike narration, clone voices from short audio samples, dub content across 30+ languages, add sound effects, and deploy real-time voice agents for customer service, IVR, and interactive apps, with SDKs for Python, JavaScript, and more.

freemium
Deep Lake logo

Deep Lake

AI data runtime for multimodal datasets and vector search

Deep Lake is an open-source AI data runtime from Activeloop for storing, versioning, and querying multimodal data and embeddings. It fits teams building RAG, training, evaluation, or dataset-heavy agent workflows that need a bridge between vector search, structured metadata, and large image, text, audio, or video collections.

Open Source

Used in Stacks

Comparisons

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 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

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. Free and open-source under Apache 2.0 license

Is LLaMA-Factory open source?

Yes — LLaMA-Factory is open source.

What are the best LLaMA-Factory alternatives?

The top editor-verified LLaMA-Factory alternatives are torchtune, Ray.

How does LLaMA-Factory score in our review?

Our hands-on review scores LLaMA-Factory 91/100 overall, based on speed, privacy, and developer-experience testing.