Skip to content

Enable the mmt4d ukernel by default in llvm-cpu - #15586

Closed
bjacob wants to merge 2 commits into
iree-org:mainfrom
bjacob:ukernel-default-mmt4d
Closed

bjacob wants to merge 2 commits into
iree-org:mainfrom
bjacob:ukernel-default-mmt4d

Conversation

@bjacob

@bjacob bjacob commented Nov 14, 2023 •

Copy link
Copy Markdown
Collaborator

(This PR temporarily folds #16890, making it look big).

Spreadsheet presenting data from the benchmarks run on #16890:
https://docs.google.com/spreadsheets/d/1w0nG0-uQ2Z0H1dXkS-vaf5xC26GMZLM1g7Nb_kJe61U/edit?usp=sharing

Summary (speedup of DT+UK vs DT-only across all IREE CI benchmarks on CPU, both x86-64 and arm64):

Statistic Speedup (x)
Geometric mean 1.63
0-th percentile (min) 0.96
10-th percentile 1.00
20-th percentile 1.01
50-th percentile (median) 1.23
80-th percentile 2.90
90-th percentile 3.82
100-th percentile (max) 10.27

Following #15571, it is now a 1-line change to change the defaults for which microkernel lowerings we enable as an internal implementation detail, without any change to users' command lines.

This PR changes the default from none to mmt4d, meaning that we enable the ukernel lowering for mmt4d ops and nothing else (other things could be appended in the future, this is a comma-separated list).

This is for now just to help the discussion on DT-by-default, #15256 . This is saying, if the last thing preventing DT-by-default is currently suboptimal codegen for mmt4d ops, we can enable UK for mmt4d so that doesn't affect the default path anymore.

benchmark-extra: x86_64-dt-only, android-cpu-dt-only

@bjacob

bjacob commented Nov 14, 2023

Copy link
Copy Markdown
Collaborator Author

@benvanik

Copy link
Copy Markdown
Collaborator

really like how this is on the attribute so that each CPU target can also independently control this without the need for global flags - slick!

@MaheshRavishankar

Copy link
Copy Markdown
Collaborator

This seems good to land for me!

@bjacob
bjacob marked this pull request as ready for review November 14, 2023 16:30
@bjacob

bjacob commented Nov 14, 2023

Copy link
Copy Markdown
Collaborator Author

Let's discuss this along with #15256 in the "Mai-Tai sync" meeting 30 min from now.

@bjacob

bjacob commented Nov 14, 2023 •

Copy link
Copy Markdown
Collaborator Author

@dcaballe Are you OK with this going in? (Note it doesn't do anything unless mmt4d ops exist in the IR, which they don't unless data-tiling, and this isn't enabling data-tiling by default).

@bjacob

bjacob commented Nov 14, 2023

Copy link
Copy Markdown
Collaborator Author

Discussed with @dcaballe on Discord: https://discord.com/channels/689900678990135345/1146173056537079919/1174050447347155015 . Let's wait until DT-by-default is ublocked except perhaps by this, to revisit this.

@hanhanW

hanhanW commented Dec 7, 2023

Copy link
Copy Markdown
Contributor

Discussed with @dcaballe on Discord: https://discord.com/channels/689900678990135345/1146173056537079919/1174050447347155015 . Let's wait until DT-by-default is ublocked except perhaps by this, to revisit this.

DT is turned on by default, let's revisit the mmt4d ukernel enablement on default?

@dcaballe

dcaballe commented Dec 7, 2023

Copy link
Copy Markdown
Contributor

DT is turned on by default, let's revisit the mmt4d ukernel enablement on default?

If I can be honest, we are still recovering from the DT enablement so I would appreciate some slack :). We are still dealing with some DT issues and catching up with the work that DT enablement has put on hold (e.g., multi-level tiling and distribution improvements). Prioritizing those landings would be highly appreciated.

I think the two missing features for UK enablement that I can think of are: 1) DT enablement for cases where a UK is not available and, 2) Fall back to performant non-DT path when no efficient UK is available. I think we already have Issues for those so we can look at this once they have been addressed.

@MaheshRavishankar

Copy link
Copy Markdown
Collaborator

DT is turned on by default, let's revisit the mmt4d ukernel enablement on default?

If I can be honest, we are still recovering from the DT enablement so I would appreciate some slack :). We are still dealing with some DT issues and catching up with the work that DT enablement has put on hold (e.g., multi-level tiling and distribution improvements). Prioritizing those landings would be highly appreciated.

