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

Can I use this lib with onnx but without libtorch? #419

Open
Andreybest opened this issue Sep 19, 2023 · 1 comment
Open

Can I use this lib with onnx but without libtorch? #419

Andreybest opened this issue Sep 19, 2023 · 1 comment

Comments

@Andreybest
Copy link

Hey! I trying to do some task with t5 model. But the issue is that I can't put 600mb of libtorch in my project.
Question: Is it possible in this lib to use onnx without downloading libtorch?
Thanks!

@guillaume-be
Copy link
Owner

Hello @Andreybest ,

Unfortunately the torch dependency is still needed by the library as we use it for the pre/post-processing operations. Making the dependency optional would require re-writing a ndarray (or other) version of all the pipelines. This represents a significant amount of work (especially for the text generation pipelines) and I am not sure to have the capacity in the near future.

Would you be willing to work on such a conversion?

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