Skip to content

rmsNorm: document nil weight and add tests - #528

Merged
davidkoski merged 1 commit into
ml-explore:rms-norm-nilfrom
nwh:rms-norm-nil-docs-tests
Nov 17, 2026
Merged

davidkoski merged 1 commit into
ml-explore:rms-norm-nilfrom
nwh:rms-norm-nil-docs-tests

Conversation

@nwh

@nwh nwh commented Nov 12, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

- doc comments note that a nil weight applies no scaling and preserves the dtype of x
- add RMSNormTests covering nil weight vs reference / ones weight, dtype
  preservation (mlx-swift-lm#751), explicit weight, and gradients
@nwh nwh mentioned this pull request Nov 12, 2026
2 of 4 tasks
@nwh
nwh requested a review from davidkoski November 17, 2026 17:16

@davidkoski davidkoski left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good, thanks!

@davidkoski
davidkoski merged commit 9dbb668 into ml-explore:rms-norm-nil Nov 17, 2026
7 checks passed
davidkoski added a commit that referenced this pull request Nov 17, 2026
* rmsNorm allows nil weight

- see also ml-explore/mlx-swift-lm#754

* rmsNorm: document nil weight and add tests (#528)

- doc comments note that a nil weight applies no scaling and preserves the dtype of x
- add RMSNormTests covering nil weight vs reference / ones weight, dtype
  preservation (mlx-swift-lm#751), explicit weight, and gradients

---------

Co-authored-by: Nick Henderson <525247+nwh@users.noreply.github.com>
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.

2 participants