kempnerforge.training.orthogonalize

Exact Newton-Schulz orthogonalization of sharded matrices for Muon.

Functions

orthogonalize_exact(params, updates, ...)

Orthogonalize each update as its full matrix; a collective over every rank.

kempnerforge.training.orthogonalize.orthogonalize_exact(params, updates, newton_schulz)[source]

Orthogonalize each update as its full matrix; a collective over every rank.

Parameters:
Return type:

list[torch.Tensor]