Skip to content

Commit 9d23c22

Browse files
authored
Add benchmark model script instructions
Added instructions for running the complete benchmark model script and verifying output files.
1 parent b47b9c4 commit 9d23c22

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

content/learning-paths/mobile-graphics-and-gaming/measure-kleidiai-kernel-performance-on-executorch/06-create-matrix-mul-model.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,18 @@ When exporting models, the **generate_etrecord** option is enabled to produce th
7777
These ETRecord files are essential for subsequent model analysis and performance evaluation.
7878
{{%/notice%}}
7979

80+
### Run the Complete Benchmark Model Script
81+
Instead of executing each export block manually, you can download and run the full matrix-multiply benchmark script.
82+
This script automatically builds and exports both FP16 and FP32 models, performing all necessary partitioning, lowering, and ETRecord generation.
83+
84+
```bash
85+
wget https://raw.githubusercontent.com/pareenaverma/arm-learning-paths/refs/heads/content_review/content/learning-paths/mobile-graphics-and-gaming/measure-kleidiai-kernel-performance-on-executorch/export-matrix-mul.py
86+
chmod +x export-matrix-mul.py
87+
python3 ./export-matrix-mul.py
88+
```
89+
90+
### Verify the output
91+
8092
After running this script, both the PTE model file and the etrecord file are generated.
8193

8294
``` bash
@@ -86,5 +98,6 @@ model/matrix_mul_pf16_gemm.pte
8698
model/matrix_mul_pf32_gemm.etrecord
8799
model/matrix_mul_pf32_gemm.pte
88100
```
101+
These files are the inputs for upcoming executor_runner benchmarks, where you’ll measure and compare KleidiAI micro-kernel performance.
89102

90103
The complete source code is available [here](../export-matrix-mul.py).

0 commit comments

Comments
 (0)