mhc-algorithm - Implement mHC for stabilizing deep network training
Implement Manifold-Constrained Hyper-Connections using doubly stochastic matrices via Sinkhorn-Knopp algorithm to stabilize deep network training.
Tags
Updated: 2026-09-14Capabilities
Typical Inputs
Typical Outputs
What this skill does
- Implement HyperConnections module
- Apply Sinkhorn-Knopp algorithm
- Wrap attention and MLP layers
- Constrain residual mixing matrices
Inputs
- Input tensor
- Branch module
- Sinkhorn hyper-parameters
Outputs
- Mixed output tensor
- Doubly stochastic matrix
Requirements
- PyTorch
- einops
- numpy
