2 comments

  • kleinicke3 hours 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.<p>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.<p>The complete list of all the models and their speedups you can get here: fastforks.dev&#x2F;models
    • xyzmrm2 hours 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.
      • kleinicke2 hours ago
        Thanks, all last week I was also working on MLX ports, since with MLX the networks often require less memory on MacOS. The metal kernels on top of the MLX port are properly nice, but often only allow a few percent of speedups.