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 run an int8 quantized model on CUDA? #374

Open
shencuifeng opened this issue Mar 4, 2025 · 2 comments
Open

Can run an int8 quantized model on CUDA? #374

shencuifeng opened this issue Mar 4, 2025 · 2 comments

Comments

@shencuifeng
Copy link

shencuifeng commented Mar 4, 2025

I want to run a model on CUDA with actual int8 instructions instead of FakeQuantised float32 instructions, and enjoy the efficiency gains. It is slower when I set weights=qint8, activations=qint8 than weights=qint8.

@dacorvo
Copy link
Collaborator

dacorvo commented Mar 4, 2025

@shencuifeng this is because the cost of quantizing activations on the fly is not compensated by the faster int8 matmul, especially considering that the float x int8 matmul might benefit from an accelerated kernel depending on the float type.

@shencuifeng
Copy link
Author

@dacorvo Is it possible to support static quantize activations? It seems https://github.com/mit-han-lab/nunchaku static quantize the activations to int4.

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