arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2504.17449cs.LGcs.AIcs.CL
收藏

HMI:面向预训练语言模型高效多租户推理的分层知识管理

HMI: Hierarchical Knowledge Management for Efficient Multi-Tenant Inference in Pretrained Language Models

The State Key Laboratory of Blockchain and Data Security, Zhejiang University(区块链与数据安全国家重点实验室,浙江大学);Hangzhou High-Tech Zone (Binjiang) Institute of Blockchain and Data Security(杭州高新技术区(滨江)区块链与数据安全研究院);OPPO AI Center(OPPO人工智能中心)

Jun Zhang, Jue Wang, Huan Li, Lidan Shou, Ke Chen, Gang Chen, Qin Xie, Guiming Xie, Xuejian Gong

AI总结:

针对多租户环境下预训练语言模型推理的资源消耗问题,提出基于分层知识管理的HMI系统,通过分层PLM构建、知识树管理和参数交换,在单GPU上高效服务多达10,000个模型,精度损失极小。

摘要:

预训练语言模型(PLMs)的显著计算需求通常需要专用硬件,这给高效服务带来了巨大挑战,尤其是在多租户环境中。为解决这一问题,我们引入了HMI,一种基于分层知识管理的多租户推理系统,旨在以资源高效的方式管理具有不同PLM的租户。我们的方法包含三个方面:首先,我们将PLM知识分为通用知识、领域特定知识和任务特定知识。利用不同模型层知识获取的见解,我们通过在不同层级提取和存储知识来构建分层PLM(hPLMs),显著减少每个租户的GPU内存使用。其次,我们在HMI中为不同租户生成的hPLMs建立分层知识管理。我们通过基于频率构建和更新领域特定知识树来管理领域特定知识,存储增加可接受。我们通过参数交换在有限的GPU内存中管理任务特定知识。最后,我们提出系统优化以增强资源利用率和推理吞吐量。这些优化包括通过分层知识预取实现细粒度流水线,以将CPU和I/O操作与GPU计算重叠,以及通过批量矩阵乘法优化并行实现。我们的实验结果表明,所提出的HMI可以在单个GPU上高效服务多达10,000个hPLMs(hBERTs和hGPTs),且精度损失可忽略不计。

英文摘要:

The significant computational demands of pretrained language models (PLMs), which often require dedicated hardware, present a substantial challenge in serving them efficiently, especially in multi-tenant environments. To address this, we introduce HMI, a Hierarchical knowledge management-based Multi-tenant Inference system, designed to manage tenants with distinct PLMs resource-efficiently. Our approach is three-fold: Firstly, we categorize PLM knowledge into general, domain-specific, and task-specific. Leveraging insights on knowledge acquisition across different model layers, we construct hierarchical PLMs (hPLMs) by extracting and storing knowledge at different levels, significantly reducing GPU memory usage per tenant. Secondly, we establish hierarchical knowledge management for hPLMs generated by various tenants in HMI. We manage domain-specific knowledge with acceptable storage increases by constructing and updating domain-specific knowledge trees based on frequency. We manage task-specific knowledge within limited GPU memory through parameter swapping. Finally, we propose system optimizations to enhance resource utilization and inference throughput. These include fine-grained pipelining via hierarchical knowledge prefetching to overlap CPU and I/O operations with GPU computations, and optimizing parallel implementations with batched matrix multiplications. Our experimental results demonstrate that the proposed HMI can efficiently serve up to 10,000 hPLMs (hBERTs and hGPTs) on a single GPU, with only a negligible compromise in accuracy.

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

↑