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

利用结合令牌/嵌入投机器的加速生产环境大语言模型

Accelerating Production LLMs with Combined Token/Embedding Speculators

IBM Research(IBM研究院)

Davis Wertheimer, Joshua Rosenkranz, Thomas Parnell, Sahil Suneja, Pavithra Ranganathan, Raghu Ganti, Mudhakar Srivatsa

AI总结:

本文提出一种结合上下文向量和采样令牌的新型投机解码草稿模型,可在生产环境中将大语言模型推理速度提升2-3倍。

摘要:

本技术报告描述了一种新型投机解码草稿模型的设计与训练方法,用于在生产环境中加速大语言模型的推理速度。通过将草稿预测同时基于上下文向量和已采样令牌进行条件化,我们可以训练投机器高效地预测高质量 n-gram,随后由基础模型决定接受或拒绝。这使得我们能够在每次推理前向传递中有效预测多个令牌,将高度优化的基础模型实现的墙钟推理速度提升 2-3 倍。我们探讨了这些初步结果,并描述了进一步改进的后续步骤。

英文摘要:

This technical report describes the design and training of novel speculative decoding draft models, for accelerating the inference speeds of large language models in a production environment. By conditioning draft predictions on both context vectors and sampled tokens, we can train our speculators to efficiently predict high-quality n-grams, which the base model then accepts or rejects. This allows us to effectively predict multiple tokens per inference forward pass, accelerating wall-clock inference speeds of highly optimized base model implementations by a factor of 2-3x. We explore these initial results and describe next steps for further improvements.

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

↑