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

Is it possible to use int8 for other task? #29

Closed
haritsahm opened this issue Sep 3, 2022 · 1 comment
Closed

Is it possible to use int8 for other task? #29

haritsahm opened this issue Sep 3, 2022 · 1 comment

Comments

@haritsahm
Copy link

haritsahm commented Sep 3, 2022

From your paper and blog post, the quantization was tested using transformers. Is it possible to use the library for objet detection models and will it experience performance degradation?

@TimDettmers
Copy link
Collaborator

I have not tested this, but it should be possible for vision transformers. I known already from data that vision transformers behave the very same in terms of outliers than language model transformers. As such, I think it will work.

However, it will not straightforwardly work for convolutional networks, since the current implementation just supports the replacement of torch.nn.Linear layers and not convolutional layers with the 8-bit equivalent.

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