Hugging Face Blog·· 2020-07-03AI 评分23
The Reformer:用不到 8GB RAM 训练 50 万 token 序列的语言模型
The Reformer - Pushing the limits of language modeling
AI 导读
Reformer 模型可在不到 8GB 内存下一次性处理多达 50 万 token 的序列,远超传统 BERT 模型 512 token 的输入限制。其内存优化来自四项关键设计:局部敏感哈希(LSH)自注意力层、分块前馈层、可逆残差层和轴向位置编码。Reformer 已集成至 Hugging Face Transformers 库。
来源:Hugging Face Blog · huggingface.co