Meet MS-SWIFT 5
An all-in-one large-model training framework with day-0 support and a complete training toolchain out of the box.
pip install -U "ms-swift>5.0.0"Requires a published version > 5.0.0. For the current development version, install from source.
A sample of day-0 supported models
ms-swift 5.0 is released: one CLI for the transformers / Megatron / unsloth backends and the local / Ray / remote modes, the swift.dev code API, Agentic RL with sandboxes and external harnesses, remote training on twinkle-server (ModelScope and Tinker hosted), and the new TrainBench WebUI. For release notes, please refer to here. Existing 4.x scripts keep running with USE_SWIFT_V5=0; see Swift 5 and Swift 4.
Capabilities
MS-SWIFT handles model and data adaptation, config and training recipes; twinkle provides the training loop, sampling, Ray execution and twinkle-server components.
Day-0 support for new models
998 models for language, multimodal, embedding and reranker training.
Documentation — Day-0 support for new modelsTraining methods
Pre-training, SFT, preference alignment, online RL and distillation share one CLI and config; Agentic training and multiple task heads included.
Documentation — Training methodsMultiple hardware backends
NVIDIA GPUs, Ascend NPUs and more hardware platforms, with Transformers and Megatron backends and several parallelism options.
Documentation — Multiple hardware backendsCustomizable training
The CLI works out of the box and composes with Config and code APIs; loss, reward, data and templates are customizable without rewriting the training stack.
Documentation — Customizable trainingRemote training with the same command
Connect to a remote training service (twinkle-server) with --mode remote; the driver stays local while training runs on the remote cluster, with the same CLI and config.
Documentation — Remote training with the same commandComplete toolchain
Benchmark evaluation, quantization, inference and deployment commands, with composable twinkle components covering the full workflow.
Documentation — Complete toolchainTrainBench visual workbench
TrainBench manages training jobs from a web UI, composes workflows on a drag-and-drop canvas and runs experiments automatically with AutoResearch.
TrainBench docs

Efficiency-first asynchronous RL
StreamingDriver schedules samples independently, queues fully scored groups and overlaps sampling with training on the previous batch. A bounded window and policy-version limits control data freshness and reduce waiting; the same components run on Ray or a remote training service.
Explore asynchronous RLReliability and performance
GRPO throughput, multi-node 122B MoE training, and training-result comparisons with v4, all from completed runs.
Community and citation
Discuss issues and training methods on GitHub; the Discord and WeChat entries sit in the top-right corner. Cite the paper below when using MS-SWIFT in research.
View citation
@misc{zhao2024swiftascalablelightweightinfrastructure,
title={SWIFT:A Scalable lightWeight Infrastructure for Fine-Tuning},
author={Yuze Zhao and Jintao Huang and Jinghan Hu and Xingjun Wang and Yunlin Mao and Daoze Zhang and Zeyinzi Jiang and Zhikai Wu and Baole Ai and Ang Wang and Wenmeng Zhou and Yingda Chen},
year={2024},
eprint={2408.05517},
archivePrefix={arXiv},
primaryClass={cs.CL},
url={https://arxiv.org/abs/2408.05517},
}