Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compared to CausalFullAttention, Taylor is slow to train and use more GPU #3

Open
junphine opened this issue Feb 29, 2024 · 2 comments

Comments

@junphine
Copy link

junphine commented Feb 29, 2024

Taylor (pt:300M head:48, head_dim:16, seq_len:2048) 0.62it/s GPU: 32G
CausalFullAttention (pt:310M head:8 head_dim:96 seq_len:2048) 1.77it/s GPU: 26G

@junphine
Copy link
Author

企业微信截图_17092051833001
also taylor loss reduction is slow than full attention

@lucidrains
Copy link
Owner

@junphine the benefits really only come at a certain sequence length, 4096 and beyond

even then, a head dimension of 16 is just too much of a handicap

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants