llamafactory
Unified Efficient Fine-Tuning of 100+ LLMs
Decision gist · record as of 2026-08-14
Yes, if you need to fine-tune LLMs without writing training code. The framework is actively maintained, has no known vulnerabilities, and is used by major organizations (Amazon, NVIDIA, Aliyun). The Apache-2.0 license is permissive. Install friction is low, but you must have Python 3.11+, GPU resources (or significant CPU), and be comfortable with the 31-dependency stack. Start with the free Colab notebook or PAI-DSW trial to evaluate before committing to local setup.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.11 or later; torch and transformers must be installed; GPU or substantial CPU resources needed for actual model training.
- Low friction installation with a pure Python wheel.
- Active maintenance with recent releases; 74099 repository stars and last commit on 2026-08-13 signal sustained development.
License · maintenance · safety
Apache-2.0 (permissive) — Apache-2.0 permissive license allows commercial and private use with minimal restrictions, making it suitable for both research and production deployments.
last release 2026-05-30 (76 days) · last repo commit 2026-08-13 · 74,099 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 101,638 downloads/mo, #12,922 on PyPI
Alternatives
Verify before relying
pip install llamafactory
from llamafactory.cli import main
main()- Exact model count and which specific models are supported beyond the 100+ claim in the summary
- Performance benchmarks or training speed comparisons across different quantization methods
- Memory requirements for fine-tuning models of different sizes
- Whether the web UI (LLaMA Board) can run on CPU-only systems
What it is and what it does
LLaMA Factory is a unified framework for fine-tuning large language models, designed to reduce the friction of adapting pre-trained models to specific tasks or domains. It abstracts away boilerplate training code and provides both command-line and web UI entry points, letting users configure training runs through YAML or the Gradio interface without writing custom training loops. The package bundles support for multiple training paradigms—supervised fine-tuning, reward modeling, reinforcement learning methods like DPO and PPO, and quantization-aware training—across a broad range of model families.
The package depends on a substantial ecosystem: PyTorch, Hugging Face Transformers, PEFT for parameter-efficient tuning, and supporting libraries for data handling, optimization, and inference. It integrates with experiment tracking tools (Weights & Biases, MLflow, SwanLab), model hubs (Hugging Face, ModelScope), and inference servers (vLLM, SGLang). The framework targets researchers and practitioners who want to customize LLMs without managing low-level training infrastructure, and it is actively maintained with support for newly released model architectures.
Use it for
- Fine-tune a Qwen or Llama model on domain-specific instruction data using LoRA to reduce memory footprint
- Adapt a vision-language model like LLaVA for custom image understanding tasks via the web UI
- Run reward modeling and DPO training on a base model to align outputs with human preferences
- Quantize and fine-tune a large model with QLoRA to fit on consumer GPUs
- Deploy a fine-tuned model with OpenAI-compatible API endpoints using vLLM integration
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need to fine-tune LLMs without writing training code.
The framework is actively maintained, has no known vulnerabilities, and is used by major organizations (Amazon, NVIDIA, Aliyun). The Apache-2.0 license is permissive. Install friction is low, but you must have Python 3.11+, GPU resources (or significant CPU), and be comfortable with the 31-dependency stack. Start with the free Colab notebook or PAI-DSW trial to evaluate before committing to local setup.
Install
llamafactory on PyPI
Before you install
Low friction installation with a pure Python wheel. Active maintenance with recent releases; 74099 repository stars and last commit on 2026-08-13 signal sustained development. Requires Python 3.11+ and 31 runtime dependencies including torch, transformers, and peft—a substantial but typical stack for deep learning work.
Requires Python 3.11 or later; torch and transformers must be installed; GPU or substantial CPU resources needed for actual model training.
License in practice
Apache-2.0 permissive license allows commercial and private use with minimal restrictions, making it suitable for both research and production deployments.
Quickstart
pip install llamafactory
from llamafactory.cli import main
main()
Verify before relying
- Exact model count and which specific models are supported beyond the 100+ claim in the summary
- Performance benchmarks or training speed comparisons across different quantization methods
- Memory requirements for fine-tuning models of different sizes
- Whether the web UI (LLaMA Board) can run on CPU-only systems
Package facts
| License | Apache-2.0 permissive |
| Python support | Supports the current Python release >=3.11.0 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 31 packagesaccelerateavdatasetseinopsfastapifiregradiohf-transfermatplotlibmodelscopenumpyomegaconfpackagingpandaspeftprotobufpydanticpyyamlsafetensorsscipysentencepiecesse-starlettetiktokentorchtorchaudiotorchdatatorchvisiontransformerstrltyro |
| Maintenance | Actively maintained 76 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 101,638 / month, #12,922 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 4 - BetaIntended Audience :: DevelopersIntended Audience :: EducationIntended Audience :: Science/ResearchLicense :: OSI Approved :: Apache Software LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Topic :: Scientific/Engineering :: Artificial Intelligence |
Evidence: llamafactory-0.9.5-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “llm fine-tuning framework”
- llamafactoryLLaMA Factory provides a unified framework for fine-tuning 100+ large…
- google-tunixTunix is a JAX-based library for post-training large language models…
- tinker_cookbookTinker Cookbook provides recipes and abstractions for fine-tuning…
Give your agent the search over MCP, or paste the wish link into any chat.
More Artificial Intelligence packages
LiteLLM provides a unified Python interface to call 100+ LLM providers (OpenAI, Anthropic, Gemini, Bedrock, Azure, and others) using OpenAI-compatible API format, available as both a Python SDK and a self-hosted AI Gateway proxy server.
Install it if you need to work with multiple LLM providers or want to centralize LLM routing in your organization.
Client library and CLI tool for downloading, uploading, and managing models, datasets, and repositories on the Hugging Face Hub platform.
Install it if you work with Hugging Face Hub models or datasets.
LangChain provides a framework for building agents and LLM-powered applications by composing language models, tools, and memory through a unified API that abstracts over multiple model providers.
hf-xet provides chunk-based deduplication and efficient file transfer for the Hugging Face Hub, enabling faster uploads and downloads of large files with local disk caching.
Tokenizers converts raw text into token sequences for NLP models, with support for training custom vocabularies and using pre-built tokenizers (BPE, WordPiece) optimized for speed via Rust.
Transformers provides a unified framework for loading, fine-tuning, and running state-of-the-art pretrained models across text, vision, audio, video, and multimodal tasks using PyTorch, JAX, or TensorFlow.
Install it if you need to run or train any transformer-based model for NLP, vision, audio, or multimodal tasks.
See also unsloth-zoo · ms-swift · llama-models · google-tunix · peft · modelscope · liger-kernel · ipex-llm · xgrammar