That make sense... lets just put this on the docket for the next year. But IMO data tiling without ukernels was a harder lift to land than data tiling + ukernels together. The former had more chances of regressions (and I think we hit a few of those) than the latter which is what was being developed. Those two are decoupled, but they have been evaluated together, so ideally I would have liked to do both, and done data-tiling without ukernels as follow-up. But kudos to everyone for making it happen.

I think the two missing features for UK enablement that I can think of are: 1) DT enablement for cases where a UK is not available and, 2) Fall back to performant non-DT path when no efficient UK is available. I think we already have Issues for those so we can look at this once they have been addressed.

This is a good point. We need to figure out a way for the compiler to know what configuration is backed by ukernels and what is not. Right now if we turn on ukernels for mmt4d, the ones dont really have a ukernel will take a slow path, that is very slow (but having that fallback is great for functionality and robustness, so thats great!). We should find a way to avoid falling into that slow path in ukernels and instead fall back to at least lowering through vector dialect for mmt4d operations (I think it would be too late to go back and undo DT, the layering does not work that way).
@bjacob maybe you have some ideas for this?

@dcaballe

dcaballe commented Dec 8, 2023

Copy link
Copy Markdown
Contributor

The former had more chances of regressions (and I think we hit a few of those) than the latter which is what was being developed

It is surprising but given the existing issues that we have opened against DT and UK, we only have one model (GPT2) that slightly benefit from UK both on x86 and Arm. This is obviously a temporary situation but it kind of illustrates that we still have some work to do on UK and also on settling DT properly.

But kudos to everyone for making it happen.

  • 1! I think this has been a great exercise to understand where the performance is coming from and the existing limitations of the approach.

(I think it would be too late to go back and undo DT, the layering does not work that way).

It would be good to give this a thought as well as this is the level of optionality that we have been discussing in the DT RFC that would be needed.

@MaheshRavishankar

Copy link
Copy Markdown
Collaborator

The former had more chances of regressions (and I think we hit a few of those) than the latter which is what was being developed

It is surprising but given the existing issues that we have opened against DT and UK, we only have one model (GPT2) that slightly benefit from UK both on x86 and Arm. This is obviously a temporary situation but it kind of illustrates that we still have some work to do on UK and also on settling DT properly.

This is strange... Overwhelmingly I have seen DT and UK be order of magnitude better. So it might be better to take a broader view of things. The benchmarks tracked by Marie also seem to show that... There will always be work to do, but needs to be balanced against alternatives

But kudos to everyone for making it happen.

  • 1! I think this has been a great exercise to understand where the performance is coming from and the existing limitations of the approach.

(I think it would be too late to go back and undo DT, the layering does not work that way).

It would be good to give this a thought as well as this is the level of optionality that we have been discussing in the DT RFC that would be needed.

That kind of leaking of information all the way to flow is detrimental. I don't think that is the way to approach it. If we don't have microkernels, then we just vectorize and lower like a normal linalg operation.

@bjacob bjacob added benchmarks:x86_64 Run default x86_64 benchmarks benchmarks:android-cpu Run default Android CPU benchmarks labels Apr 9, 2024
@bjacob
bjacob force-pushed the ukernel-default-mmt4d branch from 686db78 to 5215079 Compare April 9, 2024 01:50
@bjacob bjacob changed the title Enable the mmt4d ukernel by default Enable the mmt4d ukernel by default in llvm-cpu Apr 9, 2024
@bjacob
bjacob marked this pull request as draft April 9, 2024 02:17
@github-actions

github-actions Bot commented Apr 9, 2024

Copy link
Copy Markdown

Abbreviated Benchmark Summary

@ commit 0eeb1c801c5c54f9a723f321a041998e27364e14 (vs. base ab949ef6d787fb7292302f71f5ce039543fe3a6f)

Data-Tiling Comparison Table

