You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/learning-paths/mobile-graphics-and-gaming/voice-assistant/5-kleidiai.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -33,3 +33,4 @@ KleidiAI simplifies development by abstracting away low-level optimization: deve
33
33
34
34
As newer versions of the architecture become available, KleidiAI becomes even more powerful: simply updating the library allows applications like the multimodal Voice Assistant to take advantage of the latest architectural improvements such as SME2, without requiring any code changes. This means better performance on newer devices with no additional effort from developers.
35
35
36
+
Now that you can build the Voice Assistant with and without KleidiAI, you can test out the benchmarking functionality it provides.
The Voice Assistant application also provides a benchmark mode so you can easily test out the performance of an LLM model with a sample number of input and output tokens.
Copy file name to clipboardExpand all lines: content/learning-paths/mobile-graphics-and-gaming/voice-assistant/7-performance.md
+35-35Lines changed: 35 additions & 35 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,36 +2,14 @@
2
2
3
3
title: Performance
4
4
5
-
weight: 8
5
+
weight: 9
6
6
7
7
### FIXED, DO NOT MODIFY
8
8
9
9
layout: learningpathall
10
10
11
11
---
12
12
13
-
## Benchmarking
14
-
15
-
The Voice Assistant application also provides a benchmark mode so you can easily test out the performance of an LLM model with a sample number of input and output tokens.
To get benchmark numbers with use of SME kernels, you can rerun the full Benchmarking LLM on Android phone section without the -DMNN_SME2=OFF as SME kernels are enabled by default.
112
+
To get benchmark numbers with use of SME kernels, you can rerun the full Benchmarking LLM on Android phone section without using `MNN_SME` flag as follows, which will leave SME instructions enabled by default:
The Android system enforces throttling, so your own results may vary slightly.
140
140
{{% /notice %}}
141
141
142
-
These measurements show how fast the model processes (encodes) 128 input tokens when running on a single CPU thread. As the results illustrate, SME2 delivers a significant performance boost even when using just one CPU core on an Android phone, meaning faster processing without needing to involve multiple CPU cores.
142
+
These measurements show how fast the model processes (encodes) 128 input tokens when running on a single CPU thread. As the results illustrate, SME2 delivers a significant performance boost even when using just one or two CPU cores on an Android phone, meaning faster processing without needing to involve multiple CPU cores.
Copy file name to clipboardExpand all lines: content/learning-paths/mobile-graphics-and-gaming/voice-assistant/_index.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,9 @@ learning_objectives:
12
12
- Optimize performance of multimodal Voice Assistant using KleidiAI and SME2.
13
13
14
14
prerequisites:
15
-
- An Android phone that supports the i8mm Arm architecture feature (8-bit integer matrix multiplication). This Learning Path was tested on a Google Pixel 8 Pro.
15
+
- An Android phone that supports the i8mm Arm architecture feature (8-bit integer matrix multiplication).
16
+
- An Android phone with support for SME (Scalable Matrix Extension) instructions, required for SME performance checking
17
+
- This Learning Path was tested on a Vivo X300 Pro.
16
18
- A development machine with [Android Studio](https://developer.android.com/studio) installed.
0 commit comments