AIAny
AI Train2023
GitHub

ms-swift

Fine-tunes and deploys 600+ LLMs and 400+ multimodal models in one framework, with SFT, pretraining, RLHF (DPO, PPO, GRPO), and lightweight methods like LoRA and QLoRA. Adds Megatron parallelism, vLLM/SGLang/LMDeploy inference, and a training web UI.

Introduction

Most teams fine-tuning open models end up stitching together half a dozen libraries: one for LoRA, another for DPO, a separate stack for serving. ms-swift's bet is that breadth itself is the feature — cover almost every open model and training algorithm under one config schema, and you stop rewriting glue code every time a new architecture drops. The same toolkit carries a checkpoint from pretraining all the way to a quantized, served endpoint.

What Sets It Apart
  • Coverage as a feature: 600+ text LLMs and 400+ multimodal models (Qwen, DeepSeek, GLM, InternVL, Llama families), so a fresh release usually trains on day one without a bespoke trainer.
  • Every paradigm, one flag: SFT, continued pretraining, the full RLHF family (DPO, PPO, KTO, ORPO) plus the GRPO line (DAPO, GSPO and friends) and distillation — you switch method by changing an argument, not a framework.
  • Scales down and up: lightweight tuning (LoRA, QLoRA, DoRA, LongLoRA) on a single GPU, Megatron parallelism (TP/PP/CP/EP) across nodes, with multimodal packing claimed to roughly double throughput.
  • Train and serve share a stack: hands off to vLLM, SGLang, or LMDeploy and supports AWQ/GPTQ/FP8 quantization, so there is no rewrite between experiment and production.
Who It's For

Great fit if you cycle through many open models or training recipes and want one consistent interface — especially inside the Qwen/ModelScope ecosystem, where coverage runs deepest and new models land first. Look elsewhere if you only ever fine-tune a single model with a single method, where a narrower library like Unsloth or TRL is simpler to reason about, or if you want a polished managed product rather than a fast-moving, research-grade toolkit. The price of supporting everything is a large surface area and frequent releases that can shift under you.

Information

  • Websitegithub.com
  • AuthorsModelScope, Alibaba Group
  • Published date2023/08/01

Categories

More Items

Hugging Face
AI Model2026

Fine-tunes Inkling-2-Mini with reinforcement learning for the pi coding agent, reducing tool calls and generated tokens. It improves Terminal-Bench 2.1 results under a one-hour limit, while matching the base model roughly when given more time.

Hugging Face
AI Model2026

Fine-tunes Inkling-2-Mini to draft natural-sounding X posts from short prompts, alongside an ensemble for distinguishing human and AI-written text. The author reports 92.6% ROC-AUC on held-out authors.

Hugging Face
AI Model2026

Uses reinforcement learning alone to improve Qwen3.8-27B on multimodal reasoning and long-horizon agent tasks. Trained on about 1,200 curated tasks, it retains a 256K context and is released in BF16, FP8, and NVFP4.