跳到正文
Hugging Face Blog·· 2021-03-31AI 评分41

理解 BigBird 的 Block Sparse Attention

Understanding BigBird's Block Sparse Attention

AI 导读

Hugging Face 博客深入讲解了 BigBird 的 block sparse attention 实现原理,说明其如何用滑动窗口、全局 token 和随机 token 三种注意力模式近似 BERT 的全注意力,将序列长度扩展到 4096 且计算成本远低于 BERT。

来源:Hugging Face Blog · huggingface.co