跳到正文
原文
Hugging Face Blog·· 2020-07-03AI 评分40

Reformer 如何用不到 8GB 内存训练 50 万 token 长序列

The Reformer - Pushing the limits of language modeling

AI 导读

Hugging Face 博客详解 Reformer 模型,它能在不到 8GB 内存下训练长度达 50 万 token 的序列,而 bert-base-uncased 仅支持 512 token。Reformer 通过局部自注意力、LSH 自注意力、分块前馈层、可逆残差层和轴向位置编码四项改造降低内存占用,并已集成进 Transformers 库。

来源:Hugging Face Blog · huggingface.co