late-interaction-kernels
late-interaction-kernels copied to clipboard
Fused Triton kernels for late-interaction (MaxSim) scoring
Follow-up from #100 (Tony's review). #100 made the dense forward/backward autotune key invariant to mask/argmax *presence* by (a) dropping `has_q_mask`/`has_d_mask` from the named key and (b) using dtype-matched placeholders for...
## Background `prune_forward` in [`late_interaction_kernels/_autotune.py`](https://github.com/hcompai/late-interaction-kernels/blob/main/late_interaction_kernels/_autotune.py) estimates each candidate config's shared-memory footprint as: \`\`\`python need = (bq * d + bd * d) * 2 + bq * bd * 4...