SDK for fine-tuning and deploying LLMs/MLLMs
Top 5.8% on sourcepulse
SWIFT (Scalable lightWeight Infrastructure for Fine-Tuning) is a comprehensive framework for fine-tuning and deploying over 450 large language models (LLMs) and 150+ multi-modal large models (MLLMs). It targets researchers and developers working with LLMs and MLLMs, offering a unified pipeline from pre-training and fine-tuning to inference, evaluation, and deployment, significantly streamlining the MLOps lifecycle for these complex models.
How It Works
SWIFT supports a wide array of training techniques, including parameter-efficient fine-tuning (PEFT) methods like LoRA, QLoRA, DoRA, and GaLore, alongside full-parameter fine-tuning. It also integrates advanced human alignment methods such as DPO, GRPO, KTO, and ORPO. For inference and deployment, SWIFT leverages acceleration engines like vLLM and LMDeploy, and supports quantization via GPTQ and AWQ. The framework is designed for flexibility, allowing custom model and dataset integration, as well as component customization (loss, metrics, optimizers).
Quick Start & Requirements
pip install ms-swift -U
or from source.Highlighted Details
Maintenance & Community
Licensing & Compatibility
Limitations & Caveats
17 hours ago
1 day