Skip to content

Removing custom RMSNorm support #9966

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ThomasJannaud
Copy link
Contributor

@ThomasJannaud ThomasJannaud commented Apr 8, 2025

Summary:
In #9844, we were adding initial support for RMS norm for an input in 3 or 4 dimensions, and a weight of dimension 1 (same size as x[:-1])

We are pretty much reverting this diff, in favor of the existing aten.rms_norm

Differential Revision: D72484196

@ThomasJannaud ThomasJannaud requested a review from tarun292 as a code owner April 8, 2025 18:26
Copy link

pytorch-bot bot commented Apr 8, 2025

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/9966

Note: Links to docs will display an error until the docs builds have been completed.

❌ 1 New Failure, 9 Cancelled Jobs

As of commit 60fce8e with merge base 20c7047 (image):

NEW FAILURE - The following job has failed:

  • pull / unittest-arm / linux-job (gh)
    RuntimeError: Command docker exec -t f59f104aedcbcd0f365c67c20820020b6f510293ad0aa69fd87267f94c2e4956 /exec failed with exit code 1

CANCELLED JOBS - The following jobs were cancelled. Please retry:

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Apr 8, 2025
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D72484196

@ThomasJannaud
Copy link
Contributor Author

@pytorchbot label "topic: not user facing"

ThomasJannaud added a commit to ThomasJannaud/executorch that referenced this pull request Apr 8, 2025
…rch#9966)

Summary:

In D72014553, we were adding initial support for RMS norm for an input in 3 or 4 dimensions, and a weight of dimension 1 (same size as x[:-1])

In this diff, we allow for:
- input of arbitrary shape
- shape broadcasting of w (w must have dim <= 1)

Differential Revision: D72484196
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D72484196

ThomasJannaud added a commit to ThomasJannaud/executorch that referenced this pull request Apr 8, 2025
…rch#9966)

Summary:

In D72014553, we were adding initial support for RMS norm for an input in 3 or 4 dimensions, and a weight of dimension 1 (same size as x[:-1])

In this diff, we allow for:
- input of arbitrary shape
- shape broadcasting of w (w must have dim <= 1)

Differential Revision: D72484196
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D72484196

ThomasJannaud added a commit to ThomasJannaud/executorch that referenced this pull request Apr 8, 2025
…rch#9966)

Summary:

In D72014553, we were adding initial support for RMS norm for an input in 3 or 4 dimensions, and a weight of dimension 1 (same size as x[:-1])

In this diff, we allow for:
- input of arbitrary shape
- shape broadcasting of w (w must have dim <= 1)

Differential Revision: D72484196
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D72484196

ThomasJannaud added a commit to ThomasJannaud/executorch that referenced this pull request Apr 8, 2025
…rch#9966)

Summary:

In D72014553, we were adding initial support for RMS norm for an input in 3 or 4 dimensions, and a weight of dimension 1 (same size as x[:-1])

In this diff, we allow for:
- input of arbitrary shape
- shape broadcasting of w (w must have dim <= 1)

Differential Revision: D72484196
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D72484196

ThomasJannaud added a commit to ThomasJannaud/executorch that referenced this pull request Apr 8, 2025
…rch#9966)

Summary:
Pull Request resolved: pytorch#9966

In D72014553, we were adding initial support for RMS norm for an input in 3 or 4 dimensions, and a weight of dimension 1 (same size as x[:-1])

In this diff, we allow for:
- input of arbitrary shape
- shape broadcasting of w (w must have dim <= 1)

Differential Revision: D72484196
ThomasJannaud added a commit to ThomasJannaud/executorch that referenced this pull request Apr 9, 2025
…rch#9966)

Summary:

In D72014553, we were adding initial support for RMS norm for an input in 3 or 4 dimensions, and a weight of dimension 1 (same size as x[:-1])

In this diff, we allow for:
- input of arbitrary shape
- shape broadcasting of w (w must have dim <= 1)

Differential Revision: D72484196
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D72484196

ThomasJannaud added a commit to ThomasJannaud/executorch that referenced this pull request Apr 9, 2025
…rch#9966)

Summary:
Pull Request resolved: pytorch#9966

In D72014553, we were adding initial support for RMS norm for an input in 3 or 4 dimensions, and a weight of dimension 1 (same size as x[:-1])

In this diff, we allow for:
- input of arbitrary shape
- shape broadcasting of w (w must have dim <= 1)

Differential Revision: D72484196
ThomasJannaud added a commit to ThomasJannaud/executorch that referenced this pull request Apr 9, 2025
…rch#9966)

Summary:

In D72014553, we were adding initial support for RMS norm for an input in 3 or 4 dimensions, and a weight of dimension 1 (same size as x[:-1])

In this diff, we allow for:
- input of arbitrary shape
- shape broadcasting of w (w must have dim <= 1)

Differential Revision: D72484196
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D72484196

@ThomasJannaud ThomasJannaud changed the title Adding RMSNorm support to arbitrary x and normalized_dim shapes Removing custom RMSNorm support Apr 9, 2025
…rch#9966)

Summary:

In D72014553, we were adding initial support for RMS norm for an input in 3 or 4 dimensions, and a weight of dimension 1 (same size as x[:-1])

In this diff, we allow for:
- input of arbitrary shape
- shape broadcasting of w (w must have dim <= 1)

Reviewed By: Vysarat

Differential Revision: D72484196
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D72484196

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported topic: not user facing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants