# ms-swift

> Fine-tune, align, evaluate, quantize and deploy 600+ LLMs and 400+ multimodal models

Source: https://talira.ai/catalog/ms-swift-45td67aq
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library, Command-line tool
- Categories: [ai / ml / fine tuning](https://talira.ai/categories/ai/ml/fine-tuning), [ai / ml / distributed training](https://talira.ai/categories/ai/ml/distributed-training)
- Licence: Apache-2.0[^2]
- Pricing: Free[^1]
- Pricing notes: Free and open source.
- Free tier: yes[^1]
- Backed by: [ModelScope](https://talira.ai/orgs/modelscope.md)

ms-swift (SWIFT) is the ModelScope community's framework for training and deploying large language models and multimodal models. It covers pre-training, full-parameter and LoRA fine-tuning, preference alignment (DPO, KTO, ORPO, SimPO and others), GRPO-family reinforcement learning, and embedding, reranker and classification training, for 600+ text models and 400+ multimodal models such as Qwen, DeepSeek, GLM, InternLM and Llama. It trains across GPUs with DeepSpeed ZeRO, FSDP and Megatron parallelism (Megatron-SWIFT, strongest for mixture-of-experts models), quantizes with GPTQ, AWQ, BNB and FP8, and runs inference, evaluation and deployment through [vLLM](https://talira.ai/catalog/vllm-f1czevpj.md), SGLang and LMDeploy. It has a CLI (`swift sft`, `swift rlhf`, `swift infer`), a Python API and a Gradio web UI.

## Links

- GitHub: https://github.com/modelscope/ms-swift
- Docs: https://swift.readthedocs.io/en/latest/

## Problems it solves

- fine-tune Qwen or DeepSeek on my own dataset with LoRA
- train a model with GRPO reinforcement learning across several GPUs
- quantize and serve a fine-tuned model behind an API

## Features

- full-parameter and LoRA fine-tuning of 600+ LLMs and 400+ multimodal models
- DPO, KTO, ORPO, SimPO and reward model training
- GRPO, DAPO, GSPO and other RL algorithms
- Megatron parallelism for MoE models
- DeepSpeed ZeRO and FSDP distributed training
- GPTQ, AWQ, BNB and FP8 quantization
- inference and deployment through vLLM, SGLang and LMDeploy
- Gradio web UI for training and inference

## Trust

Overall: 0.74 out of 1.
Signals: maintenance 1.00, adoption 0.84, momentum 0.79, community 0.97, backing 0.30, extensibility 0.00.

- last commit yesterday
- 287 commits in the last 90 days
- latest release v4.6.1 17 days ago
- 16.2k GitHub stars
- 258 contributors
- backed by ModelScope

## Alternatives

- [LlamaFactory](https://talira.ai/catalog/llamafactory-7swv7mxz.md): An open source framework for fine-tuning 100+ language and vision-language models from a CLI or a web UI
- [Axolotl](https://talira.ai/catalog/axolotl-9ht2yme4.md): A free and open source framework for fine-tuning and post-training large language models
- [TRL](https://talira.ai/catalog/trl-ryrdxeq8.md): A comprehensive library to post-train foundation models
- [Unsloth](https://talira.ai/catalog/unsloth-sdmq90qx.md): Run and train AI models on your own local hardware via an open-source UI
- [Oumi](https://talira.ai/catalog/oumi-wbhhw3jg.md): Fine-tune, evaluate and deploy open LLMs and agents
- [Fireworks AI](https://talira.ai/catalog/fireworks-ai-a7py9e72.md): Run, ensemble and train open models on one platform

## Sources

[^1]: https://github.com/modelscope/ms-swift/blob/main/README.md (checked 30 Nov 2026)
[^2]: https://github.com/modelscope/ms-swift/blob/main/LICENSE (checked 30 Nov 2026)
