协作头脑风暴
brainstorming
在实现前澄清需求、探索设计选择,并形成清晰的开发方向。
training【开发与工程】Build, debug, and explain ms-swift pre-training and supervised fine-tuning workflows.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when the task is about swift pt, swift sft, training configs, LoRA/QLoRA/full tuning, distributed training flags, multimodal training memory controls, checkpoint resume semantics, or handing trained checkpoints/adapters to inference/export workflows.
swift pt for continued pre-training (CPT) or plain generative-language-model training where the chat template should be disabled; it is equivalent to swift sft --use_chat_template false --loss_scale all.swift sft for supervised fine-tuning, chat/instruction tuning, LoRA/QLoRA/full tuning, multimodal SFT, and most training examples.data-model-customization.inference-deployment.advanced-rl-distributed.export-evaluation.swift sft and swift pt arguments and safe option combinations.scripts/build_training_command.py --help to print a safe command skeleton for swift sft or swift pt without launching training.scripts/validate_training_config.py CONFIG.yaml or CONFIG.json to catch high-risk config mistakes before running training; it parses YAML/JSON and does not import heavy model code.swift sft \
--model Qwen/Qwen2.5-7B-Instruct \
--dataset ./train.jsonl \
--split_dataset_ratio 0.05 \
--train_type lora \
--output_dir output/qwen2_5_lora_sft \
--max_length 2048 \
--per_device_train_batch_size 1 \
--gradient_accumulation_steps 16 \
--learning_rate 1e-4 \
--save_steps 500
swift pt \
--model Qwen/Qwen2.5-7B \
--dataset ./corpus.jsonl \
--train_type lora \
--loss_scale all \
--use_chat_template false \
--output_dir output/qwen2_5_cpt
model, dataset or cached_dataset, output_dir, tuning mode, max_length, batch/accumulation, dtype, and save/eval cadence.--check_model false for fully offline runs.--adapters checkpoint_dir; for full fine-tuning outputs, hand off with --model checkpoint_dir.