[Paper Review] SWIFT:A Scalable lightWeight Infrastructure for Fine-Tuning
SWIFT is an open-source framework that unifies training, fine-tuning, post-training processes, and deployment for 300+ LLMs and 50+ MLLMs, enabling lightweight, multi-modal model tuning with integrated evaluation and quantization.
Recent development in Large Language Models (LLMs) and Multi-modal Large Language Models (MLLMs) have leverage Attention-based Transformer architectures and achieved superior performance and generalization capabilities. They have since covered extensive areas of traditional learning tasks. For instance, text-based tasks such as text-classification and sequence-labeling, as well as multi-modal tasks like Visual Question Answering (VQA) and Optical Character Recognition (OCR), which were previously addressed using different models, can now be tackled based on one foundation model. Consequently, the training and lightweight fine-tuning of LLMs and MLLMs, especially those based on Transformer architecture, has become particularly important. In recognition of these overwhelming needs, we develop SWIFT, a customizable one-stop infrastructure for large models. With support of over $300+$ LLMs and $50+$ MLLMs, SWIFT stands as the open-source framework that provide the most comprehensive support for fine-tuning large models. In particular, it is the first training framework that provides systematic support for MLLMs. In addition to the core functionalities of fine-tuning, SWIFT also integrates post-training processes such as inference, evaluation, and model quantization, to facilitate fast adoptions of large models in various application scenarios. With a systematic integration of various training techniques, SWIFT offers helpful utilities such as benchmark comparisons among different training techniques for large models. For fine-tuning models specialized in agent framework, we show that notable improvements on the ToolBench leader-board can be achieved by training with customized dataset on SWIFT, with an increase of 5.2%-21.8% in the Act.EM metric over various baseline models, a reduction in hallucination by 1.6%-14.1%, and an average performance improvement of 8%-17%.
Motivation & Objective
- Address the need for a unified, lightweight training and fine-tuning pipeline for large language and multi-modal models.
- Provide systematic support for MLLMs alongside text LLMs within a Transformer-based framework.
- Integrate post-training processes (inference, evaluation, quantization) to facilitate fast adoption in applications.
- Offer a suite of tuning techniques and deploy/evaluation tools to compare training approaches and results.
Proposed method
- Introduce SWIFT as a Transformer-compatible training framework integrated with PEFT and Optimum for pre-training, fine-tuning, and human alignment.
- Support six quantization types (BNB, HQQ, EETQ, AWQ, GPTQ, AQLM) and QLoRA-style training.
- Incorporate tuners beyond PEFT (e.g., LLaMA-Pro, LongLoRA, LISA, DoRA, rsLoRA) and allow mixing/unifying interfaces via prepare_model and from_pretrained.
- Provide training, inference, evaluation, and deployment pathways, including Megatron-based pre-training support and sequence parallelism for long sequences.
- Offer an extensible dataset and template system to handle text and multi-modal data, with specialized support for agent-focused fine-tuning through ToolBench and AgentFlan-style datasets.
- Expose a web UI (Gradio) and command-line interface for end-to-end workflow (pt, sft, rlhf) and OpenAI-compatible inference APIs.

Experimental results
Research questions
- RQ1How can a single open-source framework efficiently support both text LLMs and multi-modal LLMs in training and fine-tuning?
- RQ2What lightweight tuning techniques offer the best trade-offs between memory, speed, and accuracy across models?
- RQ3How can post-training processes (inference, evaluation, quantization) be integrated to streamline deployment of large models?
- RQ4What improvements in agent-related fine-tuning can be achieved with dedicated datasets and loss-scaling strategies?
Key findings
- SWIFT supports over 300 NLP models and more than 50 multi-modal models, plus 150+ datasets.
- In lightweight tuning benchmarks, LISA achieved the lowest memory usage and fastest speed among tuners.
- LoRA+, GaLore, and Q-GaLore displayed strong performance gains and memory/speed profiles across models like qwen-7b-chat and LLaMA3-8b-instruct.
- Agent training experiments show loss-scale significantly improving Plan.EM, Act.EM, Hallucination rate, and other metrics across in-domain and out-of-domain settings.
- In-domain Qwen2-7b-instruct ToolBench results with LoRA/Ours and Full(Ours) outperform baseline GPT-4 on several metrics; average improvements around 8-17% reported.
- The framework enables multi-LoRA inference and deployment, flexible backends (vLLM, PT), and seamless template-based data handling for multi-modal tasks.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.