2025-09-07 14:59:17 +08:00
# Fusion Operators (CSRC)
2025-09-17 23:09:20 +08:00
High-performance CUDA kernels for accelerating model training, with specialized support for multimodal and MoE architectures.
2025-09-07 14:59:17 +08:00
## Operators
### Asymmetric Dual Expert GEMM
- `asym_dual_gmm` : Simultaneous matrix multiplication for two experts
- Supports all transpose combinations (NN, TN, NT, TT)
### Token Permutation
- `permute` : Token permutation for MoE routing
2025-09-11 13:18:33 +08:00
- `unpermute` : Token recovery after expert computation
2025-09-07 14:59:17 +08:00
- `unpermute_bwd` : Backward pass for token recovery
### Multimodal RoPE
- `rope` : Rotary Position Embedding forward pass
- `rope_bwd` : RoPE backward pass
2025-09-17 23:09:20 +08:00
- `rope_index` : Generates position indices for multimodal RoPE
- `rot_pos_emb` : Fused rotary position embedding computation
### Vision Transformer Optimization
- `get_window_index` : Window attention index generation
2025-09-07 14:59:17 +08:00
## Acknowledgments
2025-09-11 13:18:33 +08:00
The `permute` and `unpermute` operators are adapted from [fanshiqing/grouped_gemm ](https://github.com/fanshiqing/grouped_gemm ). Thanks for their open-source contributions.