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

How to improve the performance of gemm_half_q_half_gptq_kernel operator? #297

Open
lovelynight opened this issue Jan 24, 2024 · 1 comment

Comments

@lovelynight
Copy link

On the A100 graphics card, gptq's custom operator has been tested and is slower than pytorch's linear layer when batch > 10, thus affecting the throughput of high concurrency during model inference. I tried to modify the hyperparameters in q_gemm, but there was no obvious improvement. I would like to ask if there are any ideas to improve the speed of high concurrency? Thanks

@turboderp
Copy link
Member

turboderp commented Jan 24, 2024

I am working on some improvements, yes, specifically for batch sizes around 5-30, but the improvements should also make it easier to adjust kernel parameters to optimize for other architectures. I'm not sure when I'll have anything ready, though.

(Basically the issue is that the kernel becomes compute-bound at higher batch sizes, and the solution is likely going to be tensor cores.)

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