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

Attempt to SIMD-ify dequantize_row_q4_0() for ARM_NEON #502

Merged
merged 2 commits into from
Mar 25, 2023

Conversation

ggerganov
Copy link
Member

Any ideas what's wrong in this computation?

Printing the numbers seem quite OK, but the results are garbage.
It works with the scalar code below and the AVX SIMD code above.

Test command:

make clean && make -j && ./main -m ./models/7B/ggml-model-q4_0.bin -p "I believe the meaning of life is" -c 512 -n 64 -s 12 -b 10 -t 8

@ggerganov ggerganov merged commit face808 into simple-mul_mat Mar 25, 2023
@ggerganov ggerganov deleted the arm-deq-q4_0 branch March 25, 2023 17:31
ggerganov added a commit that referenced this pull request Mar 25, 2023
* Retire the ggml_mul_mat() for transposed src0

- It can always be made contiguous with ggml_cpy()
- The code is now simplified
- The results are deterministic in respect to num threads

* SIMD-ify dequantize_row_q4_0() for ARM_NEON (#502)

* Attempt to SIMD-ify dequantize_row_q4_0() for ARM_NEON

* Fix dequantization - forgot to interleave the quants
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