Commit 7549347
Amal Augustine Jose
Update to ALP: Vision LLM inference on Android with KleidiAI and MNN
1. Fixed inconsistency of using both Qwen2.5-VL-3B and Qwen2-VL-2B, which could confuse the user.
2. Fixed the broken optional section on how to quantize a model locally. Two original issues:
a. It used Qwen2-VL-2B while the pre-quantized model was Qwen2.5-VL-3B.
b. Even with the wrong model, the steps resulted in a model that produced gibberish.
c. The following changes were made to get local quantization working:
i. Switched from symmetric quantization → asymmetric quantization.
ii. Switched from per-channel quantization → block quantization (block size = 64).
d. Updated deprecated huggingface-cli download -> hf download.
3. Updated to use llmexport from PyPI rather than the Git repo (which has since been updated).
4. Added a recommendation to use a Python virtual environment.
5. Added a wrapper recommendation as a workaround for an issue with llmexport.1 parent 2254ab3 commit 7549347
File tree
3 files changed
+38
-12
lines changed- content/learning-paths/mobile-graphics-and-gaming/vision-llm-inference-on-android-with-kleidiai-and-mnn
3 files changed
+38
-12
lines changedLines changed: 36 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
49 | 55 | | |
50 | 56 | | |
51 | 57 | | |
| |||
72 | 78 | | |
73 | 79 | | |
74 | 80 | | |
75 | | - | |
| 81 | + | |
76 | 82 | | |
77 | 83 | | |
78 | 84 | | |
| |||
81 | 87 | | |
82 | 88 | | |
83 | 89 | | |
84 | | - | |
85 | | - | |
86 | | - | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
87 | 98 | | |
88 | | - | |
89 | 99 | | |
| 100 | + | |
| 101 | + | |
90 | 102 | | |
91 | | - | |
92 | | - | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
93 | 119 | | |
| 120 | + | |
94 | 121 | | |
95 | 122 | | |
96 | 123 | | |
97 | 124 | | |
98 | 125 | | |
99 | 126 | | |
100 | | - | |
101 | | - | |
| 127 | + | |
102 | 128 | | |
103 | 129 | | |
104 | 130 | | |
105 | | - | |
| 131 | + | |
106 | 132 | | |
107 | 133 | | |
108 | 134 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
0 commit comments