nemo_automodel.components.optim.muown_triton
nemo_automodel.components.optim.muown_triton
Fused local Muown row operations; Newton-Schulz and collectives stay in Muown.
Only contiguous FP32 local tensors with complete input-feature axes use these kernels. Matrix batches and output-neuron shards are independent. Public DTensor ownership and autograd version counters remain the optimizer’s responsibility.
Module Contents
Functions
Data
API
Apply direction/magnitude updates, normalize and decay local weights.
Tensor inputs follow _prepare’s contiguous local-row contract. Update is BF16 with weight’s shape; direction is FP32 with that shape. All other tensors are FP32 with magnitude’s row shape. Weight, magnitude, norm and both moments are mutated in place; direction/update/gradients are preserved. Scale must be computed from the GLOBAL matrix shape, including on FSDP output shards. LR and bias corrections are runtime scalars.
Prepare complete local rows and mutate momentum.
Parameters:
Contiguous FP32 CUDA […, output, input], or […, input, output] when transposed. Leading dimensions batch independent matrices; the input axis must be complete on this rank.
Same shape/dtype/device/layout as weight, preserved.
Same shape/dtype/device/layout as weight, updated in place.
Contiguous FP32 tensor with the input axis reduced to 1.
Same shape/layout as magnitude; direction norms.
Whether output neurons occupy the final physical axis.
Momentum coefficient.
Signed magnitude division guard.
Whether to use Nesterov momentum.
Returns: Tensor
Independent direction (FP32), update (BF16), and magnitude-gradient
Check local dtype/strides and the bounded row-reduction footprint.