Skip to content

Add Rotary Embedding op to ONNX opset 23 #6461

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

Merged
merged 16 commits into from
Feb 20, 2025

Conversation

shubhambhokare1
Copy link
Contributor

@shubhambhokare1 shubhambhokare1 commented Oct 15, 2024

Description

Add the following key LLM ops to the ONNX standard: RotaryEmbedding

Motivation and Context

Standardize Operators that are showing up in key LLM models.

@shubhambhokare1 shubhambhokare1 requested a review from a team as a code owner October 15, 2024 07:02
Copy link

codecov bot commented Oct 15, 2024

Codecov Report

Attention: Patch coverage is 45.77465% with 77 lines in your changes missing coverage. Please review.

Project coverage is 57.20%. Comparing base (471e50e) to head (93e3cc5).
Report is 159 commits behind head on main.

Files with missing lines Patch % Lines
onnx/backend/test/case/node/rotaryembedding.py 0.00% 77 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6461      +/-   ##
==========================================
- Coverage   57.25%   57.20%   -0.06%     
==========================================
  Files         503      505       +2     
  Lines       31681    31823     +142     
  Branches     3025     3031       +6     
==========================================
+ Hits        18139    18204      +65     
- Misses      12720    12797      +77     
  Partials      822      822              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@shubhambhokare1 shubhambhokare1 changed the title [WIP] Add Rotary Embedding op to ONNX opset 23 Add Rotary Embedding op to ONNX opset 23 Oct 16, 2024
@justinchuby justinchuby self-assigned this Oct 22, 2024
@justinchuby justinchuby self-requested a review October 22, 2024 16:30
Signed-off-by: shubhambhokare1 <shubhambhokare@gmail.com>
Signed-off-by: shubhambhokare1 <shubhambhokare@gmail.com>
Signed-off-by: shubhambhokare1 <shubhambhokare@gmail.com>
Signed-off-by: shubhambhokare1 <shubhambhokare@gmail.com>
Signed-off-by: shubhambhokare1 <shubhambhokare@gmail.com>
Signed-off-by: shubhambhokare1 <shubhambhokare@gmail.com>
Signed-off-by: shubhambhokare1 <shubhambhokare@gmail.com>
Signed-off-by: shubhambhokare1 <shubhambhokare@gmail.com>
Signed-off-by: shubhambhokare1 <shubhambhokare@gmail.com>
Signed-off-by: shubhambhokare1 <shubhambhokare@gmail.com>
Signed-off-by: shubhambhokare1 <shubhambhokare@gmail.com>
Signed-off-by: shubhambhokare1 <shubhambhokare@gmail.com>
Signed-off-by: shubhambhokare1 <shubhambhokare@gmail.com>
Signed-off-by: shubhambhokare1 <shubhambhokare@gmail.com>
Signed-off-by: shubhambhokare1 <shubhambhokare@gmail.com>
Comment on lines +2910 to +2912
ONNX_OPERATOR_SET_SCHEMA(
RotaryEmbedding,
23,

Check notice

Code scanning / CodeQL

Unused static variable Note

Static variable dbg_count_check_RotaryEmbedding_Onnx_ver23 is never read.
Signed-off-by: shubhambhokare1 <shubhambhokare@gmail.com>
@justinchuby justinchuby added this pull request to the merge queue Feb 20, 2025
@justinchuby
Copy link
Member

justinchuby commented Feb 20, 2025

I am merging this PR because it seems to be in an approved state. Please feel free to create follow up comments/patches if there are anything un-addressed

Merged via the queue into onnx:main with commit 22a71d4 Feb 20, 2025
34 of 35 checks passed
@ramkrishna2910 ramkrishna2910 added the topic: operator Issues related to ONNX operators label May 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: operator Issues related to ONNX operators
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

7 participants