Skip to content

fix: multiply H by eta in manifold_muon#8

Open
Jah-yee wants to merge 1 commit into
thinking-machines-lab:mainfrom
Jah-yee:fix-eta-calculation
Open

fix: multiply H by eta in manifold_muon#8
Jah-yee wants to merge 1 commit into
thinking-machines-lab:mainfrom
Jah-yee:fix-eta-calculation

Conversation

@Jah-yee
Copy link
Copy Markdown

@Jah-yee Jah-yee commented Apr 15, 2026

Good day,

I noticed that in issue #1, there was a comment about the code forgetting the multiplication with eta when assembling H.

This PR fixes the issue by properly multiplying H by eta in the manifold_muon function, ensuring the tangent constraint metric is correctly scaled by the learning rate.

Changes

  • src/manifold_muon.py: Changed "H = W.T @ A + A.T @ W" to "H = eta * (W.T @ A + A.T @ W)"

This addresses the concern raised in issue #1 about the missing eta multiplication in the H calculation.

Thank you for your work on this excellent library!

Warmly,
RoomWithOutRoof

This addresses the issue where the eta learning rate was not being applied to the tangent constraint metric H calculation.
@Jah-yee
Copy link
Copy Markdown
Author

Jah-yee commented Apr 15, 2026

Good day,

I wanted to drop by and encourage you on this PR! The fix looks clean and addresses the eta multiplication issue precisely. Having the tangent constraint metric correctly scaled by the learning rate is important for the manifold optimization.

This PR seems ready to land - the fix is straightforward and the motivation is clear from issue #1. Hope to see it merged soon!

Thank you for your work on this excellent library!

Warmly,
RoomWithOutRoof

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.

1 participant