技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
xtuner【数据与研究】Use XTuner for large-model SFT, pretraining, MLLM fine-tuning, data preparation, model/backend configuration, RL/GRPO post-training, and legacy XTuner tooling.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this root skill when a task names XTuner or asks for operating guidance around XTuner V1 large-model training, data preparation, MoE/model backend choices, GRPO/RL post-training, or legacy XTuner utilities.
XTuner V1 is a PyTorch-based training engine aimed at large dense, MoE, and multimodal models. Most real training/RL work needs accelerator resources, model/data assets, and optional backend packages. This generated skill gives safe command builders, validators, and routing guidance; it does not require the original source checkout.
xtuner MODE ... router.data-preparation for SFT, MLLM, and RL JSONL schemas before building training or RL launch commands.| Task signal | Read |
|---|---|
V1 SFT, pretraining, MLLM fine-tuning, TrainingArguments, TrainerConfig, torchrun, FSDP/checkpoint/resume, training logs | sub-skills/training/SKILL.md |
| SFT/MLLM/RL JSONL validation, media paths, chat templates, tokenizer configs, dataset caching, packing, GSM8K conversion | sub-skills/data-preparation/SKILL.md |
Dense/MoE/VLM model configs, get_model_config, FSDP/TP/EP/HSDP, attention/router/dispatcher, FP8, CUDA/NPU optional backends | sub-skills/model-backends/SKILL.md |
| RL/GRPO launch planning, Ray resources, rollout engines, agent loops, judgers, reward data, replay buffers, evaluation, traces | sub-skills/reinforcement-learning/SKILL.md |
Legacy xtuner MODE ..., old config-zoo search/copy, model conversion planning, chat/eval/preprocess tools, HF Trainer examples | sub-skills/cli-and-tools/SKILL.md |
xtuner.>=3.10.0.2.0.python -m xtuner.v1.train.cli.sft ...python -m xtuner.v1.train.cli.rl ...Use the package/environment reference for details. A typical installed-package check is:
python -m pip install xtuner
python scripts/check_xtuner_install.py --json
python -m xtuner.v1.train.cli.sft --help
For RL planning, install Ray and a chosen rollout backend in the target environment, then check:
python -m xtuner.v1.train.cli.rl --help
If python -m xtuner.v1.train.cli.sft --help prints warnings about missing FlashAttention or bitsandbytes CUDA binaries but still exits successfully, treat those as optional acceleration limitations unless the user explicitly needs that feature.
refresh-repo-skill when it diverges.