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

[DRAFT][compiler] Support RmsNorm Op and Fuse #13967

Closed
wants to merge 24 commits into from

Conversation

seockho-kim
Copy link
Contributor

To support LLM,

  • Added RmsNorm Op to circle format
  • RmsNorm fuse , kernel implemented.

ONE-DCO-1.0-Signed-off-by: seockho.kim [email protected]

@seockho-kim seockho-kim added the DRAFT A draft issue or PR for sharing one's current working status and discussion. label Sep 10, 2024
@seockho-kim seockho-kim changed the title [compiler] Support RmsNorm Op and Fuse DRAFT: [compiler] Support RmsNorm Op and Fuse Sep 10, 2024
@seockho-kim seockho-kim changed the title DRAFT: [compiler] Support RmsNorm Op and Fuse [DRAFT][compiler] Support RmsNorm Op and Fuse Sep 10, 2024
@seockho-kim
Copy link
Contributor Author

For #13964

@seanshpark
Copy link
Contributor

Great work!

Overall codes looks OK. Reviewers will take a deeper reading with each PRs. Let's begin posting PRs :)

  • single module per PR
  • single context of change per PR

would be nice.

@@ -623,6 +624,7 @@ union BuiltinOptions {
BCQGatherOptions = 252,
BCQFullyConnectedOptions = 253,
InstanceNormOptions = 254,
RmsNormOptions = 255,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use 250, instead of 255.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay, I'll update it.
ref) RightShiftOptions = 126, so we have 100+ rooms.

@@ -48,6 +48,7 @@ class CONSTANT:
'fuse_instnorm',
'fuse_prelu',
'fuse_gelu',
'fuse_rmsnorm',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you exclude this option in O1? Our backend compiler is not ready for this change.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, I couldn't think of that.
I'll update it :)

@seockho-kim
Copy link
Contributor Author

Done

@seockho-kim seockho-kim deleted the rmsnorm branch September 27, 2024 09:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DRAFT A draft issue or PR for sharing one's current working status and discussion.
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

4 participants