aicoolies logo
ModelScope logo
ModelScope logo

ms-swift

ModelScope's fine-tuning framework supporting 600+ models

open sourceupdated Jul 14, 2026

ms-swift is ModelScope's open-source framework for fine-tuning over 600 large language and multimodal models. It supports SFT, DPO, RLHF, LoRA, QLoRA, and full fine-tuning with a web UI and CLI interface. Optimized for the Chinese AI ecosystem with native ModelScope Hub integration alongside Hugging Face support. Over 13,500 GitHub stars.

MS-SWIFT (ModelScope SWIFT) is a comprehensive fine-tuning and deployment framework supporting 600+ LLMs and 400+ multimodal models from the open-source ecosystem. Built by Alibaba ModelScope, it abstracts away training complexity: whether pre-training from scratch, instruction-tuning on custom data, or applying preference learning (GRPO, DPO), MS-SWIFT provides unified APIs and boilerplate-free code. Supported model families span Qwen, DeepSeek-R1, InternLM, GLM, Mistral, and Llama for text, plus vision models like Qwen-VL, InternVL, and LLaVA, ensuring coverage across the latest open-source innovations.

The framework integrates cutting-edge training techniques: megatron-style parallelism (TP, PP, CP, EP) accelerates training on multi-GPU and multi-node clusters, while GRPO and variants (DAPO, GSPO, SAPO) implement modern reinforcement learning alignment without boilerplate. MS-SWIFT handles data loading, tokenization, optimizer scheduling, checkpoint management, and eval harnesses. For inference, it supports accelerators (vLLM, SGLang, LmDeploy) and exports quantized models (AWQ, GPTQ, FP8). The OpenAI-compatible serving API lets fine-tuned models drop in as LLM backends.

ML teams adopting Qwen or other ModelScope models benefit from batteries-included tooling rather than stitching together Transformers, Accelerate, vLLM, and custom utilities. The focus on GRPO and modern alignment methods reflects enterprise demand for fine-tuned models that stay aligned. Active development tracks emerging model releases, so support for new architectures appears weeks after release. For production deployments using open-source models, MS-SWIFT reduces engineering overhead significantly.

Pricing

Free and open-source under Apache 2.0

Platforms

Python, CUDA GPUs, ModelScope/Hugging Face

Categories

Tags

Use Cases

Related Tools

computed discovery: shared active categories · kept separate from editor-verified Alternatives

FiftyOne logo

FiftyOne

Open-source toolkit for curating datasets and evaluating visual AI models

FiftyOne is an open-source Python toolkit from Voxel51 for building high-quality datasets and better computer-vision and multimodal AI models. It pairs a browser-based visualization App with programmatic dataset curation, embeddings, similarity search, and model-evaluation workflows.

freemiumOpen SourceTelemetry
Open Notebook logo

Open Notebook

Private, self-hosted research notebooks with flexible AI models, source chat, and podcasts

Open Notebook is an MIT-licensed, self-hosted alternative to NotebookLM for collecting sources, chatting over research, generating reusable transformations, and producing multi-speaker podcasts. Its Docker stack keeps notebook data under the user's control while supporting 18-plus model providers, including local Ollama and LM Studio workflows.

Open SourceTelemetry
Hugging Face logo

Text Embeddings Inference

Hugging Face's open-source inference server for embeddings, rerankers, and classifiers

Text Embeddings Inference is Hugging Face's Apache-2.0 server for high-throughput embedding, reranking, and sequence-classification models. TEI packages token-based dynamic batching, optimized Transformers kernels, Safetensors loading, OpenAI-compatible embedding endpoints, Prometheus metrics, and configurable OpenTelemetry tracing in deployable CPU and GPU images.

Open Source
Presidio logo

Presidio

Open-source PII detection and anonymization for AI data flows

Presidio is an MIT-licensed privacy framework for identifying and anonymizing personally identifiable information in text, images, and structured data. It can act as a de-identification layer around LLM prompts, logs, RAG corpora, and customer-data workflows.

Open Source
ElevenLabs logo

ElevenLabs

Lifelike AI voice generation, cloning, and voice agents

ElevenLabs is an AI voice platform for text-to-speech, voice cloning, and conversational AI agents, built on models like Multilingual v2 and the low-latency Flash v2.5 and Turbo v2.5. Developers call its API to generate lifelike narration, clone voices from short audio samples, dub content across 30+ languages, add sound effects, and deploy real-time voice agents for customer service, IVR, and interactive apps, with SDKs for Python, JavaScript, and more.

freemium
Deep Lake logo

Deep Lake

AI data runtime for multimodal datasets and vector search

Deep Lake is an open-source AI data runtime from Activeloop for storing, versioning, and querying multimodal data and embeddings. It fits teams building RAG, training, evaluation, or dataset-heavy agent workflows that need a bridge between vector search, structured metadata, and large image, text, audio, or video collections.

Open Source

Used in Stacks

Comparisons

ms-swift vs LLaMA-Factory — ModelScope Fine-Tuning Hub vs Universal Training Orchestrator

ms-swift and LLaMA-Factory both simplify LLM fine-tuning with web UIs and CLI interfaces but serve different primary ecosystems. ms-swift by ModelScope supports over 600 models with native integration into China's ModelScope Hub alongside Hugging Face. LLaMA-Factory provides the most popular fine-tuning framework globally with 69,000+ stars, comprehensive training method coverage, and deep Hugging Face ecosystem integration.

FAQ

What is ms-swift?

ms-swift is ModelScope's open-source framework for fine-tuning over 600 large language and multimodal models. It supports SFT, DPO, RLHF, LoRA, QLoRA, and full fine-tuning with a web UI and CLI interface. Optimized for the Chinese AI ecosystem with native ModelScope Hub integration alongside Hugging Face support. Over 13,500 GitHub stars.

Is ms-swift free?

Yes — ms-swift is open source and free to use. Free and open-source under Apache 2.0

Is ms-swift open source?

Yes — ms-swift is open source.

What are the best ms-swift alternatives?

The top editor-verified ms-swift alternatives are LLaMA-Factory, torchtune.