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

Tracking: SIMD vec_dot in basic quantization formats #158

Open
5 of 11 tasks
flaneur2020 opened this issue Apr 8, 2024 · 0 comments
Open
5 of 11 tasks

Tracking: SIMD vec_dot in basic quantization formats #158

flaneur2020 opened this issue Apr 8, 2024 · 0 comments

Comments

@flaneur2020
Copy link
Collaborator

flaneur2020 commented Apr 8, 2024

now we've had simd optimization in Q8_0 and Q8_1, we can add more optimizations over the basic quantization formats (not include the K quants).

we can take a new approach on making SIMD optimizations:

  1. add a cross-platform SIMD optimization via stdsimd, and name it vec_dot_xxx_xxx_fallback, which offers a not too bad performance over different platforms.
  2. add a neon optimized vec_dot implementation, which optimized on apple silicon platform
  3. add a x86_64 platform with avx2

we do not need add platform specialized code in the quantize and dequantize part, using stdsimd or even plain rust loops is ok, it does not actually affect performance while comparing with a platform specialized impl.

@flaneur2020 flaneur2020 changed the title SIMD vec_dot in basic quantization formats Tracking: SIMD vec_dot in basic quantization formats Apr 8, 2024
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

1 participant