Commit f30a3b1
authored
Qualcomm AI Engine Direct - Streaming Mimi Enablement (#10570)
### Summary
Stateless(Static) Streaming Mimi Decoder Enablement.
#### Scripts to run
1. Run `examples/models/moshi/mimi/install_requirements.sh`, manually
change `pip install moshi==0.2.3` for this since we are currently
building static mimi decoder on top of `0.2.3` version
2. Run the example script
- CPU Encoder with QNN Decoder
`python examples/qualcomm/oss_scripts/moshi/mimi.py -b build-android -s
$DEVICE -m SM8650 --use_cpu_encoder`
- QNN Encoder/Decoder
`python examples/qualcomm/oss_scripts/moshi/mimi.py -b build-android -s
$DEVICE -m SM8650`
#### Stats for SM8650
- SQNR Scores Improvement after Streaming Mode Enablement
- CPU Encoder with QNN Decoder: 4.7 -> 7.8
- QNN Encoder/Decoder: 0.46 -> 0.88
- Encoder: 3.0ms/chunk
- Decoder: 5.9ms/chunk
#### Follow ups
- Add README
- UT and Community CI enablement
- Inference Speed Optimization
- Accuracy Improvement1 parent e42dafc commit f30a3b1
File tree
14 files changed
+2136
-212
lines changed- backends/qualcomm
- _passes
- tests
- examples/qualcomm
- oss_scripts/moshi
- model
- runner
14 files changed
+2136
-212
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
102 | | - | |
| 102 | + | |
| 103 | + | |
103 | 104 | | |
104 | 105 | | |
105 | 106 | | |
| |||
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| 43 | + | |
| 44 | + | |
43 | 45 | | |
44 | 46 | | |
45 | 47 | | |
46 | 48 | | |
| 49 | + | |
47 | 50 | | |
48 | 51 | | |
49 | 52 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
998 | 998 | | |
999 | 999 | | |
1000 | 1000 | | |
| 1001 | + | |
| 1002 | + | |
| 1003 | + | |
| 1004 | + | |
| 1005 | + | |
| 1006 | + | |
| 1007 | + | |
| 1008 | + | |
| 1009 | + | |
1001 | 1010 | | |
1002 | 1011 | | |
1003 | 1012 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1072 | 1072 | | |
1073 | 1073 | | |
1074 | 1074 | | |
| 1075 | + | |
| 1076 | + | |
| 1077 | + | |
| 1078 | + | |
| 1079 | + | |
| 1080 | + | |
1075 | 1081 | | |
1076 | 1082 | | |
1077 | 1083 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
96 | 99 | | |
97 | 100 | | |
98 | 101 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
0 commit comments