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

低算力环境下的LLM词表压缩

LLM Vocabulary Compression for Low-Compute Environments

IIIT Hyderabad(印度信息技术研究所海得拉巴分校)

Sreeram Vennam, Anish Joishy, Ponnurangam Kumaraguru

AI总结:

本文提出一种基于BPE合并分组token以压缩语言模型最终线性层的方法,在TinyStories数据集上性能与GPT-Neo和GPT2相当,内存降低3.4倍、吞吐量提升3倍,适用于低算力环境。

摘要:

我们提出一种压缩语言模型最终线性层的方法,将内存使用量降低多达3.4倍且无显著性能损失。通过基于Byte Pair Encoding (BPE)合并对token进行分组,我们避免了内存密集型logits张量的实体化。在TinyStories数据集上的评估表明,该方法性能与GPT-Neo和GPT2相当,同时吞吐量显著提升多达3倍,适用于低算力环境。

英文摘要:

We present a method to compress the final linear layer of language models, reducing memory usage by up to 3.4x without significant performance loss. By grouping tokens based on Byte Pair Encoding (BPE) merges, we prevent materialization of the memory-intensive logits tensor. Evaluations on the TinyStories dataset show that our method performs on par with GPT-Neo and GPT2 while significantly improving throughput by up to 3x, making it suitable for low-compute environments.

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

↑