#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.
Watch puts ms-swift on your watch list: its new releases and known problems since your last visit. Kept in this browser, no account.ms-swift is on your watch list. Its new releases and problems show there.
- Stars
- 16.2k
- License
- Apache-2.0
- Last commit
- Nov 2026
- Last release
- Nov 2026
- Language
- Python
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
“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)”
- 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| Rank | Project | Score |
|---|---|---|
| #6 | axolotlYAML-driven framework for fine-tuning and post-training LLMs | 88 out of 100 |
| #7 | soupCLI for fine-tuning and post-training LLMs from a single YAML config | 86 out of 100 |
| #9 | verlRL post-training library for LLMs with PPO, GRPO, FSDP and Megatron | 84 out of 100 |
| #10 | wecloneBuilds a life portrait from chat history and fine-tunes a personal chat clone | 84 out of 100 |
| #11 | artPython RL framework that trains LLM agents with GRPO from rollout rewards | 84 out of 100 |