swift-ms-docs

Provides ms-swift CLI guidance for training, RLHF, quantization, and OpenAI-compatible deployment workflows.

7|2|Updated Feb 25, 2026
One-click install
npx skills add https://github.com/wenerme/ai --skill swift-ms-docs
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: swift-ms-docs
Source: https://github.com/wenerme/ai/tree/main/skills/swift-ms-docs
Command: npx skills add https://github.com/wenerme/ai --skill swift-ms-docs

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill solves the problem of quickly finding the right ms-swift (ModelScope Swift) commands, concepts, and reference docs needed to fine-tune, run reinforcement learning, and deploy models without getting lost in scattered guidance.

Core Features & Use Cases

  • Training coverage across the full pipeline: supports SFT/CPT, LoRA/QLoRA/DoRA, GRPO family RL, and pre-training workflows.
  • Deployment and inference readiness: covers inference commands and deployment as OpenAI-compatible APIs.
  • Performance and optimization guidance: includes Megatron distributed training context, quantization options (AWQ/GPTQ/FP8/BNB), and evaluation pointers.

Quick Start

Use the swift-ms-docs skill when you need to get ms-swift fine-tuning or GRPO command-line instructions immediately for your target model and dataset.

Frequently Asked Questions about swift-ms-docs

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I fine-tune a model with ms-swift using LoRA or QLoRA?

ms-swift fine-tuning supports LoRA, QLoRA, and DoRA through specific CLI commands. This skill provides the exact command-line instructions needed to start SFT or CPT workflows on your target model and dataset.

Can I use ms-swift for reinforcement learning and GRPO training?

Yes, ms-swift supports GRPO-family RLHF training. This skill provides the necessary CLI commands and reference docs to configure and run reinforcement learning workflows for your models.

Does ms-swift support distributed training with Megatron?

Yes, ms-swift includes Megatron distributed training context for performance optimization. This skill guides you through the distributed workflows covered by the framework.

How do I deploy a fine-tuned model as an OpenAI-compatible API using ms-swift?

ms-swift allows deployment as an OpenAI-compatible API. This skill provides the inference and deployment commands needed to serve your model using engines like vLLM, SGLang, or LmDeploy.

What quantization options does ms-swift support for model export?

ms-swift supports AWQ, GPTQ, FP8, and BNB quantization options. This skill aligns your model export and optimization steps with these covered capabilities to reduce model size.

What are the limitations of using ms-swift for end-to-end model training?

ms-swift usage is limited to its documented CLI commands and covered capabilities. You must check the referenced docs under references/ before answering or executing training, inference, and export steps.