🚀[FEA]: Make `Mlp` layer normalization type configurable
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
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.
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.
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.
This issue was closed because it has been inactive for 14 days since being marked as stale.