Repository navigation
Add AMX-INT8 optimizations of SynetDynamicQuantizedInnerProduct16bGemmV0 - #1129
Merged
Merged
Conversation
…t16bGemmV0. Co-authored-by: igor.ermolaev <igor.ermolaev@altezza.org>
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
Adds an AMX-INT8 implementation of
SynetDynamicQuantizedInnerProduct16bGemmV0and dispatches it ahead of AVX-512 VNNI._tile_dpbusdmicrokernels (32×32 output tiles), matchingAmxBf16::SynetDynamicQuantizedInnerProduct32fGemmV0. The last K chunk reuses that body, then dequantizes, adds bias, and applies the activation with AVX-512 (FP32 or BF16 output).M == 1stays on the AVX-512 VNNI kernel. The int32 accumulator is a separate buffer whose stride is rounded up to 32, and the AMX scratch buffer is allocated whenever it is reserved.Release notes for 8.0.167 and the VS2022 AMX project list the new sources. The 16b auto test now runs the AMX path.
Test
Release build with
-DSIMD_AMXBF16=ONon AMX-INT8 hardware:./Test -r=.. -fi=SynetDynamicQuantizedInnerProduct16bForward -tt=1 -ts=1Result: all tests finished successfully. On 333×555×444, AMX was about 1.4×–2.1× faster than AVX-512 VNNI (common time 0.155 ms vs 0.276 ms).