跳到正文
Hugging Face Blog·· 2022-08-17精选AI 评分62

Hugging Face 详解 transformers 中的 8-bit 矩阵乘法与 LLM.int8() 集成

A Gentle Introduction to 8-bit Matrix Multiplication for transformers at scale using transformers, accelerate and bitsandbytes

AI 导读

Hugging Face 将 LLM.int8() 8-bit 量化集成进 transformers 和 accelerate,使 BLOOM-176B 等大模型显存占用减半且推理性能不降。

推荐理由

文章完整拆解 LLM.int8() 的量化原理与 transformers 集成细节,并给出可复用的代码与显存实测数据。

来源:Hugging Face Blog · huggingface.co