Pre-Alpha Release
Pre-release
Pre-release
Morphottention v0.1.0
First public release: Mathematical Morphology-based self-attention for PyTorch, built around a Flash-style fused CUDA kernel
Pre-Alpha. The forward pass is implemented and usable for inference; the backward pass has not yetbeen implemented.
Highlights
- Fused forward kernel : morphological hypercube attention computed in a single Flash-style streaming pass (online softmax, no materialized score matrix).
MorphoAttentionnn.Module: drop-in attention layer with learnable projection, per-head gates, and value projection.- Functional & autograd API :
morpho_attention(...)andMorphoAttentionFunctionfor lower-level use. - GPU support : kernels compiled for
sm_90,sm_100, andsm_120(Hopper / Blackwell).