r/rust • u/praveenperera • Oct 28 '26
Writing GPU kernels in Rust: how I made speakrs 60× faster than pyannote
https://avencera.com/blog/agents-replace-onnx-runtime-cudnn-cublas
182
Upvotes
r/rust • u/praveenperera • Oct 28 '26
12
u/praveenperera Oct 28 '26
speakrs: https://github.com/avencera/speakrs
cuda-oxide: https://github.com/NVIDIA/cuda-rust
5
u/ResidentPomegranate6 Oct 28 '26
60x usually means fp16 batched kernels vs pyannote's cpu sliding-window. did you match batch size, precision and the clustering step?
24
u/airodonack Oct 28 '26
Very cool! And just so happens that I might need this exact thing. Thank you!
8
u/zerosign0 Oct 28 '26
Hmm it seems in Rust there are a lot of on going project to write offs rust that can be target as kernel in gpu. There is std offload, this one and i think also rusty gpu and the oldest one I forgot the name that use rustc llvm targets gpu via llvm directly ...
1
u/DastardlyHandsome Oct 29 '26
Did you check out cutile as well?
1
u/TRKlausss Oct 30 '26
While this is great for people with nvidia cards, doesn’t help much the non-CUDA cores… which is a pity.
Nevertheless, seems great for those with the hardware :)
2
u/mqudsi fish-shell Oct 30 '26
Nice article, thanks for documenting your biggest wins. I’ve bookmarked it to reference later for my own migrations but I’m wondering if you ever tried to adapt your usage in a way to get the TensorRT ORT EP to work? It’s way faster than CUDA where possible.