desire2020 / pytorch_memory_efficient_attention_with_learnable_bias

Implements Memory Efficient Attention in plain pytorch. Added support for (learnable!) biases.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Pytorch Memory Efficient Attention with Learnable Attention bias

Implements Memory Efficient Attention in plain pytorch. Added support for (learnable!) biases. Warning: The introduction of learnable biases could slightly compromise the space complexity improvements of the original memory efficient attention algorithm.

About

Implements Memory Efficient Attention in plain pytorch. Added support for (learnable!) biases.

License:MIT License


Languages

Language:Python 100.0%