Commit 47475ac
authored
fix(Vulkan): include integrated GPU memory (#516)
* fix(Vulkan): include integrated GPU memory - adapt to a change in `llama.cpp`
* fix(Vulkan): deduplicate the same device coming from different drivers
* fix: adapt Llama chat wrappers to breaking `llama.cpp` changes
* fix: internal log level
* docs(Vulkan): recommend installing LLVM on Windows1 parent 02805ee commit 47475acCopy full SHA for 47475ac
File tree
Expand file treeCollapse file tree
14 files changed
+192
-134
lines changedOpen diff view settings
Filter options
- docs/guide
- llama
- addon/globals
- gpuInfo
- src
- bindings
- chatWrappers
- test
- modelDependent/llama3.2
- standalone/chatWrappers
- utils
Expand file treeCollapse file tree
14 files changed
+192
-134
lines changedOpen diff view settings
Collapse file
+5Lines changed: 5 additions & 0 deletions
- Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
65 | 65 | |
66 | 66 | |
67 | 67 | |
| 68 | + |
| 69 | + |
| 70 | + |
| 71 | + |
| 72 | + |
68 | 73 | |
69 | 74 | |
70 | 75 | |
|
Collapse file
+1-1Lines changed: 1 addition & 1 deletion
- Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
204 | 204 | |
205 | 205 | |
206 | 206 | |
207 | | - |
| 207 | + |
208 | 208 | |
209 | 209 | |
210 | 210 | |
|
Collapse file
llama/addon/globals/getGpuInfo.cpp
Copy file name to clipboardExpand all lines: llama/addon/globals/getGpuInfo.cpp+4-3Lines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
27 | 27 | |
28 | 28 | |
29 | 29 | |
30 | | - |
| 30 | + |
| 31 | + |
31 | 32 | |
32 | 33 | |
33 | 34 | |
| ||
76 | 77 | |
77 | 78 | |
78 | 79 | |
79 | | - |
80 | | - |
| 80 | + |
| 81 | + |
81 | 82 | |
82 | 83 | |
83 | 84 | |
|
Collapse file
llama/gpuInfo/vulkan-gpu-info.cpp
Copy file name to clipboardExpand all lines: llama/gpuInfo/vulkan-gpu-info.cpp+95-2Lines changed: 95 additions & 2 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1 | 1 | |
| 2 | + |
2 | 3 | |
3 | 4 | |
4 | 5 | |
5 | 6 | |
| 7 | + |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | + |
6 | 12 | |
7 | 13 | |
8 | | - |
| 14 | + |
9 | 15 | |
10 | 16 | |
11 | | - |
| 17 | + |
| 18 | + |
12 | 19 | |
| 20 | + |
| 21 | + |
13 | 22 | |
| 23 | + |
| 24 | + |
| 25 | + |
| 26 | + |
| 27 | + |
| 28 | + |
| 29 | + |
| 30 | + |
| 31 | + |
| 32 | + |
| 33 | + |
| 34 | + |
| 35 | + |
| 36 | + |
| 37 | + |
| 38 | + |
| 39 | + |
| 40 | + |
| 41 | + |
| 42 | + |
| 43 | + |
| 44 | + |
| 45 | + |
| 46 | + |
| 47 | + |
| 48 | + |
| 49 | + |
| 50 | + |
| 51 | + |
| 52 | + |
| 53 | + |
| 54 | + |
| 55 | + |
| 56 | + |
| 57 | + |
| 58 | + |
| 59 | + |
| 60 | + |
| 61 | + |
| 62 | + |
| 63 | + |
| 64 | + |
| 65 | + |
| 66 | + |
| 67 | + |
| 68 | + |
| 69 | + |
| 70 | + |
| 71 | + |
| 72 | + |
| 73 | + |
| 74 | + |
| 75 | + |
| 76 | + |
| 77 | + |
| 78 | + |
| 79 | + |
| 80 | + |
| 81 | + |
| 82 | + |
| 83 | + |
| 84 | + |
| 85 | + |
| 86 | + |
| 87 | + |
| 88 | + |
| 89 | + |
| 90 | + |
| 91 | + |
| 92 | + |
| 93 | + |
| 94 | + |
| 95 | + |
| 96 | + |
| 97 | + |
| 98 | + |
| 99 | + |
| 100 | + |
| 101 | + |
| 102 | + |
| 103 | + |
| 104 | + |
| 105 | + |
| 106 | + |
14 | 107 | |
15 | 108 | |
16 | 109 | |
|
Collapse file
+2Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
684 | 684 | |
685 | 685 | |
686 | 686 | |
| 687 | + |
| 688 | + |
687 | 689 | |
688 | 690 | |
689 | 691 | |
|
Collapse file
src/chatWrappers/FunctionaryChatWrapper.ts
Copy file name to clipboardExpand all lines: src/chatWrappers/FunctionaryChatWrapper.ts+14-14Lines changed: 14 additions & 14 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
39 | 39 | |
40 | 40 | |
41 | 41 | |
42 | | - |
| 42 | + |
43 | 43 | |
44 | 44 | |
45 | 45 | |
46 | 46 | |
47 | 47 | |
48 | | - |
| 48 | + |
49 | 49 | |
50 | 50 | |
51 | 51 | |
| ||
72 | 72 | |
73 | 73 | |
74 | 74 | |
75 | | - |
| 75 | + |
76 | 76 | |
77 | 77 | |
78 | 78 | |
79 | 79 | |
80 | 80 | |
81 | | - |
| 81 | + |
82 | 82 | |
83 | 83 | |
84 | 84 | |
| ||
155 | 155 | |
156 | 156 | |
157 | 157 | |
158 | | - |
| 158 | + |
159 | 159 | |
160 | 160 | |
161 | 161 | |
162 | 162 | |
163 | 163 | |
164 | | - |
| 164 | + |
165 | 165 | |
166 | 166 | |
167 | 167 | |
| ||
178 | 178 | |
179 | 179 | |
180 | 180 | |
181 | | - |
| 181 | + |
182 | 182 | |
183 | 183 | |
184 | 184 | |
| ||
206 | 206 | |
207 | 207 | |
208 | 208 | |
209 | | - |
| 209 | + |
210 | 210 | |
211 | 211 | |
212 | 212 | |
| ||
232 | 232 | |
233 | 233 | |
234 | 234 | |
235 | | - |
| 235 | + |
236 | 236 | |
237 | 237 | |
238 | 238 | |
| ||
320 | 320 | |
321 | 321 | |
322 | 322 | |
323 | | - |
| 323 | + |
324 | 324 | |
325 | 325 | |
326 | 326 | |
327 | 327 | |
328 | 328 | |
329 | | - |
| 329 | + |
330 | 330 | |
331 | 331 | |
332 | 332 | |
| ||
343 | 343 | |
344 | 344 | |
345 | 345 | |
346 | | - |
| 346 | + |
347 | 347 | |
348 | 348 | |
349 | 349 | |
| ||
365 | 365 | |
366 | 366 | |
367 | 367 | |
368 | | - |
| 368 | + |
369 | 369 | |
370 | 370 | |
371 | 371 | |
| ||
392 | 392 | |
393 | 393 | |
394 | 394 | |
395 | | - |
| 395 | + |
396 | 396 | |
397 | 397 | |
398 | 398 | |
|
Collapse file
src/chatWrappers/Llama3ChatWrapper.ts
Copy file name to clipboardExpand all lines: src/chatWrappers/Llama3ChatWrapper.ts+7-7Lines changed: 7 additions & 7 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
34 | 34 | |
35 | 35 | |
36 | 36 | |
37 | | - |
| 37 | + |
38 | 38 | |
39 | 39 | |
40 | 40 | |
41 | 41 | |
42 | 42 | |
43 | | - |
| 43 | + |
44 | 44 | |
45 | 45 | |
46 | 46 | |
| ||
62 | 62 | |
63 | 63 | |
64 | 64 | |
65 | | - |
| 65 | + |
66 | 66 | |
67 | 67 | |
68 | 68 | |
69 | | - |
| 69 | + |
70 | 70 | |
71 | 71 | |
72 | 72 | |
| ||
147 | 147 | |
148 | 148 | |
149 | 149 | |
150 | | - |
| 150 | + |
151 | 151 | |
152 | 152 | |
153 | 153 | |
| ||
157 | 157 | |
158 | 158 | |
159 | 159 | |
160 | | - |
| 160 | + |
161 | 161 | |
162 | 162 | |
163 | 163 | |
| ||
169 | 169 | |
170 | 170 | |
171 | 171 | |
172 | | - |
| 172 | + |
173 | 173 | |
174 | 174 | |
175 | 175 | |
|
Collapse file
src/chatWrappers/Llama3_1ChatWrapper.ts
Copy file name to clipboardExpand all lines: src/chatWrappers/Llama3_1ChatWrapper.ts+4-4Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
29 | 29 | |
30 | 30 | |
31 | 31 | |
32 | | - |
| 32 | + |
33 | 33 | |
34 | 34 | |
35 | 35 | |
| ||
189 | 189 | |
190 | 190 | |
191 | 191 | |
192 | | - |
| 192 | + |
193 | 193 | |
194 | 194 | |
195 | 195 | |
| ||
199 | 199 | |
200 | 200 | |
201 | 201 | |
202 | | - |
| 202 | + |
203 | 203 | |
204 | 204 | |
205 | 205 | |
| ||
211 | 211 | |
212 | 212 | |
213 | 213 | |
214 | | - |
| 214 | + |
215 | 215 | |
216 | 216 | |
217 | 217 | |
|
0 commit comments