disk icon indicating copy to clipboard operation
disk copied to clipboard

Tensor RT

Open YJonmo opened this issue 2 years ago • 2 comments
trafficstars

Hi there,

Thanks for this great work.

Is there any tensor RT version of the weights available?

Regards, Jacob

YJonmo avatar Nov 08 '23 21:11 YJonmo

Hi, thanks for the kind words. I have not created any such conversion. If I were to, how would I start? I know TensorRT is a DNN acceleration framework, but do I convert it somehow automatically or?

jatentaki avatar Nov 08 '23 21:11 jatentaki

It could be a few lines of code depending on the model design. Sometimes it might not be straightforward, for example when using operations such as torch.einsum or have if statements in the model.

You could directly create the TensorRT version using this library. Alternatively, you could convert the torch weights to ONNX and then to TRT format as described here.

YJonmo avatar Nov 08 '23 21:11 YJonmo