LLaMA-Factory is a unified framework for efficient fine-tuning of 100+ large language models (LLMs) including LLaMA, Mistral, Qwen, and more. Current version 0.9.5, released with frequent updates (weekly/biweekly). It supports LoRA, QLoRA, full-parameter tuning, and provides a web UI (chatbot). Requires Python >=3.11.
pip install llamafactory[torch]No compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Minimal fine-tuning with LLaMA-Factory using the modern high-level API.
Replace `Trainer` with `LLaMAFactory` and update method calls accordingly.
Convert your dataset to JSONL: each line is a JSON object with 'instruction', 'input' (optional), and 'output' fields.
Upgrade to Python 3.11 or higher. Check your Python version with `python --version`.
Set `HF_TOKEN` environment variable: `export HF_TOKEN='your_token'` or pass `token='...'` in config.
No dependency data recorded yet.