AIAny
AI Train2023
Icon for item

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

GitHub
AI Train2019

Train and experiment with multi-billion to trillion-parameter transformer models on large GPU clusters using GPU-optimized building blocks and reference training scripts; offers advanced parallelism and mixed-precision support for research teams and ML engineers.

GitHub
AI Train2026

Provides a one-command CLI to fine-tune and post-train LLMs, with layer streaming that lets an 8B model be fine-tuned on a 4 GB laptop GPU. Auto-configures quantization, LoRA adapters, batching and evaluation gates, and supports export and serving workflows.

GitHub
AI Train2025

A PyTorch DTensor-native SPMD library for training and fine-tuning LLMs, VLMs, diffusion and retrieval models. Integrates with Hugging Face for day-0 model support, provides YAML-driven recipes, DTensor/FSDP2 parallelism and NVIDIA-optimized kernels (Transformer Engine, DeepEP, FlexAttn).