FlashSinkhorn
FlashSinkhorn provides streaming entropic optimal-transport kernels for PyTorch and Triton. It computes squared-Euclidean Sinkhorn losses without materializing the full cost matrix. FlashSinkhorn 2 provides its multiscale, block-sparse method for large balanced 3-D point clouds, with forward costs and potentials.
Source code, documentation, and issues live in the GitHub repository: ot-triton-lab/flash-sinkhorn.
Usage
from kernels import get_kernel
flash_sinkhorn = get_kernel("yexf308/flash-sinkhorn", version=1)
loss = flash_sinkhorn.SamplesLoss(loss="sinkhorn", blur=0.1, debias=True)
The input tensors must be CUDA tensors and require PyTorch and Triton.
Links
- GitHub repository: https://github.com/ot-triton-lab/flash-sinkhorn
- FlashSinkhorn: https://arxiv.org/abs/2602.03067 (dense streaming kernels, ICML 2026 Oral)
- FlashSinkhorn 2: https://arxiv.org/abs/2610.02395 (multiscale method)
- Downloads last month
- -
triton
optimal-transport
sinkhorn
MIT
arxiv: 2602.03067
arxiv: 2610.02395
Supported hardwares new
CUDA
- Kernel Builder
- c212e38





