physicsnemo icon indicating copy to clipboard operation
physicsnemo copied to clipboard

🚀[FEA]: Make `Mlp` layer normalization type configurable

Open peterdsharpe opened this issue 9 months ago • 4 comments

Is this a new feature, an improvement, or a change to existing functionality?

Improvement

How would you describe the priority of this feature request

Low (would be nice)

Please provide a clear description of problem you would like to solve.

Currently, Mlp is hardcoded to use BatchNorm as the only type of normalization. It would be great to extend this to other norms, like LayerNorm (and possibly accept user-supplied norms, like those from TransformerEngine).

Stems from discussion here with @coreyjadams @laserkelvin: https://github.com/NVIDIA/physicsnemo/pull/1401#discussion_r2850009189

Describe any alternatives you have considered

No response

peterdsharpe avatar Feb 25 '26 17:02 peterdsharpe

This issue is stale because it has been open for 60 days with no activity. Remove the stale label or comment to keep it open, otherwise this will be closed in 14 days.

github-actions[bot] avatar May 03 '26 02:05 github-actions[bot]

Working on this — adding a configurable norm_layer to Mlp (LayerNorm, TE-aware norms via get_layer_norm_class(), and custom factories). Tests and PR coming shortly.

Thabhelo avatar Jun 06 '26 02:06 Thabhelo

This issue is stale because it has been open for 60 days with no activity. Remove the stale label or comment to keep it open, otherwise this will be closed in 14 days.

github-actions[bot] avatar Aug 09 '26 02:08 github-actions[bot]

This issue was closed because it has been inactive for 14 days since being marked as stale.

github-actions[bot] avatar Aug 30 '26 01:08 github-actions[bot]