#88th of 126 in Training and fine-tuning

ms-swift

Fine-tuning, RLHF, quantization and deployment framework for 1,000+ open LLMs

Run it:Vast.ai ↗ (opens in a new tab)Clore.ai ↗ (opens in a new tab)Affiliate links, no effect on a rank.

Stars
16.2k
License
Apache-2.0
Last commit
Nov 2026
Last release
Nov 2026
Language
Python
Stars, last 35 weeks+2,999
25 Mar 2026: 13,191 stars1 Apr 2026: 13,321 stars8 Apr 2026: 13,458 stars15 Apr 2026: 13,601 stars22 Apr 2026: 13,725 stars29 Apr 2026: 13,830 stars6 May 2026: 13,889 stars13 May 2026: 13,983 stars20 May 2026: 14,078 stars27 May 2026: 14,180 stars3 Jun 2026: 14,291 stars10 Jun 2026: 14,362 stars17 Jun 2026: 14,461 stars24 Jun 2026: 14,519 stars1 Jul 2026: 14,597 stars8 Jul 2026: 14,683 stars15 Jul 2026: 14,762 stars22 Jul 2026: 14,847 stars29 Jul 2026: 14,937 stars5 Aug 2026: 15,007 stars12 Aug 2026: 15,097 stars19 Aug 2026: 15,261 stars26 Aug 2026: 15,331 stars2 Sept 2026: 15,454 stars9 Sept 2026: 15,533 stars16 Sept 2026: 15,617 stars23 Sept 2026: 15,689 stars30 Sept 2026: 15,739 stars7 Oct 2026: 15,768 stars14 Oct 2026: 15,841 stars21 Oct 2026: 15,895 stars28 Oct 2026: 15,971 stars4 Nov 2026: 16,040 stars11 Nov 2026: 16,093 stars18 Nov 2026: 16,133 stars25 Nov 2026: 16,190 stars

13,191 on 25 Mar 202616,190 on 25 Nov 2026

From GitHub's daily star counts.

Checked on GitHub.

Overview

ms-swift, from the ModelScope community, is a Python framework covering pre-training, SFT, preference tuning and GRPO-family reinforcement learning for 600+ text and 400+ multimodal models. It supports LoRA/QLoRA, DeepSpeed, FSDP and Megatron parallelism, and exports quantized models (AWQ, GPTQ, FP8, BNB). Inference and deployment go through Transformers, vLLM, SGLang or LMDeploy with an OpenAI-style interface, with evaluation via EvalScope and a Gradio Web-UI.

Who it is for: Engineers fine-tuning, aligning and deploying open LLMs on their own GPUs

Strengths

  • Broad training coverage: SFT, DPO/KTO/ORPO, GRPO variants, embedding and reranker tuning
  • Megatron TP/PP/CP/EP support aimed at faster MoE model training
  • Runs on NVIDIA CUDA, AMD ROCm, Ascend NPU, Apple MPS and CPU
  • Quick start fine-tunes a 4B model with LoRA in about 13GB on one GPU

Weaknesses

  • Large dependency matrix (torch, transformers, peft, trl, deepspeed, vllm) with version pins to manage
  • Downloads models and datasets from ModelScope by default; Hugging Face needs --use_hf true
  • Command-line flag surface is very large and changes between major versions (3.x to 4.x)
  • No Docker image or compose file in the repository

What it needs

  • GPU optional
  • Needs PyTorch, transformers, peft, ModelScope, DeepSpeed, vLLM, SGLang, LMDeploy, EvalScope, Gradio
  • Models: Qwen3, Llama4, DeepSeek-R1, GLM4.5, Mistral

What changed

  1. v4.6.1 ↗ (opens in a new tab)BreakingSecurity fix

    “MTP weights are loaded by default. --mtpnumlayers now defaults to auto instead of None, and --mtpsharedweights defaults to automatic (None) instead of False. A checkpoint that ships MTP layers theref…”

    “externalplugins declared in a checkpoint's args.json is no longer restored silently on resume. (#10422)”

  2. v4.6.0 ↗ (opens in a new tab)Security fix

    “Hardened the WebUI and rollout: fixed unauthenticated RCE and arbitrary file read, a rollout-side vulnerability, and GitHub Actions workflow injection. (#10209, #10218, #10226, #10227)”

From the release notes. No flag means the note does not say so, not that the upgrade is safe. Releases and problems by RSS

Also in Training and fine-tuning

See all 126
Also in Training and fine-tuning
RankProjectScore
#6axolotlYAML-driven framework for fine-tuning and post-training LLMs Live demo ↗ (opens in a new tab)12.8k stars+123 (+1.0%) in 30 daysApache-2.088 out of 100
#7soupCLI for fine-tuning and post-training LLMs from a single YAML config10.9k starsApache-2.086 out of 100
#9verlRL post-training library for LLMs with PPO, GRPO, FSDP and Megatron24.4k starsApache-2.084 out of 100
#10wecloneBuilds a life portrait from chat history and fine-tunes a personal chat clone18.4k starsAGPL-3.084 out of 100
#11artPython RL framework that trains LLM agents with GRPO from rollout rewards10.9k stars+55 (+0.5%) in 30 daysApache-2.084 out of 100