ONNX Tensorrt vs CUDA on Linux #2437
-
Hi guys !! I have question, I am in Archlinux with kernel 6.6 Should i use and what should be better with respect to the speed, Pytorch or ONNX for my gpu PD: I am using the last Nightly Version of chainner (V0.20.3-nightly.2024-01-02) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Tensorrt will tend to be the fastest, but if you're upscaling images of various sizes it'll be a lot slower due to having to constantly recompute the engine under a different size. So I only recommend it if you 1) have a lot of files, and 2) all the files are the same dimensions. Oh, and also enable FP16, becusse otherwise tensorrt tends to actually be slower than just using pytorch. Generally speaking though, pytorch is usually the recommended thing to use. But it's worth at least trying to use tensorrt since you seem to already have it set up correctly. |
Beta Was this translation helpful? Give feedback.
Yeah in that case I would just try using pytorch with FP16 enabled, with the tile size set to maximum.