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

Running this on mobile with pytorch mobile #60

Open
lee-hodg opened this issue Aug 10, 2022 · 1 comment
Open

Running this on mobile with pytorch mobile #60

lee-hodg opened this issue Aug 10, 2022 · 1 comment

Comments

@lee-hodg
Copy link

Is there anyway I can load the weights and "quantize" to reduce the size so I can run with pytorch mobile client side?

@laurahanu
Copy link
Collaborator

Hello,

Currently all our models are trained with full precision so reducing the precision only at inference time could be unsafe. However, it should be possible and the torch docs on quantization should be helpful.
We are planning to look more into a mobile version of Detoxify in the future, and of course, contributions are welcome!

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