// devtools · modelscope/ms-swift

ms-swift

ms-swiftは、modelscopeが公開しているオープンソースの開発ツールプロジェクトです(GitHub: modelscope/ms-swift)。GitHubスターは15,796、フォークは1,726で、Apache-2.0ライセンスの下で公開されています。GitHubでの最終更新は2026年10月8日です。

Fine-tune and deploy 600+ LLMs and 300+ multimodal models with PEFT or full-parameter training.

★ 15.8k スター⑂ 1.7k フォークApache-2.0更新 2026年10月
▦ ビジュアル — このプロジェクトのREADMEには埋め込み可能なスクリーンショットがないため、
ここではプレースホルダーを表示しています。下のガイド自体は完全な内容です。
// プロジェクトの基本情報

プロジェクト基本情報

リポジトリ
modelscope/ms-swift
GitHubスター
15,796
フォーク
1,726
ライセンス
Apache-2.0
GitHubでの最終更新
2026年10月8日
カテゴリ
開発ツール
掲載タイプ
完全なインストールガイド
公式サイト
Official site
// 仕組み

仕組み

  1. Pick a base model and training method

    Choose from 600+ LLMs or 300+ multimodal models, then decide between lightweight PEFT (such as LoRA) and full-parameter training.

  2. Install ms-swift

    Install the package from PyPI with pip or uv, or clone the repo and install from source for the latest main branch.

  3. Prepare your dataset

    Use one of the 150+ built-in datasets or format your own for pre-training, SFT, alignment, embedding or reranker tasks.

  4. Train, evaluate and deploy

    Launch training with the CLI or scripts, evaluate the result, then quantize and serve it with vLLM, SGLang or LMDeploy.

// 機能

選ばれる理由

Huge model coverage

Training-to-deployment pipelines for 600+ text LLMs and hundreds of multimodal models, with day-0 support for popular new releases.

Many training algorithms

CPT, SFT, DPO, KTO, RM, CPO, SimPO and ORPO, plus a GRPO-family reinforcement learning set including DAPO, GSPO and Reinforce++.

Lightweight fine-tuning methods

LoRA, QLoRA, DoRA, LoRA+, LLaMAPro, LongLoRA, Adapter, ReFT and more, alongside full-parameter training.

Megatron parallelism

Tensor, pipeline, context and expert parallelism techniques from Megatron to accelerate large training runs.

Broad hardware support

NVIDIA GPUs via CUDA, AMD GPUs via ROCm, Ascend NPU and other domestic accelerators, plus Apple MPS and CPU.

Quantization and fast serving

Train on BNB, AWQ, GPTQ, AQLM, HQQ and EETQ quantized models, and accelerate inference and deployment with vLLM, SGLang and LMDeploy.

Advertisement
// 自分で実行

自分で実行してみる

  1. Clone the repository

    Clone ms-swift if installing from source; PyPI installs do not need the clone.

    git clone https://github.com/modelscope/ms-swift.git
    cd ms-swift
  2. Install the package

    Install the latest release from PyPI and upgrade to the newest version.

    pip install ms-swift -U
  3. Install from source (alternative)

    For the main branch, install the cloned project in editable mode.

    pip install -e .
// 活用例

作れるもの

Advertisement
// よくある質問

よくある質問

Who maintains ms-swift?

It is provided by the ModelScope community (modelscope) and open-source contributors, and was presented at AAAI 2025.

Is ms-swift free to use?

Yes. It is Apache-2.0 licensed; the models and datasets you use with it carry their own licenses.

Does it need a paid API key?

No. Training and inference run on your own hardware; you only need model weights and data, which you download from hubs such as ModelScope or Hugging Face.

How does ms-swift compare with LLaMA-Factory or Axolotl?

All three fine-tune open LLMs; ms-swift stands out for its very wide model and multimodal coverage, Megatron parallelism and the breadth of built-in alignment algorithms - the best fit depends on your model and hardware.

How do I get started?

Run pip install ms-swift -U, pick a built-in dataset and a supported base model, and follow the quick-start training example in the docs.

// さらに探索

似ているツール

開発ツール

peft

Fine-tune huge models on small hardware with LoRA and other efficient methods

★ 21.8k スターApache-2.0
ガイドを見る →
開発ツール

litgpt

20+ high-performance LLMs implemented from scratch, with proven recipes to pretrain, finetune and deploy.

★ 13.7k スターApache-2.0
ガイドを見る →
開発ツール

evalscope

A streamlined framework for evaluating and benchmarking LLMs, VLMs and AIGC models.

★ 3.5k スターApache-2.0
ガイドを見る →
開発ツール

ai-game-devtools

Resource hub for AI-powered game development — LLMs, world models, agents.

★ 1.4k スターMIT
ガイドを見る →
開発ツール

LlamaFactory

Unified, efficient fine-tuning of 100+ LLMs and VLMs with a CLI and Web UI — ACL 2024

★ 75.4k スターApache-2.0
ガイドを見る →
開発ツール

forgecode

AI enabled pair programmer for Claude, GPT, O Series, Grok, Deepseek, Gemini and 300+ models

★ 7.6k スターApache-2.0
ガイドを見る →
// 代替候補

代替候補: 開発ツール

LibreAIカタログに掲載された開発ツールプロジェクトの中で最もスターの多いもの — ms-swiftが合わなかった場合に検討したい、現実的な候補リストです。

// さらに見る devtools

さらに見る: 開発ツール

カタログの中でms-swiftとスター数が近い開発ツールプロジェクト — 前後の棚もそのまま見て回れます。

ms-swiftを入手する

無料でオープン — ソースコードを入手して、リポジトリにスターを付け、作り始めましょう。