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

[AArch64] Quantized MatMul performance improvement #2536

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

bgergely0
Copy link

This change implements an new matmul based on Armv8.6 i8mm instructions. As the change requires a nightly compiler, using the more performant version is optional, under the new arm-nightly-feat feature flag.

I have also added the Armv8.4 dotprod instructions under this flag.

Performance improvement:

  • +10% with only dotprod enabled (measured on LLaMa2)
  • +40-60% for i8mm based matmul (measured on quantized Whisper, different cores produced different results)

    - implement Neon i8mm based matmul
    - using i8mm intrinsics requires a nightly compiler,
    so the change is added under the feature flag 'arm-nightly-feat'
    - also added vdotq under the same feature flag
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

Successfully merging this pull request may close these issues.

1 participant