Skip to content

Option to use ReBased Linear Attention and RingAttention#51

Open
kabachuha wants to merge 4 commits intoVchitect:mainfrom
kabachuha:main
Open

Option to use ReBased Linear Attention and RingAttention#51
kabachuha wants to merge 4 commits intoVchitect:mainfrom
kabachuha:main

Conversation

@kabachuha
Copy link
Copy Markdown

@kabachuha kabachuha commented Mar 5, 2024

Not tested yet, as it needs training runs, but I think it can be helpful for you

ReBased repo: https://github.com/corl-team/rebased

Ring Attention implementation by Lucidrains https://github.com/lucidrains/ring-attention-pytorch

@maxin-cn
Copy link
Copy Markdown
Collaborator

maxin-cn commented Mar 5, 2024

Not tested yet, as it needs training runs, but I think it can be helpful for you

ReBased repo: https://github.com/corl-team/rebased

Thanks for your PR, we will check it.

@kabachuha kabachuha changed the title Option to use Linear Attention from ReBased Option to use ReBased Linear Attention and RingAttention Mar 6, 2024
@bhack
Copy link
Copy Markdown

bhack commented Mar 8, 2024

Be aware that there could be some problem in the case you want to compile it
pytorch/pytorch#121386

@KimmiShi
Copy link
Copy Markdown

ring attention is not the most efficient method for this model.

@maxin-cn maxin-cn assigned maxin-cn and KimmiShi and unassigned maxin-cn Mar 21, 2024
@maxin-cn maxin-cn added the enhancement New feature or request label Aug 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants