axolotl

Configure Axolotl YAML for LLM fine-tuning with LoRA/QLoRA and DPO/KTO/ORPO/GRPO preferences.

Updated Apr 9, 2026
One-click install
npx skills add https://github.com/MarbleSodas/Mavis --skill axolotl-marblesodas
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: axolotl
Source: https://github.com/MarbleSodas/Mavis/tree/main/optional-skills/mlops/training/axolotl
Command: npx skills add https://github.com/MarbleSodas/Mavis --skill axolotl-marblesodas

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 fine-tune LLMs correctly and efficiently by translating complex Axolotl training options into actionable guidance for YAML-based setups.

Core Features & Use Cases

  • YAML-first fine-tuning guidance: Configure LoRA/QLoRA and multi-GPU training settings directly in Axolotl YAML.
  • Preference/RLHF-ready workflows: Choose and apply DPO/KTO/ORPO/GRPO training patterns aligned to Axolotl capabilities.
  • Performance and scaling knobs: Optimize distributed training behavior using settings like FSDP and context parallelism divisibility.
  • Preprocessing and dataset compatibility checks: Handle dataset edge cases (e.g., packed sequences) and validate common configuration pitfalls.

Quick Start

Ask the AI to generate an Axolotl YAML configuration for LoRA or QLoRA fine-tuning using DPO, including FSDP and context parallel 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 Axolotl YAML for LoRA and DPO fine-tuning?

To configure Axolotl YAML for LoRA and DPO fine-tuning, you define your LoRA parameters and preference-training datasets directly in the YAML file. This Skill provides actionable requirements to translate complex Axolotl training options into a valid configuration.

What is the best way to set up multi-GPU FSDP in Axolotl YAML?

The best way to set up multi-GPU FSDP in Axolotl YAML is by specifying distributed training settings and context parallelism divisibility rules. This Skill guides you through optimizing these performance and scaling knobs for your specific GPU count.

Does Axolotl support KTO and ORPO preference training workflows?

Yes, Axolotl supports KTO and ORPO preference training workflows alongside DPO and GRPO. This Skill helps you choose and apply the correct RLHF-style training patterns aligned to Axolotl capabilities within your YAML setup.

How do I fix dataset preprocessing errors with packed sequences in Axolotl?

To fix dataset preprocessing errors with packed sequences in Axolotl, you must handle dataset edge cases and validate common configuration pitfalls. This Skill provides compatibility checks and debug patterns for common dataset formats.

Can I use QLoRA with context parallelism settings in Axolotl?

Yes, you can use QLoRA with context parallelism settings in Axolotl by configuring both in your YAML file. This Skill targets practitioners tuning LLMs and offers guidance on combining QLoRA with distributed training behavior effectively.