Faster versions of published vision models behind one API. With optional custom kernels for even bigger speedup - kleinicke/fastforks
2 comments
kleinicke30 minutes ago
I ported more than 600 model configurations to a faster PyTorch version. To further speed it up, I added custom CUDA kernels.
Popular models like depth anything 3 are this way 5 times faster, while requiring only 40% of the memory. Segment Anything 3 is 2.4 times faster or dinov3-vitl16 is 3.4 times faster. Most models get a speedup in the range 3-5x.
All models also have comfyui nodes, are tested at Windows and Linux and even have a MLX port to run faster on Apple devices. ONNX and TensorRT export works for all models, that are not blocked by bugs within TensorRT. The Custom CUDA Kernels often offer similar speed like TensorRT without the drawback that you need to compile it beforehand for a given image size. They get downloaded when required and don’t require additional installed libraries. The required memory is also often smaller with library than with tensorrt.
xyzmrm10 minutes ago
Impressive work. Nice to see Metal kernels and Windows x86-64 included alongside Linux CUDA instead of being Linux-only, seems like a lot of work though.
Read the full thread on Hacker News →
Related stories
- Hacker News · 7 points · 2 months ago
- Hacker News · 2 points · 1 day ago
- Eye Computer: Turning Vision into a Programmable Computerhumanfactorylab.comLobsters · 2 points · over 6 years ago
- Hacker News · 186 points · 2 months ago
- Hacker News · 1 points · 31 minutes ago
- Hacker News · 2 points · 2 months ago