Skip to content

Conversation

noobsiecoder
Copy link
Contributor

Description

Fixes #2585
Added PyTorch nn.RMSNorm to CoreML conversion by decomposing into primitive MIL operations.

Implementation

Decompose RMSNorm formula into mb composable functions:

  1. square
  2. reduce_mean
  3. add
  4. sqrt
  5. real_div
  6. mul

References

Checklist for Reviewer(s)

@junpeiz
Copy link
Collaborator

junpeiz commented Sep 9, 2025

Great! Will merge after getting a green CI: https://gitlab.com/coremltools1/coremltools/-/pipelines/2030304960

@junpeiz junpeiz self-requested a review September 10, 2025 02:28
@noobsiecoder
Copy link
Contributor Author

Hey @junpeiz, can I merge my changes to the main branch?

@junpeiz junpeiz merged commit 02450cf into apple:main Sep 10, 2025
@junpeiz
Copy link
Collaborator

junpeiz commented Sep 10, 2025

Hey @junpeiz, can I merge my changes to the main branch?

No worries! I already merged it. Thank you for your contributions!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

add torch.nn.RMSNorm fused op
2 participants