Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tensor RT #24

Open
YJonmo opened this issue Nov 8, 2023 · 2 comments
Open

Tensor RT #24

YJonmo opened this issue Nov 8, 2023 · 2 comments

Comments

@YJonmo
Copy link

YJonmo commented Nov 8, 2023

Hi there,

Thanks for this great work.

Is there any tensor RT version of the weights available?

Regards,
Jacob

@jatentaki
Copy link
Collaborator

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?

@YJonmo
Copy link
Author

YJonmo commented Nov 8, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants