Overview of ms-swift capabilities
mainms-swift (Scalable lightWeight Infrastructure for Fine-Tuning) is a comprehensive framework for large language models (LLMs) and multi-modal large language models (MLLMs). It supports the entire lifecycle including:
- Training: Pre-training, fine-tuning (SFT), human alignment (RLHF), and specialized tasks like Embedding, Reranker, and sequence classification.
- Inference & Deployment: Accelerated inference using engines like
vLLM,SGLang, andLMDeploy. - Evaluation: Model evaluation using
EvalScopeas the backend. - Quantization: Support for
GPTQ,AWQ,BNB, andFP8techniques.
Key Features:
- Model Support: 600+ text models (e.g., Qwen, DeepSeek, Llama) and 400+ multi-modal models (e.g., Qwen-VL, Llava, InternVL).
- Lightweight Fine-tuning: Supports LoRA, QLoRA, DoRA, LLaMAPro, and more.
- Reinforcement Learning: Built-in support for the GRPO algorithm family (GRPO, DAPO, GSPO, etc.).
- Distributed Training: Supports DDP, DeepSpeed (ZeRO2/3), FSDP, and Megatron-style parallelism (TP, PP, CP, EP, etc.).
- Hardware: Compatible with NVIDIA GPUs (A10/A100/H100, RTX), CPU, MPS, and Ascend NPU.