Commit b78b052
[Actorder] Fix GPTQ actorder logic, only apply actorder to weight group args (#1815)
SUMMARY:
- Don't set actorder to static if running channel quantization
- The modifier level actoder value is also getting serialized
incorrectly - we set it to None if the strategy is not GROUP but still
missing a step to serialize it correctlt when it is None
- FIx test case which is using an incorrect activation quantization
strategy
- Update compress / decompress test case
Testing
- Fixes failing tests
- There is still a bug where `Sentinel` values are not serialized
correctly
---------
Signed-off-by: Kyle Sayers <kylesayrs@gmail.com>
Co-authored-by: Kyle Sayers <kylesayrs@gmail.com>1 parent 0a1c9be commit b78b052
File tree
3 files changed
+63
-24
lines changed- src/llmcompressor/modifiers/quantization/gptq
- tests/llmcompressor
- modifiers/quantization
- transformers/sparsification
3 files changed
+63
-24
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
7 | 11 | | |
8 | 12 | | |
9 | 13 | | |
| |||
107 | 111 | | |
108 | 112 | | |
109 | 113 | | |
| 114 | + | |
110 | 115 | | |
111 | 116 | | |
112 | 117 | | |
| |||
149 | 154 | | |
150 | 155 | | |
151 | 156 | | |
152 | | - | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
153 | 161 | | |
154 | | - | |
155 | 162 | | |
156 | 163 | | |
157 | 164 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
107 | 108 | | |
108 | 109 | | |
109 | 110 | | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
Lines changed: 18 additions & 21 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
348 | 348 | | |
349 | 349 | | |
350 | 350 | | |
351 | | - | |
352 | 351 | | |
353 | 352 | | |
354 | 353 | | |
| |||
357 | 356 | | |
358 | 357 | | |
359 | 358 | | |
360 | | - | |
361 | 359 | | |
362 | 360 | | |
363 | 361 | | |
364 | 362 | | |
365 | 363 | | |
366 | 364 | | |
367 | 365 | | |
368 | | - | |
369 | | - | |
370 | | - | |
371 | | - | |
372 | | - | |
373 | | - | |
374 | | - | |
375 | | - | |
376 | | - | |
377 | | - | |
378 | | - | |
379 | | - | |
380 | 366 | | |
381 | 367 | | |
382 | | - | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
383 | 371 | | |
384 | 372 | | |
385 | 373 | | |
| |||
389 | 377 | | |
390 | 378 | | |
391 | 379 | | |
392 | | - | |
393 | 380 | | |
| 381 | + | |
| 382 | + | |
394 | 383 | | |
395 | | - | |
396 | 384 | | |
397 | 385 | | |
398 | 386 | | |
399 | | - | |
400 | | - | |
401 | | - | |
| 387 | + | |
| 388 | + | |
402 | 389 | | |
403 | 390 | | |
404 | 391 | | |
| |||
409 | 396 | | |
410 | 397 | | |
411 | 398 | | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
412 | 409 | | |
413 | 410 | | |
414 | 411 | | |
| |||
588 | 585 | | |
589 | 586 | | |
590 | 587 | | |
591 | | - | |
| 588 | + | |
592 | 589 | | |
593 | 590 | | |
594 | 591 | | |
| |||
0 commit comments