LlamaFactory
Fine-tune 100+ open LLMs and VLMs from a web UI or CLI, without writing training code.
Quick answer
LlamaFactory is a fine-tune 100+ open LLMs and VLMs from a web UI or CLI, without writing training code, listed under Data labeling & vector databases. A typical small-business use: fine-tune a small open model on your own support tickets, product data or writing style. It needs a GPU server; we do not estimate that cost because GPU prices vary too much by card and provider. License: Apache-2.0, which allows internal business use.
Last updated · facts verified against official docs on · sources
Activity data comes from GitHub and was last refreshed Oct 29, 2026.
What is LlamaFactory?
LlamaFactory (LLaMA-Factory) wraps full fine-tuning, LoRA, QLoRA and other methods for over 100 open models behind a Gradio web UI (LLaMA Board) and a CLI. It covers supervised fine-tuning, preference training (DPO, KTO, ORPO), evaluation, merging and exporting, and can serve the result through an OpenAI-style API with vLLM or SGLang. It needs a GPU for practical training.
Where it fits in a 10–200 person business
- Fine-tune a small open model on your own support tickets, product data or writing style
- Run LoRA/QLoRA training on a single rented GPU instead of sending data to a hosted fine-tuning service
- Export a tuned model and serve it behind an OpenAI-compatible API for internal tools
These use cases are our editorial suggestions, not claims made by the project.
Can a business use LlamaFactory? (license)
| License | Apache-2.0 |
|---|---|
| Type | Permissive: MIT / Apache-2.0: use, modify and sell with few obligations. |
| Internal business use | Allowed under the license text |
| What to watch | Free for internal and commercial use, modification and redistribution. Keep the license and NOTICE text and state significant changes when you redistribute. The model weights you train keep their own licenses (Llama, Qwen, Gemma and so on), which you must follow separately. |
This is a plain-English summary of the license text, not legal advice. Third-party models you run with it have their own licenses.
Data & compliance: does LlamaFactory phone home?
| Telemetry (usage data sent to the vendor) | Not documented |
|---|---|
| Other calls home by default (updates, marketplaces, default cloud services) | Not documented Experiment logging to Weights & Biases, SwanLab or MLflow is opt-in (report_to in the training config); models and datasets are downloaded from Hugging Face or ModelScope. |
| Single sign-on (OIDC / SAML / LDAP) | Not documented |
| Audit log | Not documented |
| Role-based access control (RBAC) | Not documented |
| Data residency / GDPR notes from the project | Not documented |
Checked against the project's own docs and repository on . "Not documented" means we could not find the answer in official sources; it does not mean the feature is missing or that no data is sent. Third-party services you connect (model APIs, vector databases, search engines) have their own data policies. Compare all apps.
What hardware does LlamaFactory need?
The project does not publish a minimum CPU/RAM figure, so we leave the official value blank rather than guess.
GPU: Required for practical use. The README's estimated GPU memory for a 7B model ranges from about 4-6 GB (2- or 4-bit QLoRA) and 16 GB (16-bit LoRA) to 60-120 GB (full fine-tuning).
The README publishes estimated GPU memory per method and model size, not server minimums. The CUDA Docker image is built on Ubuntu 22.04 (x86_64), CUDA 12.4, Python 3.11 and PyTorch 2.6.0.
How much does it cost to host LlamaFactory per month?
Needs a GPU server for practical use. Not estimated, because GPU prices vary too much by card and provider.
How to deploy LlamaFactory
Method: Docker Compose (build from source, CUDA)
git clone --depth 1 https://github.com/hiyouga/LlamaFactory.git
cd LlamaFactory/docker/docker-cuda/
docker compose up -d
docker compose exec llamafactory bash
# inside the container:
llamafactory-cli webui
# web UI on port 7860, API port 8000 From the official instructions: github.com/hiyouga/LlamaFactory/blob/main/README.md. Always check the source for the current version before you run it.
Known gotchas when self-hosting LlamaFactory
- The Apache-2.0 license covers the framework only. Each base model has its own license (Llama, Gemma, Qwen and others) that governs commercial use of the weights you fine-tune. source
- Docker data volumes are commented out in the Dockerfile by default. Uncomment them or mount hf_cache, shared_data and output, or downloaded models, datasets and trained adapters live only inside the container. source
- The pre-built image targets x86_64 with CUDA 12.4. Ascend NPU and AMD ROCm need their own Docker folders and images. source
Alternatives in Data labeling & vector databases
- Meilisearch Fast search engine with full-text, semantic and hybrid (AI) search, shipped as a single binary.
- Milvus Scalable open-source vector database for semantic search and RAG at large data volumes.
- Qdrant Fast vector database for semantic search and RAG back-ends.
- Chroma Open-source embedding database for vector, full-text and metadata search in RAG apps.
- Label Studio Data labeling tool for text, images, audio and video, used to build and evaluate AI models.
- pgvector Open-source PostgreSQL extension for vector similarity search, next to your relational data.
- Weaviate Open-source vector database with hybrid search, RAG and multi-tenancy built in.
LlamaFactory FAQ
How much RAM does LlamaFactory need?
LlamaFactory does not publish an official RAM figure, so we do not state one. The README publishes estimated GPU memory per method and model size, not server minimums. The CUDA Docker image is built on Ubuntu 22.04 (x86_64), CUDA 12.4, Python 3.11 and PyTorch 2.6.0.
Does LlamaFactory need a GPU?
For practical use, yes. Required for practical use. The README's estimated GPU memory for a 7B model ranges from about 4-6 GB (2- or 4-bit QLoRA) and 16 GB (16-bit LoRA) to 60-120 GB (full fine-tuning).
How much does it cost to self-host LlamaFactory?
The software is free to download. It needs a GPU server; we do not estimate that cost because GPU prices vary too much by card and provider.
Is LlamaFactory free for commercial use?
LlamaFactory is licensed under Apache-2.0 (Permissive). Internal business use is allowed under the license text. Free for internal and commercial use, modification and redistribution. Keep the license and NOTICE text and state significant changes when you redistribute. The model weights you train keep their own licenses (Llama, Qwen, Gemma and so on), which you must follow separately. This is a summary, not legal advice.
What are common problems when self-hosting LlamaFactory?
The Apache-2.0 license covers the framework only. Each base model has its own license (Llama, Gemma, Qwen and others) that governs commercial use of the weights you fine-tune. Docker data volumes are commented out in the Dockerfile by default. Uncomment them or mount hf_cache, shared_data and output, or downloaded models, datasets and trained adapters live only inside the container. The pre-built image targets x86_64 with CUDA 12.4. Ascend NPU and AMD ROCm need their own Docker folders and images.
Is LlamaFactory still maintained?
Yes, it is actively developed. Last commit: Oct 29, 2026. Latest release: v0.9.5 (May 30, 2026). Checked Oct 29, 2026.
How do I install LlamaFactory?
The official method is Docker Compose (build from source, CUDA). The exact commands are in the "How to deploy" section above and in the official instructions: https://github.com/hiyouga/LlamaFactory/blob/main/README.md
What are self-hosted alternatives to LlamaFactory?
Other apps in Data labeling & vector databases: Meilisearch, Milvus, Qdrant, Chroma, Label Studio, pgvector, Weaviate.
Sources
- GitHub repository: github.com/hiyouga/LlamaFactory
- Official documentation: llamafactory.readthedocs.io/en/latest/
- License text: github.com/hiyouga/LlamaFactory/blob/main/LICENSE
- Hardware requirements, Deploy instructions, Gotcha 1, Gotcha 2, Gotcha 3: github.com/hiyouga/LlamaFactory/blob/main/README.md
- Hetzner Cloud pricing (cost estimate): www.hetzner.com/cloud/regular-performance
- GitHub stars, commits and releases: GitHub REST API, fetched
Facts on this page were checked against the project's own repository and docs on 2026-10-29. Spotted something out of date? Tell us.