-
Notifications
You must be signed in to change notification settings - Fork 422
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ET-VK][ez] Apply rotary embedding as Module (#6422)
Pull Request resolved: #6391 ## Context As title. Wrap the `apply_rotary_emb` function call in a `nn.Module` to make it easy to perform a source module replacement for rotary embedding calculation. The Vulkan delegate will use the source module replacement technique to insert a custom op to calculate rotary embeddings. ghstack-source-id: 249175724 @exported-using-ghexport Differential Revision: [D64697589](https://our.internmc.facebook.com/intern/diff/D64697589/) Co-authored-by: Stephen Jia <[email protected]>
- Loading branch information
1 parent
1247545
commit 0309854
Showing
2 changed files
with
17 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters