SwapMoE: Serving Off-the-shelf MoE-based Large Language Models with Tunable Memory Budget
Mixture of experts (MoE) is a popular technique to improve capacity of Large Language Models (LLMs) with conditionally-activated parallel experts. However, serving MoE models on memory-constrained devices is challenging due to the large parameter size. Typical solutions such as memory swapping or expert pruning may lead to significantly higher latency or severe accuracy loss. In this paper, we introduce SwapMoE, a framework for efficient serving of MoE-based large language models with tunable memory budgets. The main idea of SwapMoE is to keep a small dynamic set of important experts, namely Virtual Experts, in the main memory for inference, while seamlessly maintaining how the Virtual Experts map to the actual experts. Experiments have shown that SwapMoE can reduce the memory footprint while maintaining reasonable accuracy. For example, on text summarization tasks with Switch Transformer, SwapMoE can reduce the memory consumption from 14.2 GiB to 4.7 GiB, together with 50\% latency reduction and a slight Rouge-2 score drop of 0.041.
Code (0)
등록된 구현이 없습니다.
Tasks
Mixture-of-Expertsobject-detectionObject DetectionText SummarizationMethods 이 논문이 사용한 방법론
Similar Papers 제목 키워드 기반
Influence-Preserving Proxies for Gradient-Based Data Selection in LLM Fine-tuning
Supervised fine-tuning (SFT) relies critically on selecting training data that most benefits a model's downstream performance. Gradient-based data selection methods such as TracIn and Influence Functions leverage influen…
A low-cost flexible instrument made of off-the-shelf components for pulsed eddy current testing: overview and application to pseudo-noise excitation
A flexible and low-cost device for eddy current non-destructive testing made of off-the-shelf components is described. The proposed system is compact and easy to operate, and it consists of a dual H-bridge stepper motor …
RAG4ITOps: A Supervised Fine-Tunable and Comprehensive RAG Framework for IT Operations and Maintenance
With the ever-increasing demands on Question Answering (QA) systems for IT operations and maintenance, an efficient and supervised fine-tunable framework is necessary to ensure the data security, private deployment and c…
Cloud ComputingContrastive LearningQuestion AnsweringRAG+2The Thinking Spectrum: An Empirical Study of Tunable Reasoning in LLMs through Model Merging
The growing demand for large language models (LLMs) with tunable reasoning capabilities in many real-world applications highlights a critical need for methods that can efficiently produce a spectrum of models balancing r…
Equinox: Holistic Fair Scheduling in Serving Large Language Models
We address the limitations of current LLM serving with a dual-counter framework separating user and operator perspectives. The User Fairness Counter measures quality of service via weighted tokens and latency; the Resour…