Click to show
Name No-DT (baseline) DT-Only DT-UK
BertForMaskedLMTF(stablehlo) [x86_64-cascadelake-linux_gnu-llvm_cpu] local_task(embedded_elf)[30-thread,full-inference,default-flags] with default @ c2-standard-60[cpu] 226.635 (1.0X) 135.046 (1.7X) 106.011 (2.1X)
BertLargePTBatch1(linalg) [x86_64-cascadelake-linux_gnu-llvm_cpu] local_task(embedded_elf)[30-thread,full-inference,default-flags] with default @ c2-standard-60[cpu] 656.703 (1.0X) 271.582 (2.4X) 226.411 (2.9X)
BertLargeTF(stablehlo) [x86_64-cascadelake-linux_gnu-llvm_cpu] local_task(embedded_elf)[30-thread,full-inference,default-flags] with default @ c2-standard-60[cpu] 674.562 (1.0X) 276.644 (2.4X) 225.814 (3.0X)
DeepLabV3_fp32(tflite) [x86_64-cascadelake-linux_gnu-llvm_cpu] local_task(embedded_elf)[8-thread,full-inference,default-flags] with default @ c2-standard-60[cpu] 6.956 (1.0X) 9.374 (0.7X) 8.620 (0.8X)
DeepLabV3_fp32(tflite) [x86_64-cascadelake-linux_gnu-llvm_cpu] local_task(embedded_elf)[1-thread,full-inference,default-flags] with default @ c2-standard-60[cpu] 32.309 (1.0X) 38.897 (0.8X) 33.366 (1.0X)
EfficientNetV2STF(stablehlo) [x86_64-cascadelake-linux_gnu-llvm_cpu] local_task(embedded_elf)[15-thread,full-inference,default-flags] with default @ c2-standard-60[cpu] 34.686 (1.0X) 36.824 (0.9X) 33.983 (1.0X)
EfficientNetV2STF(stablehlo) [x86_64-cascadelake-linux_gnu-llvm_cpu] local_task(embedded_elf)[1-thread,full-inference,default-flags] with default @ c2-standard-60[cpu] 265.931 (1.0X) 261.946 (1.0X) 230.629 (1.2X)
EfficientNet_int8(tflite) [x86_64-cascadelake-linux_gnu-llvm_cpu] local_task(embedded_elf)[8-thread,full-inference,default-flags] with default @ c2-standard-60[cpu] 5.924 (1.0X) 11.175 (0.5X) 5.244 (1.1X)
EfficientNet_int8(tflite) [x86_64-cascadelake-linux_gnu-llvm_cpu] local_task(embedded_elf)[1-thread,full-inference,default-flags] with default @ c2-standard-60[cpu] 28.660 (1.0X) 53.450 (0.5X) 15.328 (1.9X)
Falcon7bGptqPT(linalg) [x86_64-cascadelake-linux_gnu-llvm_cpu] local_task(embedded_elf)[30-thread,full-inference,default-flags] with default @ c2-standard-60[cpu] 20355.680 (1.0X) 9605.360 (2.1X) 4152.895 (4.9X)
Falcon7bInt4GptqPT(linalg) [x86_64-cascadelake-linux_gnu-llvm_cpu] local_task(embedded_elf)[30-thread,full-inference,default-flags] with default @ c2-standard-60[cpu] 20456.656 (1.0X) 9917.969 (2.1X) 4041.965 (5.1X)
GPT2_117M_TF_1X1XI32(stablehlo) [x86_64-cascadelake-linux_gnu-llvm_cpu] local_task(embedded_elf)[15-thread,full-inference,default-flags] with default @ c2-standard-60[cpu] 8.968 (1.0X) 8.837 (1.0X) 8.724 (1.0X)
GPT2_117M_TF_1X1XI32(stablehlo) [x86_64-cascadelake-linux_gnu-llvm_cpu] local_task(embedded_elf)[1-thread,full-inference,default-flags] with default @ c2-standard-60[cpu] 70.312 (1.0X) 37.969 (1.9X) 38.623 (1.8X)
GPT2_117M_TF_1X4XI32(stablehlo) [x86_64-cascadelake-linux_gnu-llvm_cpu] local_task(embedded_elf)[15-thread,full-inference,default-flags] with default @ c2-standard-60[cpu] 10.742 (1.0X) 7.698 (1.4X) 8.044 (1.3X)
GPT2_117M_TF_1X4XI32(stablehlo) [x86_64-cascadelake-linux_gnu-llvm_cpu] local_task(embedded_elf)[1-thread,full-inference,default-flags] with default @ c2-standard-60[cpu] 85.634 (1.0X) 41.483 (2.1X) 39.784 (2.2X)
MiniLML12H384Uncased(stablehlo) [x86_64-cascadelake-linux_gnu-llvm_cpu] local_task(embedded_elf)[15-thread,full-inference,default-flags] with default @ c2-standard-60[cpu] 12.228 (1.0X) 14.701 (0.8X) 12.807 (1.0X)
MiniLML12H384Uncased(stablehlo) [x86_64-cascadelake-linux_gnu-llvm_cpu] local_task(embedded_elf)[1-thread,full-inference,default-flags] with default @ c2-standard-60[cpu] 78.410 (1.0X) 79.166 (1.0X) 58.106 (1.3X)
MobileBertSquad_fp16(tflite) [x86_64-cascadelake-linux_gnu-llvm_cpu] local_task(embedded_elf)[15-thread,full-inference,default-flags] with default @ c2-standard-60[cpu] 34.523 (1.0X) 63.809 (0.5X) 59.238 (0.6X)
MobileBertSquad_fp16(tflite) [x86_64-cascadelake-linux_gnu-llvm_cpu] local_task(embedded_elf)[1-thread,full-inference,default-flags] with default @ c2-standard-60[cpu] 180.591 (1.0X) 247.707 (0.7X) 186.238 (1.0X)
MobileBertSquad_fp32(tflite) [x86_64-cascadelake-linux_gnu-llvm_cpu] local_task(embedded_elf)[15-thread,full-inference,default-flags] with default @ c2-standard-60[cpu] 34.305 (1.0X) 64.063 (0.5X) 59.793 (0.6X)
MobileBertSquad_fp32(tflite) [x86_64-cascadelake-linux_gnu-llvm_cpu] local_task(embedded_elf)[1-thread,full-inference,default-flags] with default @ c2-standard-60[cpu] 179.911 (1.0X) 248.250 (0.7X) 188.364 (1.0X)
MobileBertSquad_int8(tflite) [x86_64-cascadelake-linux_gnu-llvm_cpu] local_task(embedded_elf)[15-thread,full-inference,default-flags] with default @ c2-standard-60[cpu] 61.513 (1.0X) 219.846 (0.3X) 65.555 (0.9X)
MobileBertSquad_int8(tflite) [x86_64-cascadelake-linux_gnu-llvm_cpu] local_task(embedded_elf)[1-thread,full-inference,default-flags] with default @ c2-standard-60[cpu] 481.720 (1.0X) 1046.763 (0.5X) 216.629 (2.2X)
MobileNetV1_fp32(tflite) [x86_64-cascadelake-linux_gnu-llvm_cpu] local_task(embedded_elf)[8-thread,full-inference,default-flags] with default @ c2-standard-60[cpu] 5.473 (1.0X) 5.720 (1.0X) 5.088 (1.1X)
MobileNetV1_fp32(tflite) [x86_64-cascadelake-linux_gnu-llvm_cpu] local_task(embedded_elf)[1-thread,full-inference,default-flags] with default @ c2-standard-60[cpu] 27.617 (1.0X) 24.619 (1.1X) 19.823 (1.4X)
MobileNetV2_fp32(tflite) [x86_64-cascadelake-linux_gnu-llvm_cpu] local_task(embedded_elf)[8-thread,full-inference,default-flags] with default @ c2-standard-60[cpu] 3.688 (1.0X) 5.302 (0.7X) 4.944 (0.7X)
MobileNetV2_fp32(tflite) [x86_64-cascadelake-linux_gnu-llvm_cpu] local_task(embedded_elf)[1-thread,full-inference,default-flags] with default @ c2-standard-60[cpu] 11.817 (1.0X) 15.576 (0.8X) 12.595 (0.9X)
MobileNetV2_int8(tflite) [x86_64-cascadelake-linux_gnu-llvm_cpu] local_task(embedded_elf)[8-thread,full-inference,default-flags] with default @ c2-standard-60[cpu] 5.721 (1.0X) 9.860 (0.6X) 5.554 (1.0X)
MobileNetV2_int8(tflite) [x86_64-cascadelake-linux_gnu-llvm_cpu] local_task(embedded_elf)[1-thread,full-inference,default-flags] with default @ c2-standard-60[cpu] 21.510 (1.0X) 44.604 (0.5X) 13.988 (1.5X)
MobileNetV3Small_fp32(tflite) [x86_64-cascadelake-linux_gnu-llvm_cpu] local_task(embedded_elf)[1-thread,full-inference,default-flags] with default @ c2-standard-60[cpu] 2.894 (1.0X) 3.944 (0.7X) 3.200 (0.9X)
MobileNetV3Small_fp32(tflite) [x86_64-cascadelake-linux_gnu-llvm_cpu] local_sync(embedded_elf)[full-inference,default-flags] with default @ c2-standard-60[cpu] 2.793 (1.0X) 3.843 (0.7X) 3.307 (0.8X)
MobileSSD_fp32(tflite) [x86_64-cascadelake-linux_gnu-llvm_cpu] local_task(embedded_elf)[8-thread,full-inference,default-flags] with default @ c2-standard-60[cpu] 8.365 (1.0X) 10.525 (0.8X) 9.506 (0.9X)
MobileSSD_fp32(tflite) [x86_64-cascadelake-linux_gnu-llvm_cpu] local_task(embedded_elf)[1-thread,full-inference,default-flags] with default @ c2-standard-60[cpu] 34.531 (1.0X) 40.069 (0.9X) 32.752 (1.1X)
PersonDetect_int8(tflite) [x86_64-cascadelake-linux_gnu-llvm_cpu] local_task(embedded_elf)[1-thread,full-inference,default-flags] with default @ c2-standard-60[cpu] 0.781 (1.0X) 1.436 (0.5X) 0.747 (1.0X)
PersonDetect_int8(tflite) [x86_64-cascadelake-linux_gnu-llvm_cpu] local_sync(embedded_elf)[full-inference,default-flags] with default @ c2-standard-60[cpu] 0.711 (1.0X) 1.364 (0.5X) 0.667 (1.1X)
PoseNet_fp32(tflite) [x86_64-cascadelake-linux_gnu-llvm_cpu] local_task(embedded_elf)[8-thread,full-inference,default-flags] with default @ c2-standard-60[cpu] 4.161 (1.0X) 5.979 (0.7X) 5.286 (0.8X)
PoseNet_fp32(tflite) [x86_64-cascadelake-linux_gnu-llvm_cpu] local_task(embedded_elf)[1-thread,full-inference,default-flags] with default @ c2-standard-60[cpu] 17.824 (1.0X) 25.724 (0.7X) 21.053 (0.8X)
matmul_1x256x2048_i8_i4_i32_tile_config_default(linalg) [x86_64-cascadelake-linux_gnu-llvm_cpu] local_sync(embedded_elf)[full-inference,default-flags] with default @ c2-standard-60[cpu] 0.065 (1.0X) 0.065 (1.0X) 0.065 (1.0X)
matmul_1x256x2048_i8_i8_i32_tile_config_default(linalg) [x86_64-cascadelake-linux_gnu-llvm_cpu] local_sync(embedded_elf)[full-inference,default-flags] with default @ c2-standard-60[cpu] 0.042 (1.0X) 0.226 (0.2X) 0.021 (2.0X)
matmul_256x256x2048_i8_i4_i32_tile_config_default(linalg) [x86_64-cascadelake-linux_gnu-llvm_cpu] local_sync(embedded_elf)[full-inference,default-flags] with default @ c2-standard-60[cpu] 7.411 (1.0X) 7.373 (1.0X) 7.433 (1.0X)
matmul_256x256x2048_i8_i8_i32_tile_config_default(linalg) [x86_64-cascadelake-linux_gnu-llvm_cpu] local_sync(embedded_elf)[full-inference,default-flags] with default @ c2-standard-60[cpu] 6.661 (1.0X) 13.247 (0.5X) 1.965 (3.4X)
DeepLabV3_fp32(tflite) [armv8.2-a-generic-linux_android29-llvm_cpu] local_sync(embedded_elf)[full-inference,default-flags] with default @ pixel-6-pro[big-cores] 48.914 (1.0X) 79.553 (0.6X) 78.753 (0.6X)
DeepLabV3_fp32(tflite) [armv8.2-a-generic-linux_android29-llvm_cpu] local_task(embedded_elf)[1-thread,full-inference,system-scheduling] with default @ pixel-6-pro[big-cores] 51.203 (1.0X) 79.768 (0.6X) 78.939 (0.6X)
DeepLabV3_fp32(tflite) [armv8.2-a-generic-linux_android29-llvm_cpu] local_task(embedded_elf)[2-thread,full-inference,system-scheduling] with default @ pixel-6-pro[big-cores] 31.353 (1.0X) 46.448 (0.7X) 45.985 (0.7X)
GPT2_117M_TF_1X1XI32(stablehlo) [armv8.2-a-generic-linux_android29-llvm_cpu] local_sync(embedded_elf)[full-inference,default-flags] with default @ pixel-6-pro[big-cores] 93.177 (1.0X) 22.352 (4.2X) 21.286 (4.4X)
GPT2_117M_TF_1X1XI32(stablehlo) [armv8.2-a-generic-linux_android29-llvm_cpu] local_task(embedded_elf)[1-thread,full-inference,system-scheduling] with default @ pixel-6-pro[big-cores] 93.389 (1.0X) 22.329 (4.2X) 21.893 (4.3X)
GPT2_117M_TF_1X1XI32(stablehlo) [armv8.2-a-generic-linux_android29-llvm_cpu] local_task(embedded_elf)[2-thread,full-inference,system-scheduling] with default @ pixel-6-pro[big-cores] 52.485 (1.0X) 22.298 (2.4X) 21.916 (2.4X)
GPT2_117M_TF_1X4XI32(stablehlo) [armv8.2-a-generic-linux_android29-llvm_cpu] local_sync(embedded_elf)[full-inference,default-flags] with default @ pixel-6-pro[big-cores] 125.911 (1.0X) 28.417 (4.4X) 27.174 (4.6X)
GPT2_117M_TF_1X4XI32(stablehlo) [armv8.2-a-generic-linux_android29-llvm_cpu] local_task(embedded_elf)[1-thread,full-inference,system-scheduling] with default @ pixel-6-pro[big-cores] 126.634 (1.0X) 30.271 (4.2X) 29.613 (4.3X)
GPT2_117M_TF_1X4XI32(stablehlo) [armv8.2-a-generic-linux_android29-llvm_cpu] local_task(embedded_elf)[2-thread,full-inference,system-scheduling] with default @ pixel-6-pro[big-cores] 78.092 (1.0X) 26.441 (3.0X) 26.444 (3.0X)
MobileBertSquad_fp32(tflite) [armv8.2-a-generic-linux_android29-llvm_cpu] local_sync(embedded_elf)[full-inference,default-flags] with default @ pixel-6-pro[big-cores] 712.583 (1.0X) 372.840 (1.9X) 363.774 (2.0X)
MobileBertSquad_fp32(tflite) [armv8.2-a-generic-linux_android29-llvm_cpu] local_task(embedded_elf)[1-thread,full-inference,system-scheduling] with default @ pixel-6-pro[big-cores] 723.407 (1.0X) 374.087 (1.9X) 371.936 (1.9X)
MobileBertSquad_fp32(tflite) [armv8.2-a-generic-linux_android29-llvm_cpu] local_task(embedded_elf)[2-thread,full-inference,system-scheduling] with default @ pixel-6-pro[big-cores] 406.617 (1.0X) 227.645 (1.8X) 225.233 (1.8X)
MobileBertSquad_int8(tflite) [armv8.2-a-generic-linux_android29-llvm_cpu] local_sync(embedded_elf)[full-inference,default-flags] with default @ pixel-6-pro[big-cores] 1061.616 (1.0X) 626.977 (1.7X) 259.572 (4.1X)
MobileBertSquad_int8(tflite) [armv8.2-a-generic-linux_android29-llvm_cpu] local_task(embedded_elf)[1-thread,full-inference,system-scheduling] with default @ pixel-6-pro[big-cores] 1061.657 (1.0X) 625.381 (1.7X) 258.404 (4.1X)
MobileBertSquad_int8(tflite) [armv8.2-a-generic-linux_android29-llvm_cpu] local_task(embedded_elf)[2-thread,full-inference,system-scheduling] with default @ pixel-6-pro[big-cores] 558.895 (1.0X) 348.707 (1.6X) 152.618 (3.7X)
Vit_int8(tflite) [armv8.2-a-generic-linux_android29-llvm_cpu] local_sync(embedded_elf)[full-inference,default-flags] with default @ pixel-6-pro[big-cores] 2090.197 (1.0X) 1083.513 (1.9X) 309.442 (6.8X)
Vit_int8(tflite) [armv8.2-a-generic-linux_android29-llvm_cpu] local_task(embedded_elf)[1-thread,full-inference,system-scheduling] with default @ pixel-6-pro[big-cores] 2090.146 (1.0X) 1085.309 (1.9X) 312.955 (6.7X)
Vit_int8(tflite) [armv8.2-a-generic-linux_android29-llvm_cpu] local_task(embedded_elf)[2-thread,full-inference,system-scheduling] with default @ pixel-6-pro[big-cores] 1138.967 (1.0X) 608.266 (1.9X) 187.405 (6.1X)
matmul_1x256x2048_i8_i4_i32_tile_config_default(linalg) [armv8.2-a-generic-linux_android29-llvm_cpu] local_sync(embedded_elf)[full-inference,default-flags] with default @ pixel-6-pro[big-cores] 0.081 (1.0X) 0.069 (1.2X) 0.016 (5.0X)
matmul_1x256x2048_i8_i8_i32_tile_config_default(linalg) [armv8.2-a-generic-linux_android29-llvm_cpu] local_sync(embedded_elf)[full-inference,default-flags] with default @ pixel-6-pro[big-cores] 0.072 (1.0X) 0.065 (1.1X) 0.017 (4.2X)
matmul_256x256x2048_i8_i4_i32_tile_config_default(linalg) [armv8.2-a-generic-linux_android29-llvm_cpu] local_sync(embedded_elf)[full-inference,default-flags] with default @ pixel-6-pro[big-cores] 12.116 (1.0X) 10.073 (1.2X) 1.417 (8.5X)
matmul_256x256x2048_i8_i8_i32_tile_config_default(linalg) [armv8.2-a-generic-linux_android29-llvm_cpu] local_sync(embedded_elf)[full-inference,default-flags] with default @ pixel-6-pro[big-cores] 16.535 (1.0X) 6.802 (2.4X) 1.187 (13.9X)

