brainstorming
brainstorming
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation).
trainingBuild, debug, and explain ms-swift pre-training and supervised fine-tuning workflows.
Independent GitHub snapshot · Automated classification · Original documentation governs
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.