Fine-tune an LLM locally: best open-source tools (2026)
Our pick
Start with Unsloth if you want to fine-tune a model on your own computer with the least setup. It is a desktop app for Windows, macOS and Linux that runs and trains models with LoRA, QLoRA or full fine-tuning, and it also installs with Homebrew (brew install --cask unsloth) or winget. It runs on NVIDIA, AMD and Intel GPUs and on CPUs; its core package is Apache-2.0 licensed, and optional parts such as the Unsloth Studio UI are AGPL-3.0. The table shows its last commit and latest release, and how the other tools compare.
Best for
- A no-code web interface
hiyouga/LlamaFactoryFine-tunes many models from a zero-code CLI or a web UI (uv run llamafactory-cli webui). It supports LoRA and QLoRA, and the project publishes a Docker image.
- Training driven by one config file
axolotl-ai-cloud/axolotlUses one YAML config file for the whole pipeline, from dataset preprocessing to training and inference. It installs with uv (uv pip install axolotl[deepspeed]) and also ships Docker images.
- Many model families in one tool
modelscope/ms-swiftSupports LoRA, QLoRA and full-parameter training for hundreds of text and multimodal models, with a Web-UI for training and inference. It installs with pip install ms-swift.
- Learning how fine-tuning works
Lightning-AI/litgptClean from-scratch implementations of many LLMs with recipes for pretraining and fine-tuning, including LoRA and QLoRA. It installs with pip.
- Adding LoRA to your own training code
huggingface/peftA library of parameter-efficient methods such as LoRA that plugs into Transformers, Diffusers and Accelerate. It installs with pip install peft.
- A GUI that runs in Docker
h2oai/h2o-llmstudioA framework and no-code GUI for fine-tuning LLMs with LoRA and 8-bit training. It runs from a local setup or from Docker.
The repos compared
Checked on Dec 2, 2026: the oldest day any repo in the table was last read from GitHub.
| Repo | Stars | Last commit | Latest release | Licence | Needs |
|---|---|---|---|---|---|
| unslothai / unsloth A desktop app and library to run and train LLMs locally, with LoRA, QLoRA and full fine-tuning. | 80,606 GitHub (opens in new tab) | Active Dec 2, 2026 | v0.1.925-beta, Nov 25, 2026 | Apache-2.0 | |
| hiyouga / LlamaFactory Fine-tunes many LLMs and vision models from a zero-code CLI or a web UI. | 76,348 GitHub (opens in new tab) | Active Dec 1, 2026 | v0.9.5, May 30, 2026 | Apache-2.0 | |
| axolotl-ai-cloud / axolotl A free, open-source LLM fine-tuning framework. | 12,762 GitHub (opens in new tab) | Active Dec 1, 2026 | v0.21.1, Oct 27, 2026 | Apache-2.0 | |
| modelscope / ms-swift A fine-tuning and deployment framework with a web UI for hundreds of text and multimodal models. | 16,207 GitHub (opens in new tab) | Active Nov 28, 2026 | v4.6.1, Nov 13, 2026 | Apache-2.0 | |
| Lightning-AI / litgpt Implementations of many LLMs with recipes to pretrain, fine-tune and deploy them. | 13,770 GitHub (opens in new tab) | Active Nov 10, 2026 | v0.5.14, Nov 10, 2026 | Apache-2.0 | |
| huggingface / peft Parameter-efficient fine-tuning methods such as LoRA, built to work with Transformers. | 21,938 GitHub (opens in new tab) | Active Nov 27, 2026 | v0.22.0, Nov 19, 2026 | Apache-2.0 | |
| h2oai / h2o-llmstudio A framework and no-code GUI for fine-tuning LLMs. | 5,203 GitHub (opens in new tab) | Active Nov 19, 2026 | v1.15.5, Nov 19, 2026 | Apache-2.0 | |
| oumi-ai / oumi An open-source platform for data preparation, training, evaluation and deployment of models. | 9,439 GitHub (opens in new tab) | Active Dec 1, 2026 | v0.9, Sep 16, 2026 | Apache-2.0 |
Install commands
Copied from each repo. Read its setup steps before you run anything.
unslothai/unsloth
curl -fsSL https://unsloth.ai/install.sh | sh hiyouga/LlamaFactory
docker run -it --rm --gpus=all --ipc=host hiyouga/llamafactory:latest Questions
Can I fine-tune an LLM on my own computer?
Yes. Unsloth is a desktop app for Windows, macOS and Linux that trains models locally, and LlamaFactory, Axolotl and ms-swift run from the command line on your own GPU. Methods such as LoRA and QLoRA train only a small set of added weights instead of the whole model.
What is the easiest tool to fine-tune an LLM?
Tools with a graphical interface need no training code. Unsloth is a desktop app, LlamaFactory has a zero-code CLI and a web UI, and H2O LLM Studio is a no-code GUI.
What is the difference between PEFT and a framework like Axolotl?
PEFT is a library you call from your own Python code to add methods such as LoRA to a model. Axolotl, LlamaFactory and ms-swift are full frameworks that handle data, training and saving, and LlamaFactory lists Unsloth among its supported speed-up options.
Do these tools only fine-tune language models?
No. Unsloth also trains diffusion, audio and embedding models, and ms-swift covers hundreds of multimodal models. Oumi covers data preparation, training, evaluation and deployment.
Are these fine-tuning tools free?
All of them are open source, and the Licence column shows each licence. They are Apache-2.0 licensed, except that optional parts of Unsloth such as its Studio UI are AGPL-3.0. You still need hardware to run them: your own GPU, or a rented one.
