Skip to content

Use NNX default epsilon for RMSNorm in unet_jax - #10

Draft
ahsanMah wants to merge 1 commit into
jax-dreamsfrom
worktree-rmsnorm-eps2
Draft

Use NNX default epsilon for RMSNorm in unet_jax#10
ahsanMah wants to merge 1 commit into
jax-dreamsfrom
worktree-rmsnorm-eps2

Conversation

@ahsanMah

Copy link
Copy Markdown
Owner

Removes the RMS_NORM_EPS = 1e-5 constant (carried over for MLX parity) from mini-dreamer/unet_jax.py, so every nnx.RMSNorm uses flax NNX's default 1e-6. Also drops the now-stale docstring note.

Verified: ConvResBlock3D / CrossAttention / FeedForward instantiate with epsilon=1e-06 and a ConvResBlock3D forward pass runs.

🤖 Generated with Claude Code

Drops the RMS_NORM_EPS=1e-5 constant (an MLX-parity holdover) so all
RMSNorm layers use flax NNX's 1e-6 default.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.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.

1 participant