arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2603.12707cs.LGcs.AIcs.DC
收藏

通过跨层级GPU异构性实现高效的多模态大语言模型推理

Cost-Efficient Multimodal LLM Inference via Cross-Tier GPU Heterogeneity

Donglin Yu

AI总结:

本文提出通过跨层级GPU异构性优化多模态大语言模型推理,减少跨设备传输复杂度,提升吞吐量并降低部署成本。

摘要:

多模态大语言模型(MLLM)推理分为两个阶段,分别具有不同的硬件需求:视觉编码是计算密集型的,而语言生成是内存带宽受限的。我们证明,在标准的transformer KV缓存下,模态边界(视觉编码器与语言模型之间)在所有保持标准阶段式执行的分片点中最小化跨设备传输。此处的分片减少了传输复杂度从O(L * s_ctx)字节(GB级的阶段级解聚KV缓存)到O(N_v * d)字节(MB级的嵌入向量),减少量为O(L),其中L是transformer深度。结果适用于所有注意力机制(MHA/GQA)、动态视觉分辨率和模型规模,且随着模型深度增加优势增强。直接的推论是现有阶段级解聚系统受限于高带宽互连(例如NVLink),而模态级解聚允许在商用PCIe上实现跨层级异构服务。一个闭合形式的成本模型显示,在相分离的工作负载下,异构部署是成本最优的(预测31.4%的节省;观察到40.6%的节省)。我们构建了HeteroServe,一个具有模态级分片和跨层级调度的相感知运行时,并在LLaVA-1.5-7B和Qwen2.5-VL上与vLLM v0.3.0进行评估。在相同的4xA100硬件上,引擎优化将吞吐量提高了最高54%。在固定预算下,异构集群(\$38k)在不降低延迟的情况下,比同构基线(\$64k)提高了37%的Tokens/\$。

英文摘要:

Multimodal large language model (MLLM) inference splits into two phases with opposing hardware demands: vision encoding is compute-bound, while language generation is memory-bandwidth-bound. We show that under standard transformer KV caching, the modality boundary (between vision encoder and language model) minimizes cross-device transfer among all partition points that preserve standard stage-based execution. Partitioning here reduces transfer complexity from $O(L * s_ctx)$ bytes (GB-scale KV caches under stage-level disaggregation) to $O(N_v * d)$ bytes (MB-scale embeddings), an O(L) reduction where L is the transformer depth. The result holds across attention mechanisms (MHA/GQA), dynamic vision resolutions, and model scales, and the advantage grows as models deepen. A direct implication is that existing stage-level disaggregation systems are constrained to high-bandwidth interconnects (e.g., NVLink), whereas modality-level disaggregation enables cross-tier heterogeneous serving over commodity PCIe. A closed-form cost model shows that heterogeneous deployment is cost-optimal under phase-separable workloads (predicts 31.4% savings; observed 40.6%). We build HeteroServe, a phase-aware runtime with modality-level partitioning and cross-tier scheduling, and evaluate it on LLaVA-1.5-7B and Qwen2.5-VL against vLLM v0.3.0. On identical 4xA100 hardware, engine optimizations raise throughput by up to 54%. Under a fixed budget, a heterogeneous cluster (\$38k) improves Tokens/\$ by 37% over a homogeneous baseline (\$64k) without degrading latency.

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

↑