writing-skills
writing-skills
Use when creating new skills, editing existing skills, or verifying skills work before deployment
ms-swiftUse ms-swift for LLM and multimodal training, inference, deployment, data/model customization, export, evaluation, RLHF, Ray, and Megatron workflows.
Independent GitHub snapshot · Automated classification · Original documentation governs
Use this repo skill when a task mentions ms-swift, swift, ModelScope SWIFT, swift sft, swift infer, swift deploy, swift eval, swift export, swift rlhf, GRPO, Ray, or Megatron-SWIFT.
ms-swift is a Python framework for large-model and multimodal fine-tuning, inference, evaluation, quantization, deployment, RLHF/GRPO, Ray scheduling, and Megatron-style distributed training.
pip install ms-swift -U; from source use pip install -e ..python -c "import swift; print(swift.__version__)".swift sft --help, swift infer --help, swift export --help, and swift rlhf --help should work in a base install.sub-skills/training/SKILL.md for swift pt, swift sft, LoRA/QLoRA/full tuning, multimodal training, checkpoints, YAML/JSON configs, and training-time evaluation flags.sub-skills/inference-deployment/SKILL.md for swift infer, swift app, swift deploy, backend selection, OpenAI-compatible APIs, adapters, batch inference, logprobs, and multimodal requests.sub-skills/data-model-customization/SKILL.md for dataset formats, --columns, --custom_dataset_info, --external_plugins, registry inspection, custom models, and templates.sub-skills/export-evaluation/SKILL.md for swift export, swift merge-lora, quantization, hub pushes, swift eval, EvalScope backends, and custom eval datasets.sub-skills/advanced-rl-distributed/SKILL.md for swift rlhf, swift sample, swift rollout, reward plugins, Ray configs, Megatron-SWIFT, and distributed troubleshooting.references/package-overview.md for package purpose, CLI route map, optional extras, and cross-skill terminology.references/troubleshooting.md for install/import, optional dependency, backend, hub/offline, CLI/config, and hardware issues that cut across workflows.references/repo-provenance.md when checking whether this skill is stale against a newer ms-swift checkout.scripts/check_ms_swift_install.py --help for a safe installed-package and optional-dependency checker.scripts/inspect_swift_cli.py --help for a safe CLI route inventory and help-command planner.--model for full checkpoints or model IDs; use --adapters for LoRA adapter checkpoints.loss_scale, solve that in data/model customization before constructing training or RLHF commands.MODELSCOPE_TOKEN, HF_TOKEN, or a user-provided shell environment; do not write tokens into command builders or config examples.