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

Relative position encoding #956

Open
wants to merge 12 commits into
base: main
Choose a base branch
from
Open

Relative position encoding #956

wants to merge 12 commits into from

Conversation

b-albar
Copy link

@b-albar b-albar commented May 14, 2024

This PR add fused relative positional encoding to the kernel. Contrary to #617, it doesn't pass the bias matrix to the kernel but only the bucket tensor allowing linear memory for T5 architecture and similar.

Todo

  • Backward pass
  • Add varlen
  • Test
  • Benchmark

@b-albar b-albar marked this pull request as ready for review May 21, 2024 07:58
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

Successfully merging this pull request may close these issues.

1 participant