axolotl

Configure Axolotl YAML for LLM fine-tuning with LoRA/QLoRA and preference objectives.

4|Updated May 18, 2026
Ready to run
npx skills add https://github.com/ZardLi1115/zedclaw --skill axolotl-zardli1115
💬 Prompt for ChatGPT / Claude Chat▼
Please help me install this Agent Skill.
Skill: axolotl
Source: https://github.com/ZardLi1115/zedclaw/tree/main/optional-skills/mlops/training/axolotl
Command: npx skills add https://github.com/ZardLi1115/zedclaw --skill axolotl-zardli1115

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires axolotl, torch, transformers, datasets, peft, accelerate, deepspeed, and includes references (resource) components.

What problem does it solve?

This Skill helps you configure and fine-tune large language models using Axolotl by turning Axolotl-specific YAML options into correct, reproducible training setups instead of scattered guesswork.

Core Features & Use Cases

  • LoRA / QLoRA fine-tuning: Generate and validate YAML configurations for parameter-efficient training, including common distributed setups.
  • Preference optimization workflows: Support for DPO/KTO/ORPO/GRPO-style YAML-driven training scenarios and dataset configuration patterns.
  • Practical configuration guidance: Provide commonly used configuration snippets (e.g., FSDP settings, context parallelism, compressed saves) and doc-grounded references to reduce configuration errors.

Quick Start

Ask the agent to build an Axolotl YAML for LoRA fine-tuning using your model name and dataset, and include the right FSDP and context_parallel_size settings for your GPU count.

Frequently Asked Questions about axolotl

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I configure an Axolotl YAML file for LoRA fine-tuning?▼

To configure LoRA fine-tuning with Axolotl, you define model and dataset paths alongside parameter-efficient training options in a YAML file. The setup validates distributed configurations like FSDP and context parallelism to ensure reproducible LLM training.

Does Axolotl support DPO and GRPO preference optimization workflows?▼

Yes, Axolotl supports preference optimization workflows including DPO, KTO, ORPO, and GRPO. It provides YAML-driven configuration patterns to define datasets and training objectives for aligning LLMs with human or AI preferences.

What is the correct way to set up FSDP and context parallelism in Axolotl?▼

Setting up FSDP and context parallelism in Axolotl requires specifying configuration options in your YAML file based on your GPU count. The setup ensures context parallelism divisibility is correct to prevent distributed training errors across your GPUs.

Can I use Hugging Face datasets and models with Axolotl YAML configurations?▼

Yes, you can use Hugging Face datasets and models with Axolotl YAML configurations. The tool integrates with transformers and datasets libraries to load model weights and training data directly for fine-tuning.

How do I save compressed checkpoints during distributed LLM training in Axolotl?▼

To save compressed checkpoints during distributed LLM training in Axolotl, you enable compressed saving options within your YAML configuration. This reduces storage overhead while maintaining correct checkpoint integrity across FSDP setups.