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

Reland Attention with Linear Biases #486

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

Conversation

ftynse
Copy link
Contributor

@ftynse ftynse commented Feb 10, 2025

This implements (causal) ALiBi, attention with linear biases, following
the paper "Train Short, Test Long: Attention with Linear Biases Enables
Input Length Extrapolation" by Press et.al in ICLR 2022.

Incidentally fixes API misuse in code generation for broadcast.

Reland #467

@ftynse ftynse marked this pull request as ready for review February 10, 2025 14:39
ftynse and others added 3 commits February 10, 2025 16:52
This implements (causal) ALiBi, attention with linear biases, following
the paper "Train Short, Test Long: Attention with Linear Biases Enables
Input Length Extrapolation" by Press et.al in ICLR 2022.

Signed-off-by: Alex Zinenko <[email protected]>
Signed-off-by: Alex Zinenko <[email protected]>
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