f16-f32acc-approxgelu for WebAssembly and native#10403
Merged
Merged
Conversation
2d88d99 to
6da1c1c
Compare
3bfeee3 to
a4f3c69
Compare
```gemma4 12b on AMD Zen4 is 7.38% faster end to end Was scalar Inference (avg): 133760.34 ms (2 runs) 3.32% xnn_f16_vapproxgelu_ukernel__scalar_rational_6_4_div_u4 Now avx512skx Inference (avg): 124561.43 ms (2 runs) 0.03% xnn_f16_f32acc_vapproxgelu_ukernel__avx512f_rational_6_4_div_u32 ``` | Architecture | Status | Details | | :---------------- | :------- | :------------------------------------ | | WASM relaxed SIMD | Added | New native FP16 and f32acc kernels. | | x86 avx512fp16 | Added | New native FP16 microkernel (u32). | | x86 avx512f | Added | New microkernel using f16_f32acc. | | x86 f16c | Added | New microkernel using f16_f32acc. | | Hexagon hvx | Added | New f16_f32acc microkernel (u128). | | ARM neonfp16 | Added | New fallback using f16_f32acc. | | RISC-V rvvfp16 | Improved | Increased loop unroll u2v to u8v. | | Fallback scalar | Improved | Switched to f16_f32acc for precision. | PiperOrigin-RevId: 930857873
a4f3c69 to
ff27209
Compare
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.
f16-f32acc-approxgelu for WebAssembly and native