gsnn.gsnn.models.GroupRMSNorm
- class gsnn.gsnn.models.GroupRMSNorm(*args: Any, **kwargs: Any)[source]
Bases:
ModuleApplies Root Mean Square normalization within each channel group.
RMSNorm normalizes using only the RMS (root mean square) without mean centering, making it simpler and more stable than layer normalization, especially for small batch sizes.
- Parameters:
Methods
__init__(channel_groups[, eps, affine])forward(x)Normalize by group RMS; accepts
(B, C)or(B, C, 1).