arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2507.03220cs.DCcs.AIcs.LG
收藏

Symbiosis:多适配器推理与微调

Symbiosis: Multi-Adapter Inference and Fine-Tuning

IBM Research, USA(IBM研究院)

Saransh Gupta, Umesh Deshpande, Travis Janssen, Swami Sundararaman

AI总结:

Symbiosis通过基础模型即服务部署和拆分执行技术,实现多适配器共享基础层,支持灵活资源管理与异构加速器,可同时在8个GPU上微调20个Gemma2-27B适配器。

摘要:

参数高效微调(PEFT)使模型构建者能够将任务特定参数捕获到适配器中,这些适配器的规模仅为原始基础模型的一小部分。PEFT微调技术的普及导致为流行的大型语言模型(LLMs)创建了大量适配器。然而,现有框架在支持多适配器推理或微调方面存在以下不足:1)对于微调,每个作业需要部署其专用的基础模型实例,这导致过度的GPU内存消耗和较差的GPU利用率。2)虽然流行的推理平台可以服务多个PEFT适配器,但它们不允许独立的资源管理或不同PEFT方法的混合使用。3)它们无法有效利用异构加速器。4)它们无法为可能不希望向服务提供商暴露其微调参数的用户提供隐私保护。在Symbiosis中,我们通过实现基础模型的即服务(as-a-service)部署来解决上述问题。基础模型层可以在多个推理或微调进程之间共享。我们的拆分执行(split-execution)技术将客户端特定的适配器和层的执行与冻结的基础模型层解耦,为它们提供管理资源、选择微调方法以及实现性能目标的灵活性。我们的方法对模型透明,并且对于transformers库中的大多数模型可以开箱即用。我们展示了使用Symbiosis在8个GPU上同时微调20个Gemma2-27B适配器的应用。

英文摘要:

Parameter-efficient fine-tuning (PEFT) allows model builders to capture the task-specific parameters into adapters, which are a fraction of the size of the original base model. Popularity of PEFT technique for fine-tuning has led to the creation of a large number of adapters for popular Large Language Models (LLMs). However, existing frameworks fall short in supporting inference or fine-tuning with multiple adapters in the following ways. 1) For fine-tuning, each job needs to deploy its dedicated base model instance, which results in excessive GPU memory consumption and poor GPU utilization. 2) While popular inference platforms can serve multiple PEFT adapters, they do not allow independent resource management or mixing of different PEFT methods. 3) They cannot make effective use of heterogeneous accelerators. 4) They do not provide privacy to users who may not wish to expose their fine-tuned parameters to service providers. In Symbiosis, we address the above problems by enabling the as-a-service deployment of the base model. The base model layers can be shared across multiple inference or fine-tuning processes. Our split-execution technique decouples the execution of client-specific adapters and layers from the frozen base model layers offering them flexibility to manage their resources, to select their fine-tuning method, to achieve their performance goals. Our approach is transparent to models and works out-of-the-box for most models in the transformers library. We demonstrate the use of Symbiosis to simultaneously fine-tune 20 Gemma2-27B adapters on 8 GPUs.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