mhc-algorithm - Manifold-Constrained Hyper-Connections for Deep Networks
Implement mHC to stabilize deep network training using doubly stochastic matrices via the Sinkhorn-Knopp algorithm.
Tags
Updated: 2026-09-14Capabilities
Typical Inputs
Typical Outputs
What this skill does
- Implement Sinkhorn-Knopp algorithm
- Project matrices to doubly stochastic
- Build PyTorch HyperConnections module
- Wrap attention and MLP layers
Inputs
- Input tensor
- HyperConnections parameters
Outputs
- Transformed output tensor
Requirements
- torch
- einops
- numpy
