-
Notifications
You must be signed in to change notification settings - Fork 12.1k
vulkan: optimization proposals for coopmat1 mul_mm #12260
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
base: master
Are you sure you want to change the base?
Conversation
I did a quick run on RTX 4070 with coopmat2 disabled:
Only the IQ types show a real improvement, presumably from the LOAD_VEC_A changes. |
This is already the case, coopmat requires fp16 and that means the buffers will always be 16-bit floats. I think the commit doesn't change anything. |
@remyoudompheng Are you still around? Optimizing coopmat1 is a good idea, let's get this PR ready. |
This PR proposes several changes to speed up coopmat1 matrix multiplication.
It is tested only on RDNA3 currently. Feedback on other coopmat architectures is welcome.
The overall effect on performance seems to be around 25% on IQ2/IQ3 and 10% on QK
Performance on RDNA3 iGPU (780M)
Performance on prompt processing