Axolotl
$ axolotl 官方出品 中风险Axolotl(axolotl)通过声明式 YAML 配置简化大模型后训练流程(SFT、DPO、LoRA、QLoRA、DeepSpeed、FSDP)。CLI 支持拉取示例配置(axolotl fetch examples)、数据集预处理(axolotl preprocess)与分布式训练(axolotl train config.yml)。
pip install axolotl axolotl 直接在本地或集群 GPU 上执行数据集编译与多卡 PyTorch/DeepSpeed 训练。
Agent 友好度体检单
当前为静态评估(本机尚未安装或尚未运行探针)。可在本地运行 npm run data:probe 并提交 data/probes/ 升级为实测证据。
FCRS-1.0 六维评分拆解
清晰的 YAML 驱动 CLI(axolotl train、fetch、preprocess),支持命令行覆盖参数与 --launcher 透传,但无 --json 输出。
- Supports YAML configs and inline flag overrides on
axolotl train - No
--jsonoutput format; long-running training logs
本地/集群执行;YAML 中的 hub_model_id 与 wandb 配置可能触发外部上传。
- Config-controlled Hugging Face Hub push and W&B telemetry
主要面向 Linux,对 PyTorch、CUDA、FlashAttention 与 DeepSpeed 版本依赖较为敏感。
- Requires Linux + CUDA/FlashAttention stack
通过统一 YAML 配置覆盖 LoRA、QLoRA、DPO、多模态微调与 DeepSpeed/FSDP。
- Supports SFT, DPO, QLoRA, DeepSpeed, and FSDP via
config.yml
axolotl-ai-cloud/axolotl 社区与团队持续维护,Apache-2.0 协议开源。
- Official
axolotl-ai-cloud/axolotlrepo (Apache-2.0)
docs.axolotl.ai 文档完善,并提供官方示例模板。
- Official docs at docs.axolotl.ai and
axolotl fetch examples
安全边界、鉴权与放权指南
受限 Hugging Face 模型/数据集读取 HF_TOKEN,启用 Weights & Biases 日志时读取 WANDB_API_KEY。
Apache-2.0 开源框架免费;需要 Linux 环境与配备 CUDA/FlashAttention 的 NVIDIA/AMD GPU。
# Axolotl Agent Rules - Run `axolotl preprocess <config.yml>` or validate YAML paths before starting `axolotl train`. - Never launch `axolotl train` synchronously inside short tool calls unless training on a tiny bounded dataset.
Agent 高频安全命令配方
只读查询(安全推荐)
axolotl --help && axolotl train --help
展示训练、预处理与分布式启动器参数,不占用 GPU。
受控写入与预演
axolotl fetch examples --dest ./axolotl-examples
将官方训练模板复制到本地目录以便检查或修改。
核心优势
- + 声明式 YAML 与命令行覆盖同时覆盖 SFT、QLoRA、DPO、DeepSpeed 与 FSDP。
- +
axolotl fetch examples可快速获取标准训练配置模板。
注意事项与踩坑点
- ! 偏重 Linux + CUDA 环境,FlashAttention/DeepSpeed 依赖配置较复杂。
- ! 无
--json输出;训练任务运行时间长且消耗大量 GPU。