arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2404.10896cs.CVcs.AIcs.AR
收藏

从Llama2 7B权重的无损(~1.5:1)压缩算法到面向CNN和LLM的可变精度、可变范围压缩数值数据类型

From a Lossless (~1.5:1) Compression Algorithm for Llama2 7B Weights to Variable Precision, Variable Range, Compressed Numeric Data Types for CNNs and LLMs

Ocean Logic Pty Ltd(海洋逻辑有限公司)

Vincenzo Liguori

AI总结:

本文提出Llama2 7B权重的无损压缩算法,扩展出可变精度范围的压缩数值类型,给出基于ANS的硬件实现及token工厂示例,实现带宽降低。

摘要:

本文首先提出一种针对大语言模型(LLM)Llama2 7B[1]权重的简单无损(~1.5:1)压缩算法,该算法可在AMD FPGA中用约200个LUT实现,每秒可处理超过8亿个bfloat16数。随后该框架被扩展为可变精度、可变范围的压缩数值数据类型,这类类型是用户定义的浮点数与posits[2]的超集。本文还讨论了基于ANS(非对称数字系统)[3]的该类格式的简单硬件实现,它可作为该灵活数据格式与计算引擎之间的桥梁,同时实现带宽降低。文中还给出了一个采用权重压缩与共享的token工厂示例。

英文摘要:

This paper starts with a simple lossless ~1.5:1 compression algorithm for the weights of the Large Language Model (LLM) Llama2 7B [1] that can be implemented in ~200 LUTs in AMD FPGAs, processing over 800 million bfloat16 numbers per second. This framework is then extended to variable precision, variable range, compressed numerical data types that are a user defined super set of both floats and posits [2]. The paper then discusses a simple hardware implementation of such format based on ANS (Asymmetrical Numeral Systems) [3] that acts as a bridge between this flexible data format and a computational engine while, at the same time, achieving bandwidth reduction. An example of a token factory using weight compression and sharing is also given.

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

↑