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

S3D:一种面向低内存GPU的简单且高性价比的自推测解码方案

S3D: A Simple and Cost-Effective Self-Speculative Decoding Scheme for Low-Memory GPUs

LG Electronics(LG电子);Toronto AI Lab(多伦多人工智能实验室)

Wei Zhong, Manasa Bharadwaj

AI总结:

本文提出S3D,一种基于多token解码和中间层跳过的低成本自推测解码方法,在低内存GPU上实现高效LLM推理加速,比量化EAGLE快1.4-2倍且VRAM占用更少。

摘要:

推测解码(SD)因能为LLM推理实现显著加速而备受研究关注。然而,尽管能提供高加速,推测解码方法往往在高端设备上才能达到最佳性能,或需要大量GPU内存开销。鉴于内存有限和量化的必要性,在高端GPU上高性能的模型可能会减速高达7倍。为此,我们提出Skippy Simultaneous Speculative Decoding(或S3D),这是一种基于同时多token解码和中间层跳过的低成本自推测SD方法。与近期有效的开源SD系统相比,我们的方法在仅需极少架构更改和训练数据的情况下,实现了最佳的性能-内存比之一。利用我们的内存效率,我们基于Phi-3创建了一个更小但更有效的SD模型。它比量化的EAGLE模型快1.4至2倍,并在使用更少VRAM的同时以半精度运行。

英文摘要:

Speculative decoding (SD) has attracted a significant amount of research attention due to the substantial speedup it can achieve for LLM inference. However, despite the high speedups they offer, speculative decoding methods often achieve optimal performance on high-end devices or with a substantial GPU memory overhead. Given limited memory and the necessity of quantization, a high-performing model on a high-end GPU can slow down by up to 7 times. To this end, we propose Skippy Simultaneous Speculative Decoding (or S3D), a cost-effective self-speculative SD method based on simultaneous multi-token decoding and mid-layer skipping. When compared against recent effective open-source SD systems, our method has achieved one of the top performance-memory ratios while requiring minimal architecture changes and training data. Leveraging our memory efficiency, we created a smaller yet more effective SD model based on Phi-3. It is 1.4 to 2 times faster than the quantized EAGLE model and operates in half-precision while using less VRAM.

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

↑