LibreAI / Développement / ms-swift
// devtools · modelscope/ms-swift

ms-swift

ms-swift est un projet de développement open source, créé par modelscope (modelscope/ms-swift sur GitHub). Il compte 15 796 étoiles sur GitHub et 1 726 forks, il est publié sous la licence Apache-2.0 et a été mis à jour pour la dernière fois sur GitHub le 8 octobre 2026.

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

★ 15,8 k étoiles⑂ 1,7 k forksApache-2.0mis à jour oct. 2026
▦ visuel — le README de ce projet ne contient aucune capture intégrable,
voici donc un emplacement réservé. Le guide ci-dessous est complet malgré tout.
// détails du projet

Détails du projet

Étoiles GitHub
15 796
Forks
1 726
Licence
Apache-2.0
Dernière mise à jour sur GitHub
8 octobre 2026
Catégorie
Développement
Type de fiche
Guide d'installation complet
Site officiel
Official site
// fonctionnement

Comment ça marche

  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.

// fonctionnalités

Pourquoi on l'adore

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
// lancez-le

Lancez-le vous-même

  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 .
// cas d'usage

Ce que vous pouvez créer

Advertisement
// faq

Questions fréquentes

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.

// continuez l'exploration

Outils similaires

Développement

peft

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

★ 21,8 k étoilesApache-2.0
Voir le guide →
Développement

litgpt

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

★ 13,7 k étoilesApache-2.0
Voir le guide →
Développement

evalscope

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

★ 3,5 k étoilesApache-2.0
Voir le guide →
Développement

ai-game-devtools

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

★ 1,4 k étoilesMIT
Voir le guide →
Développement

LlamaFactory

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

★ 75,4 k étoilesApache-2.0
Voir le guide →
Développement

forgecode

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

★ 7,6 k étoilesApache-2.0
Voir le guide →
// alternatives

Alternatives en Développement

Les autres projets de la catégorie Développement avec le plus d'étoiles du catalogue LibreAI — la sélection réaliste d'alternatives si ms-swift ne vous convient pas.

// plus en devtools

Plus en Développement

Projets de la catégorie Développement proches dans le catalogue, les plus proches en étoiles de ms-swift — continuez à explorer de part et d'autre.

Obtenir ms-swift

Gratuit et ouvert : récupérez le code source, mettez une étoile au dépôt et commencez à créer.