Accelerate ternary v3.3 mask decoding with AVX2 and Arm NEON - #1
Open
dmangla3 wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
k=5..8)Apple M4 benchmark
Single-threaded v3.3 kernel latency for a 3200 x 8640 ternary matrix. Preprocessing is excluded. Each result is the median of 41 runs after 10 warmups.
The benchmark compiles the scalar comparison from the same source with
RSR_DISABLE_SIMDand verifies the two outputs before timing.max_abs_differencewas 0 for both recorded runs.These are shape- and hardware-specific kernel measurements, not end-to-end model throughput. Arm
k=4deliberately keeps the scalar mask walk because the SIMD table path did not improve latency at this production-sized shape.Verification
make -C kernels/bit_1_58/cpu clean allpython -m pytest -q tests/test_ternary_rsr.py(188 passed)python -m py_compile benchmarking/bit_1_58/bench_v3_3_simd.pygit diff --checkThe repository Linux workflow will additionally rebuild both CPU kernel families and run the complete test suite on AVX2.