Hugging Face Blog·· 2022-08-17精选AI 评分82
Hugging Face 详解使用 transformers、accelerate 和 bitsandbytes 进行 8-bit 矩阵乘法
A Gentle Introduction to 8-bit Matrix Multiplication for transformers at scale using transformers, accelerate and bitsandbytes
AI 导读
Hugging Face 将 LLM.int8() 集成到 transformers,并结合 accelerate 与 bitsandbytes 为模型提供 8-bit 推理,以降低大模型的显存需求。
推荐理由
文章从数据类型、向量量化到 outlier 分解逐步解释 LLM.int8(),并给出在 transformers 中降低显存占用的集成方法。
来源:Hugging Face Blog · huggingface.co