Commit 9e83aea
[NPU] Acknowledge OV model compression in weightless compilation (#34609)
### Details:
- OV model compression may produce models with multiple constants
pointing to the same binary data. If this is the case, rely on compiler
to provide actual constant description (shape and precision), keeping
the plugin code simple. Additionally, introduce several checks to ensure
that the buffer sizes are the same. They are relatively cheap
computation-wise, yet allow to ensure model invariants.
- Changes and description by @andrey-golubev, small addition by me.
### Tickets:
- *EISW-204968*
### AI Assistance:
- *AI assistance used: no*
- *If yes, summarize how AI was used and what human validation was
performed (build/tests/manual checks).*
---------
Co-authored-by: Golubev, Andrey <andrey.golubev@intel.com>1 parent 68322ce commit 9e83aea
File tree
2 files changed
+39
-7
lines changed- src/plugins/intel_npu/src/compiler_adapter/src
2 files changed
+39
-7
lines changedLines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
185 | 185 | | |
186 | 186 | | |
187 | 187 | | |
| 188 | + | |
188 | 189 | | |
| 190 | + | |
189 | 191 | | |
190 | 192 | | |
191 | 193 | | |
| |||
195 | 197 | | |
196 | 198 | | |
197 | 199 | | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
198 | 210 | | |
199 | 211 | | |
200 | 212 | | |
| |||
Lines changed: 27 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
45 | 55 | | |
46 | 56 | | |
47 | 57 | | |
| |||
381 | 391 | | |
382 | 392 | | |
383 | 393 | | |
| 394 | + | |
384 | 395 | | |
385 | | - | |
| 396 | + | |
386 | 397 | | |
387 | | - | |
388 | 398 | | |
389 | | - | |
| 399 | + | |
| 400 | + | |
390 | 401 | | |
391 | 402 | | |
392 | 403 | | |
393 | 404 | | |
394 | 405 | | |
395 | | - | |
396 | | - | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
397 | 411 | | |
398 | 412 | | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
399 | 419 | | |
400 | | - | |
| 420 | + | |
401 | 421 | | |
402 | 422 | | |
403 | 423 | | |
| |||
0 commit comments