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

Implement get_freqs for RopeWithAttentionSink #7100

Merged

Conversation

helunwencser
Copy link
Contributor

@helunwencser helunwencser commented Nov 27, 2024

Stack from ghstack (oldest at bottom):

This PR implements the get_freqs function for RopeWithAttentionSink. It returns the freqs_cos and freqs_sin for given input_pos and seq_len after shifting tokens in the pre-computed freqs_cos and freq_sin.

Differential Revision: D66525306

This PR implements the `get_freqs` function for `RopeWithAttentionSink`. It returns the `freqs_cos` and `freqs_sin` for given `input_pos` and `seq_len` after shifting tokens in the pre-computed `freqs_cos` and `freq_sin`.

Differential Revision: [D66525306](https://our.internmc.facebook.com/intern/diff/D66525306/)

[ghstack-poisoned]
Copy link

pytorch-bot bot commented Nov 27, 2024

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/7100

Note: Links to docs will display an error until the docs builds have been completed.

✅ No Failures

As of commit 9d1ab6f with merge base b8fbc48 (image):
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Nov 27, 2024
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D66525306

@helunwencser helunwencser added the release notes:attention_sink Implement attention sink described in https://arxiv.org/abs/2309.17453 label Nov 27, 2024
@facebook-github-bot facebook-github-bot merged commit a0f577a into gh/helunwencser/81/base Nov 27, 2024
41 of 46 checks passed
@facebook-github-bot facebook-github-bot deleted the gh/helunwencser/81/head branch November 27, 2024 19:34
kirklandsign pushed a commit that referenced this pull request Nov 27, 2024
This PR implements the `get_freqs` function for `RopeWithAttentionSink`. It returns the `freqs_cos` and `freqs_sin` for given `input_pos` and `seq_len` after shifting tokens in the pre-computed `freqs_cos` and `freq_sin`.

Differential Revision: [D66525306](https://our.internmc.facebook.com/intern/diff/D66525306/)

ghstack-source-id: 255582545
Pull Request resolved: #7100
kirklandsign pushed a commit that referenced this pull request Nov 27, 2024
This PR implements the `get_freqs` function for `RopeWithAttentionSink`. It returns the `freqs_cos` and `freqs_sin` for given `input_pos` and `seq_len` after shifting tokens in the pre-computed `freqs_cos` and `freq_sin`.

Differential Revision: [D66525306](https://our.internmc.facebook.com/intern/diff/D66525306/)

ghstack-source-id: 255582545
Pull Request resolved: #7100

Co-authored-by: Lunwen He <[email protected]>
mergennachin pushed a commit that referenced this pull request Dec 2, 2024
This PR implements the `get_freqs` function for `RopeWithAttentionSink`. It returns the `freqs_cos` and `freqs_sin` for given `input_pos` and `seq_len` after shifting tokens in the pre-computed `freqs_cos` and `freq_sin`.

Differential Revision: [D66525306](https://our.internmc.facebook.com/intern/diff/D66525306/)

ghstack-source-id: 255582545
Pull Request resolved: #7100

Co-authored-by: Lunwen He <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported release notes:attention_sink Implement attention sink described in https://arxiv.org/abs/2309.17453
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants