axolotl
Routes agents working with Axolotl config-driven LLM fine-tuning, datasets, SFT, preference tuning, GRPO/EBFT, model adapters, distributed training, CLI operations, and troubleshooting.
- License 许可
- Apache-2.0
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- axolotl
- license
- Apache 2.0
- metadata
- { "disco-role": "operating" }
- description
- Routes agents working with Axolotl config-driven LLM fine-tuning, datasets, SFT, preference tuning, GRPO/EBFT, model adapters, distributed training, CLI operations, and troubleshooting.
- disable-model-invocation
- true
02 资源文件 4
- 参考文档references/repo-provenance.md1.9 KB
- 参考文档references/repo-routing-metadata.json566 B
- 参考文档references/troubleshooting.md3.7 KB
- 脚本scripts/check_axolotl_environment.py3.9 KB
03 SKILL.md 正文
Axolotl
Use this repo skill when the user asks about Axolotl, axolotl CLI commands, Axolotl YAML configs, LLM fine-tuning recipes, dataset/preprocess issues, LoRA/QLoRA, preference tuning, GRPO/EBFT, vLLM-assisted training, model architecture support, DeepSpeed/FSDP/Ray scaling, or Axolotl-specific troubleshooting.
Axolotl is config-driven: a single YAML config selects the base model, adapter/training method, datasets, preprocessing, launch/runtime settings, and output paths.
Start Here
- Identify the user’s primary task family before editing YAML.
- Read the nearest sub-skill route below, then only open deeper references as needed.
- Prefer safe static helpers first; run
axolotl preprocess <config> --debugonly in the user’s Axolotl environment when tokenizer/model access and runtime cost are acceptable. - Treat bundled helper scripts as triage tools, not replacements for Axolotl’s installed
config-schema,preprocess, or training runtime. - Read references/repo-provenance.md before judging whether this skill matches a current Axolotl checkout.
Route By Task
| User task | Read |
|---|---|
Write or debug YAML config structure, dataset columns, chat_template, prompt strategies, preprocessing, sample packing, or schema issues |
data-and-configs |
| Build SFT, LoRA/QLoRA, full fine-tune, or continual pretraining recipes; diagnose SFT/pretraining loss, OOM, checkpoint, or resume issues | sft-and-pretraining |
| Configure DPO, IPO, KTO, ORPO, SimPO, reward model, process reward model, paired/unpaired preference data, or preference loss settings | preference-tuning |
| Configure GRPO, EBFT, custom reward functions, vLLM rollout servers, async online RL, NeMo Gym, or Hatchery reward hooks | rl-and-rewards |
| Choose base models, tokenizers/processors, chat templates, LoRA targets, QLoRA, quantization/QAT/PTQ, multimodal settings, architecture quirks, or new model support | model-loading-and-adapters |
| Configure DeepSpeed, FSDP, Ray, SLURM/multi-node, tensor/context/sequence/expert parallelism, precision, kernels, profiling, or performance troubleshooting | distributed-and-performance |
Use axolotl commands, launchers, agent-docs, config-schema, fetch, inference, evaluate, merge-lora, vllm-serve, quantize, install checks, or command construction |
cli-and-operations |
Common Entry Points
axolotl preprocess config.yaml --debugchecks rendered/tokenized samples and label masking before expensive training.axolotl train config.yamllaunches training; use--launcher torchrun,--launcher accelerate, or--launcher pythondeliberately.axolotl inference config.yaml,axolotl merge-lora config.yaml,axolotl evaluate config.yaml,axolotl vllm-serve config.yaml, andaxolotl quantize config.yamlare operational routes covered bycli-and-operations.axolotl agent-docs --list,axolotl agent-docs <topic>, andaxolotl config-schema --field <field>are preferred installed-package truth checks when available.
Cross-Cutting Helpers
- references/troubleshooting.md covers install/import, optional dependency, config-first triage, hardware/backend, and workflow-routing symptoms.
- scripts/check_axolotl_environment.py performs a safe package/CLI/schema availability check without loading models or starting training.
Routing Notes
- Reward-model and process-reward-model training belong to
preference-tuning; callable reward functions for GRPO/EBFT belong torl-and-rewards. - Config validation usually starts in
data-and-configs, then narrows to method/model/distributed/CLI-specific static helpers, then escalates toaxolotl config-schemaoraxolotl preprocessin the user’s runtime. - Model downloads, gated repositories, GPU kernels, vLLM services, distributed launchers, and long training runs require user environment readiness and should not be inferred from static helper success.
Refresh Guidance
Run refresh-repo-skill when the Axolotl commit, package version, CLI entry points, config schema, docs, examples, or training APIs have changed relative to references/repo-provenance.md.
04 同仓库更多 Skills
passnet-triton-opt
Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.
passnet-solve
END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.
passnet-skill
PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.
passnet-pattern-fusion
Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.
passnet-orchestrate
Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.
passnet-feedback
Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).