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

Commits on Nov 27, 2024

  1. Implement get_freqs for RopeWithAttentionSink

    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]
    helunwencser committed Nov 27, 2024
    Configuration menu
    Copy the full SHA
    9d1ab6f View commit details
    Browse the repository at this point in the history