axolotl
Agent skill fromOrchestra-Research/AI-Research-SKILLs
Expert guidance for fine-tuning LLMs with Axolotl - YAML configs, 100+ models, LoRA/QLoRA, DPO/KTO/ORPO/GRPO, multimodal support
How to install axolotl
install axolotl
# install the AI-Research-SKILLs pack with the skills CLI
npx skills add Orchestra-Research/AI-Research-SKILLs# or add only this skill to Claude Code: copy the folder
03-fine-tuning/axolotl/
# into
~/.claude/skills/axolotl/ (all projects)
.claude/skills/axolotl/ (one project)
1# Axolotl Skill23Comprehensive assistance with axolotl development, generated from official documentation.45## When to Use This Skill67This skill should be triggered when:8- Working with axolotl9- Asking about axolotl features or APIs10- Implementing axolotl solutions11- Debugging axolotl code12- Learning axolotl best practices1314## Quick Reference1516### Common Patterns1718**Pattern 1:** To validate that acceptable data transfer speeds exist for your training job, running NCCL Tests can help pinpoint bottlenecks, for example:1920```21./build/all_reduce_perf -b 8 -e 128M -f 2 -g 322```2324**Pattern 2:** Configure your model to use FSDP in the Axolotl yaml. For example:2526```27fsdp_version: 228fsdp_config:29 offload_params: true30 state_dict_type: FULL_STATE_DICT31 auto_wrap_policy: TRANSFORMER_BASED_WRAP32 transformer_layer_cls_to_wrap: LlamaDecoderLayer33 reshard_after_forward: true34```3536**Pattern 3:** The context_parallel_size should be a divisor of the total number of GPUs. For example:3738```39context_parallel_size40```4142**Pattern 4:** For example: - With 8 GPUs and no sequence parallelism: 8 different batches processed per step - With 8 GPUs and context_parallel_size=4: Only 2 different batches processed per step (each split across 4 GPUs) - If your per-GPU micro_batch_size is 2, the global batch size decreases from 16 to 44344```45context_parallel_size=446```47…
Excerpt shown under the repository's MIT license.