Regressed Latencies 🚩

Benchmark Name Average Latency (ms) Median Latency (ms) Latency Standard Deviation (ms)
MobileNetV1\_fp32(tflite) [x86\_64-cascadelake-linux\_gnu-llvm\_cpu][experimental-flags,no-dt] local\_task(embedded\_elf)[1-thread,full-inference,default-flags] with default @ c2-standard-60[cpu] 27.617 (vs. 26.419, 4.53%↑) 27.635 0.306

Improved Latencies 🎉

Benchmark Name Average Latency (ms) Median Latency (ms) Latency Standard Deviation (ms)
GPT2\_117M\_TF\_1X4XI32(stablehlo) [armv8.2-a-generic-linux\_android29-llvm\_cpu][experimental-flags,dt-only] local\_task(embedded\_elf)[1-thread,full-inference,system-scheduling] with default @ pixel-6-pro[big-cores] 30.271 (vs. 32.702, 7.43%↓) 30.596 1.056
matmul\_1x256x2048\_i8\_i8\_i32\_tile\_config\_default(linalg) [armv8.2-a-generic-linux\_android29-llvm\_cpu][experimental-flags,no-dt] local\_sync(embedded\_elf)[full-inference,default-flags] with default @ pixel-6-pro[big-cores] 0.072 (vs. 0.078, 6.79%↓) 0.073 0.001
DeepLabV3\_fp32(tflite) [armv8.2-a-generic-linux\_android29-llvm\_cpu][experimental-flags,dt-only] local\_task(embedded\_elf)[2-thread,full-inference,system-scheduling] with default @ pixel-6-pro[big-cores] 46.448 (vs. 49.767, 6.67%↓) 46.869 1.210

[Top 3 out of 14 results showed]

Improved Total Dispatch Sizes 🎉

Benchmark Name Total Dispatch Size (bytes)
PoseNet\_fp32(tflite) [x86\_64-cascadelake-linux\_gnu-llvm\_cpu][default-flags,dt-uk,compile-stats] 39760 (vs. 55840, 28.80%↓)
PoseNet\_fp32(tflite) [x86\_64-cascadelake-linux\_gnu-llvm\_cpu][experimental-flags,dt-only,compile-stats] 78416 (vs. 84064, 6.72%↓)
BertLargeTF(stablehlo) [x86\_64-cascadelake-linux\_gnu-llvm\_cpu][experimental-flags,dt-only,compile-stats] 72256 (vs. 76272, 5.27%↓)

For more information:

Source Workflow Run

@bjacob bjacob closed this Apr 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

benchmarks:android-cpu Run default Android CPU benchmarks benchmarks:x86_64 Run default x86_64 benchmarks

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants