Inside The Machine
Fine-tuning
Fine-tuning

LLaMA-Factory

Fine-tune 100+ LLMs and VLMs from one tool.

Teach a model your data and style.

—PENDING
Gap ScorePending test on Mac Studio
Where it sits
Catalog entryVerified it exists. Install steps not tested yet.
.md .json
AGENT VIEW · text/markdown · or send Accept: text/markdown
---
schema: "https://insidethemachine.ai/schema/listing.schema.json"
slug: "llama-factory"
name: "LLaMA-Factory"
kind: "repo"
tier: "catalog"
category: "finetune"
category_label: "Fine-tuning"
stack_layer: "model"
homepage: "https://llamafactory.readthedocs.io"
repo: "https://github.com/hiyouga/LlamaFactory"
license: "Apache-2.0"
stars: 75495
last_push: "2026-10-10"
archived: false
tags: []
seen_in_videos: []
gap_score: null
gap_score_status: "pending test on Mac Studio"
verified_on: "2026-10-15"
---

# LLaMA-Factory

**What:** Fine-tune 100+ LLMs and VLMs from one tool.

**Why:** Teach a model your data and style.

**Category:** Fine-tuning · **Stack layer:** model

## Status

Catalog entry. Existence and repo metadata checked 2026-10-15 via the GitHub API. Install commands below are auto-extracted from the README and have NOT been executed or verified. Read the README before running anything; prefer a sandbox or venv.

## Install (unverified)

1. [any] source: README (auto-extracted); status: unverified, not executed

```bash
git clone --depth 1 https://github.com/hiyouga/LlamaFactory.git
```

2. [any] source: README (auto-extracted); status: unverified, not executed

```bash
docker run -it --rm --gpus=all --ipc=host hiyouga/llamafactory:latest
```

3. [any] source: README (auto-extracted); status: unverified, not executed

```bash
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu126
```

4. [any] source: README (auto-extracted); status: unverified, not executed

```bash
pip install bitsandbytes
```

## Verify

No verified check yet. Minimum: the install command exits 0 and the tool's own help/version flag runs (exact flag: see README).

## Rollback (unverified)

1. source: derived inverse of install command

```bash
rm -rf https://github.com/hiyouga/LlamaFactory.git
```

2. source: derived inverse of install command

```bash
pip uninstall -y torch
```

3. source: derived inverse of install command

```bash
pip uninstall -y bitsandbytes
```

## Links

- Homepage: https://llamafactory.readthedocs.io
- Repo: https://github.com/hiyouga/LlamaFactory
- README: https://github.com/hiyouga/LlamaFactory#readme