executing-plans
executing-plans
Use when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available
trainingPlan and troubleshoot XTuner V1 SFT, pretraining, and multimodal fine-tuning launches with CLI or Python configs, torchrun resources, FSDP, checkpoints, resume, profiling, and log interpretation.
Independent GitHub snapshot · Automated classification · Original documentation governs
Use this sub-skill when a task is about launching, configuring, or diagnosing XTuner V1 supervised fine-tuning, pretraining, or multimodal SFT. It is optimized for future agents that need to choose between direct SFT CLI arguments and Python config files, build torchrun commands safely, reason about TrainerConfig / TrainingArguments, and interpret XTuner training logs.
--config <python_config.py>.TrainerConfig, TrainingArguments, optimizer, LR scheduler, loss, FSDP, checkpoint, resume, profiling, or work directory settings.data-preparation.model-backends.reinforcement-learning.xtuner train, config-zoo discovery, model conversion, chat, eval, and old tools belong to cli-and-tools.TrainerConfig control. See references/workflows.md.sft.py accepts either --config or direct TrainingArguments, not both. Mixing them raises ValueError: Cannot specify both \config` and `arguments`.`torchrun -m xtuner.v1.train.cli.sft ... command without relying on any source checkout.--load-from or --model-cfg. If --tokenizer-path is omitted, --load-from must resolve as a Hugging Face model snapshot directory or model id; a local snapshot should contain config.json.--nproc-per-node, node rank, master address/port, FSDP tp_size/ep_size, CPU offload, recompute ratio, and global batch size together. World size must be compatible with the parallel mesh. See references/api-reference.md.data_time, time, tokens, loss, memory, grad_norm, throughput (tgs, seqlen_tgs, exp_tgs), and ETA. Use scripts/summarize_xtuner_log.py for a quick run summary and warning triage.Build a direct Qwen3 SFT command for an OpenAI-format JSONL:
python sub-skills/training/scripts/build_sft_command.py \
--nproc-per-node 8 \
--load-from /models/Qwen3-8B/snapshots/<revision> \
--chat-template qwen3 \
--dataset /data/train.jsonl \
--total-step 100 \
--work-dir /runs/qwen3-sft
Summarize a work directory or torchrun log file:
python sub-skills/training/scripts/summarize_xtuner_log.py /runs/qwen3-sft
Keep commands, logs, and user-provided model/data paths in the user's environment. This skill tree does not require or link to an XTuner source checkout.