Kernels and test data
Collection
Prebuilt CUDA kernels and reference outputs of the fastforks parity tests. โข 2 items โข Updated
How to use fastforks/kernels-renamed with Kernels:
# !pip install kernels
from kernels import get_kernel
# a version (or an explicit revision) is required; see the "Files and versions" tab for the available ones
kernel = get_kernel("fastforks/kernels-renamed", version=1)Prebuilt CUDA kernels of the fastforks mode="kernels" backends, one file per
library, build and GPU architecture. fastforks downloads them on demand and checks each against the SHA-256 in the
library's manifest.toml; nothing here is loaded without that check.
Our kernel code is Apache-2.0 (LICENSE). Libraries built against CUTLASS headers also contain CUTLASS code
(BSD-3-Clause, see THIRD_PARTY_NOTICES.md). The toolkit and host compiler of every build are in its manifest.
| library | build | CUDA | targets | licence | derived from |
|---|---|---|---|---|---|
cfs |
ef8fd8e49913 | 12.8 | sm_80, sm_86, sm_89, sm_90, sm_100, sm_120, compute_80 | Apache-2.0 | our FoundationStereo-cfs fork (commit c5adca8): the C-FoundationStereo-S disparity transformer kernels tao_qkv / tao_post (our code, no NVIDIA code) |
crestereo |
4e3c00b2d395 | 12.8 | sm_80, sm_86, sm_89, sm_90, sm_100, sm_120, compute_80 | Apache-2.0 | our CREStereo fast path (pinned/CREStereo ad18c8c, nets/cre_kernels.cu: agcl_corr); flow_pack new |
cudnn_hacc |
ce970bd18524 | 12.8 | sm_80, sm_86, sm_89, sm_90, sm_100, sm_120, compute_80 | Apache-2.0 | our ctypes wrapper of the cuDNN 9 backend API (fp16-accumulate convs); uses the libcudnn torch ships |
cutlass_conv |
988138e042cb | 12.8 | sm_80, sm_86, sm_89, sm_90, sm_100, sm_120, compute_80 | Apache-2.0 AND BSD-3-Clause | our RAFT-Stereo / IGEV forks; compiled against CUTLASS v4.7.1 headers (BSD-3-Clause) |
deform_conv |
a38662ea1bfc | 12.8 | sm_80, sm_86, sm_89, sm_90, sm_100, sm_120, compute_80 | Apache-2.0 | new: fused modulated deformable convolution (implicit GEMM, WMMA); math of mmdetection's modulated_deform_conv as used by AANet |
dpt_fused |
415b13f0e87b | 12.8 | sm_80, sm_86, sm_89, sm_90, sm_100, sm_120, compute_80 | Apache-2.0 AND BSD-3-Clause | our mono-depth fork (attempt/trtgap 2171802: mfs_fused.cu, mono_kernels.cu), itself from our classification-CNN / RAFT-Stereo kernels; compiled against CUTLASS v4.7.1 headers (BSD-3-Clause) |
fastbb |
7d058322634d | 12.8 | sm_80, sm_86, sm_89, sm_90, sm_100, sm_120, compute_80 | Apache-2.0 | fastbb (our backbone kernels, Apache-2.0, export fastbb): flash attention for head_dim 64, NHWC instance norm, the in-place DINOv3 q / k RoPE, the Restormer LayerNorm / depthwise / GELU-gate kernels (fastbb.normconv, fastbb.fused); the DINOv2 flash attention follows the usual online-softmax scheme. win_rpe_attn: the fused window attention of our NMRF fork (nmrf_kernels.cu, our code) |
ffs_cutlass |
645e15d6e6ee | 12.8 | sm_80, sm_86, sm_89, sm_90, sm_100, sm_120, compute_80 | Apache-2.0 AND BSD-3-Clause | our Fast-FoundationStereo fork (attempt/trtgap c9f070b, csrc/ffs_fused.cu; conv from fastbb /); compiled against CUTLASS v4.7.1 headers (BSD-3-Clause) |
fs |
f6f8de2cca1e | 12.8 | sm_80, sm_86, sm_89, sm_90, sm_100, sm_120, compute_80 | Apache-2.0 | our FoundationStereo fork (cuda-kernels 683f110), written from our own RAFT / IGEV kernels; no NVIDIA code |
fs_cutlass |
de5f3c10aa1b | 12.8 | sm_80, sm_86, sm_89, sm_90, sm_100, sm_120, compute_80 | Apache-2.0 AND BSD-3-Clause | our FoundationStereo fork (cuda-kernels 683f110), written from our RAFT / IGEV kernels; compiled against CUTLASS v4.7.1 headers (BSD-3-Clause) |
fvm_conv |
f1d064e539e1 | 13.0 | sm_80, sm_86, sm_89, sm_90, sm_100, sm_120, compute_80 | Apache-2.0 AND BSD-3-Clause | fast-vision-models classification/fast/csrc/fused_conv.cu ; compiled against CUTLASS v4.7.1 headers (BSD-3-Clause) |
fvm_conv |
eb4940b53381 | 12.8 | sm_80, sm_86, sm_89, sm_90, sm_100, sm_120, compute_80 | Apache-2.0 AND BSD-3-Clause | fast-vision-models classification/fast/csrc/fused_conv.cu ; compiled against CUTLASS v4.7.1 headers (BSD-3-Clause) |
fvm_extra |
3208ce525a91 | 12.8 | sm_80, sm_86, sm_89, sm_90, sm_100, sm_120, compute_80 | Apache-2.0 | fast-vision-models classification/fast/csrc/extra.cu |
fvm_mb |
720dd3f29bf7 | 12.8 | sm_80, sm_86, sm_89, sm_90, sm_100, sm_120, compute_80 | Apache-2.0 | fast-vision-models classification/fast/csrc/mbconv.cu |
fvm_r3 |
f54eb890e23c | 12.8 | sm_80, sm_86, sm_89, sm_90, sm_100, sm_120, compute_80 | Apache-2.0 | fast-vision-models classification/fast/csrc/r3.cu |
fvm_seg |
739693dff3b4 | 12.8 | sm_80, sm_86, sm_89, sm_90, sm_100, sm_120, compute_80 | Apache-2.0 | fast-vision-models segmentation/fast/seg_kernels.cu : msda_self_h, ln_gather_h, gather_add_ln_h |
hitnet |
45145b49dcb1 | 12.8 | sm_80, sm_86, sm_89, sm_90, sm_100, sm_120, compute_80 | Apache-2.0 | our HITNet fork (hitnet-official efe9fb7, kernels.cu): level-init cost + argmin, tile SAD, refinement warp SAD; fastforks: first convolution / transposed convolution of the feature head |
hitnet_conv |
e5637e8a93cf | 12.8 | sm_80, sm_86, sm_89, sm_90, sm_100, sm_120, compute_80 | Apache-2.0 AND BSD-3-Clause | our HITNet fork (hitnet-official efe9fb7, csrc/fused_conv.cu; from fastbb); compiled against CUTLASS v4.7.1 headers (BSD-3-Clause) |
igev |
f075827d68c6 | 12.8 | sm_80, sm_86, sm_89, sm_90, sm_100, sm_120, compute_80 | Apache-2.0 | our IGEV fork (cuda-kernels 25aeee1): kernels for IGEV-family layers; defom_lookup (DEFOM-Stereo fork 0bd7847); act codes silu/gelu (WAFT-Stereo fork 8dec350) |
igevpp |
df1bb4dbe09a | 13.0 | sm_80, sm_86, sm_89, sm_90, sm_100, sm_120, compute_80 | Apache-2.0 | new for fastforks (IGEV++ / GREAT-IGEV kernels paths); geo_lookup8 extends igev's geo_lookup |
mocha |
757b90f1dbe1 | 13.0 | sm_80, sm_86, sm_89, sm_90, sm_100, sm_120, compute_80 | Apache-2.0 | our MoCha-Stereo fork (08b4e31): lstm_gates |
mvsanywhere |
7fdcb3aafdd8 | 12.8 | sm_80, sm_86, sm_89, sm_90, sm_100, sm_120, compute_80 | Apache-2.0 | our MVSAnywhere fork (mvsanywhere-opt 496243b, fast_cv.cu): fused cost volume and stem pooling, our code (no Niantic / Adobe code); MLP weights moved from module constants to a by-value kernel parameter |
patchmatchnet |
e73cbaa02d34 | 12.8 | sm_80, sm_86, sm_89, sm_90, sm_100, sm_120, compute_80 | Apache-2.0 | our PatchmatchNet fork (patchmatchnet-opt a2c2c1a, pmn_kernels.cu): fused warp + group correlation + view weighting + similarity MLP, adaptive aggregation + softmax regression + confidence, hypothesis perturbation + propagation + sort; our code (no upstream PatchmatchNet code); torch-extension launchers replaced by extern "C" entry points |
raft |
9524a68234cc | 12.8 | sm_80, sm_86, sm_89, sm_90, sm_100, sm_120, compute_80 | Apache-2.0 | our RAFT-Stereo fork (cuda-kernels branch): kernels for RAFT-Stereo layers |
s2m2 |
73d0d3fa70d2 | 12.8 | sm_80, sm_86, sm_89, sm_90, sm_100, sm_120, compute_80 | Apache-2.0 | our S2M2 kernels fork (s2m2-general): kernels for S2M2 layers |
s2m2_cutlass |
3aec99821257 | 13.0 | sm_80, sm_86, sm_89, sm_90, sm_100, sm_120, compute_80 | Apache-2.0 AND BSD-3-Clause | our S2M2 / IGEV-general forks; compiled against CUTLASS v4.7.1 headers (BSD-3-Clause) |
seg_conv |
8eec95783e28 | 12.8 | sm_80, sm_86, sm_89, sm_90, sm_100, sm_120, compute_80 | Apache-2.0 AND BSD-3-Clause | fast-vision-models classification/fast/csrc/fused_conv.cu (as fvm_conv) with the dilation of our segmentation fork (segx_conv.cu); compiled against CUTLASS v4.7.1 headers (BSD-3-Clause) |
seg_up |
3e44e71200cd | 12.8 | sm_80, sm_86, sm_89, sm_90, sm_100, sm_120, compute_80 | Apache-2.0 | fastforks (own code); after fast-vision-models segmentation/fast/seg_kernels.cu : up_argmax_h |
sparse_conv |
2feb2d5e0877 | 12.8 | sm_80, sm_86, sm_89, sm_90, sm_100, sm_120, compute_80 | Apache-2.0 | our code: fp16 submanifold 3x3x3 conv (gather implicit GEMM over a neighbour table, tiles of voxels sorted by neighbour mask as in FlexGEMM's masked implicit GEMM), neighbour tables and LayerNorm + SiLU for MoGe-3's sparse refiner (no FlexGEMM or NVIDIA code) |
stereo_ops |
899b54f4a755 | 12.8 | sm_80, sm_86, sm_89, sm_90, sm_100, sm_120, compute_80 | Apache-2.0 | fastforks (written for the LAS2 / CoEx kernels paths): correlation cost volume, depthwise line convolutions |
vggt_omega |
b8fa01afd00c | 12.8 | sm_80, sm_86, sm_89, sm_90, sm_100, sm_120, compute_80 | Apache-2.0 | our VGGT-Omega fork (vggt-omega-opt attempt/fast 6a78bb5, vggt_omega/fast_kernels.py): the Triton LayerNorm fp32 -> fp16, residual add + LayerNorm and in-place q/k LayerNorm + 2D RoPE + softmax-scale kernels, rewritten in CUDA C with extern "C" entry points; our code (no upstream VGGT-Omega code) |