What problem does it solve? Fine-tuning large language models typically requires writing complex training code, configuring distributed setups, and managing quantization manually. This Skill provides expert guidance for using LLaMA-Factory to fine-tune 100+ models through a no-code WebUI or YAML-based CLI, covering LoRA, QLoRA, DPO, PPO, and multimodal training. ## Core Features & Use Cases - No-Code WebUI Fine-Tuning: Launch the Gradio-based WebUI to train, evaluate, chat with, and export models without writing code. - Broad Method & Model Support: Covers full fine-tuning, Freeze, LoRA, QLoRA (2-8 bit), GaLore, BAdam, DoRA, PiSSA, plus RLHF methods like PPO, DPO, and KTO across LLaMA, Qwen, Gemma, Mistral, and multimodal models. - Distributed & Accelerated Training: Guidance for DeepSpeed ZeRO, FSDP, FlashAttention-2, Unsloth, and Ascend NPU training and inference. - Use Case: You want to fine-tune Llama-3-8B on a custom Alpaca-format dataset using 4-bit QLoRA on a single GPU, then merge the adapter and export a quantized model for deployment. ## Quick Start Ask the AI to show you how to fine-tune a Llama model on a custom dataset using LLaMA-Factory with QLoRA and then merge the adapter weights.