CARVIEW |
Select Language
HTTP/2 200
date: Mon, 21 Jul 2025 19:52:03 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
x-repository-download: git clone https://github.com/intel/neural-compressor.git
etag: W/"12777e29095065abb23c67c1a378baad"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=X82PVjybHr5aT1hg4LJKqN8hRRorsrMZTs7WWlsYw6mGkXMo6XsMvJg9nCRR4GiJ8ZKD2QJ708VdEL97IGAFwPhh102a7I7DaWghjzltX1h9xoc%2BQp6XQz%2BuWHKU85QYrOWUBUVau3GtTh%2B8%2Bw4ekl%2BALBISU04kLZMRVzFLA7LFjmmQWkWY%2By6yhbehPERs7vwXrWDtsHTdeXEVgZRstDJ2wbvw8%2FDiwfuSp9asn%2FNNEbjPQcSPGp%2FKdUmyTJwSZIvlRj6Johxw9VzpEo20EA%3D%3D--%2F6PP7DHyrB0h%2BEA1--OdMc9X7fSp9ZnWXzQW3tqQ%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.1178522883.1753127522; Path=/; Domain=github.com; Expires=Tue, 21 Jul 2026 19:52:02 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Tue, 21 Jul 2026 19:52:02 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: E4CA:237E29:2CB703:35DE21:687E9A62
support lwq for gptq (#1324) · intel/neural-compressor@ee54507 · GitHub
Copy file name to clipboardExpand all lines: docs/source/quantization_weight_only.md
Copy file name to clipboardExpand all lines: examples/pytorch/nlp/huggingface_models/language-modeling/quantization/ptq_weight_only/run-gptq-llm.py
Copy file name to clipboardExpand all lines: neural_compressor/adaptor/pytorch.py
Copy file name to clipboardExpand all lines: neural_compressor/adaptor/torch_utils/gptq.py
Copy file name to clipboardExpand all lines: neural_compressor/adaptor/torch_utils/layer_wise_quant/__init__.py
Copy file name to clipboardExpand all lines: neural_compressor/adaptor/torch_utils/layer_wise_quant/quantize.py
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 278
Commit ee54507
File tree
Expand file treeCollapse file tree
11 files changed
+200
-71
lines changedFilter options
- docs/source
- examples/pytorch/nlp/huggingface_models/language-modeling/quantization/ptq_weight_only
- neural_compressor
- adaptor
- torch_utils
- layer_wise_quant
- model
- test/algorithm
Expand file treeCollapse file tree
11 files changed
+200
-71
lines changeddocs/source/quantization_weight_only.md
Copy file name to clipboardExpand all lines: docs/source/quantization_weight_only.md+4-6Lines changed: 4 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
173 | 173 |
| |
174 | 174 |
| |
175 | 175 |
| |
176 |
| - | |
| 176 | + | |
177 | 177 |
| |
178 | 178 |
| |
179 | 179 |
| |
180 | 180 |
| |
181 | 181 |
| |
182 |
| - | |
| 182 | + | |
183 | 183 |
| |
184 |
| - | |
| 184 | + | |
185 | 185 |
| |
186 | 186 |
| |
187 | 187 |
| |
188 | 188 |
| |
189 |
| - | |
190 |
| - | |
191 |
| - | |
192 | 189 |
| |
193 | 190 |
| |
194 | 191 |
| |
| |||
201 | 198 |
| |
202 | 199 |
| |
203 | 200 |
| |
| 201 | + | |
204 | 202 |
| |
205 | 203 |
| |
206 | 204 |
| |
|
examples/pytorch/nlp/huggingface_models/language-modeling/quantization/ptq_weight_only/run-gptq-llm.py
Copy file name to clipboardExpand all lines: examples/pytorch/nlp/huggingface_models/language-modeling/quantization/ptq_weight_only/run-gptq-llm.py+3-2Lines changed: 3 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
219 | 219 |
| |
220 | 220 |
| |
221 | 221 |
| |
222 |
| - | |
| 222 | + | |
223 | 223 |
| |
224 | 224 |
| |
225 | 225 |
| |
| |||
294 | 294 |
| |
295 | 295 |
| |
296 | 296 |
| |
297 |
| - | |
| 297 | + | |
| 298 | + | |
298 | 299 |
| |
299 | 300 |
| |
300 | 301 |
| |
|
neural_compressor/adaptor/pytorch.py
Copy file name to clipboardExpand all lines: neural_compressor/adaptor/pytorch.py+37-14Lines changed: 37 additions & 14 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
3502 | 3502 |
| |
3503 | 3503 |
| |
3504 | 3504 |
| |
3505 |
| - | |
| 3505 | + | |
| 3506 | + | |
3506 | 3507 |
| |
3507 | 3508 |
| |
3508 |
| - | |
3509 |
| - | |
3510 |
| - | |
3511 |
| - | |
| 3509 | + | |
| 3510 | + | |
| 3511 | + | |
3512 | 3512 |
| |
3513 | 3513 |
| |
3514 | 3514 |
| |
| |||
4541 | 4541 |
| |
4542 | 4542 |
| |
4543 | 4543 |
| |
4544 |
| - | |
4545 |
| - | |
4546 |
| - | |
| 4544 | + | |
4547 | 4545 |
| |
4548 |
| - | |
4549 |
| - | |
4550 |
| - | |
4551 |
| - | |
| 4546 | + | |
| 4547 | + | |
| 4548 | + | |
| 4549 | + | |
4552 | 4550 |
| |
4553 | 4551 |
| |
4554 | 4552 |
| |
| |||
4584 | 4582 |
| |
4585 | 4583 |
| |
4586 | 4584 |
| |
4587 |
| - | |
| 4585 | + | |
4588 | 4586 |
| |
4589 | 4587 |
| |
4590 | 4588 |
| |
| |||
4619 | 4617 |
| |
4620 | 4618 |
| |
4621 | 4619 |
| |
| 4620 | + | |
| 4621 | + | |
| 4622 | + | |
| 4623 | + | |
| 4624 | + | |
| 4625 | + | |
| 4626 | + | |
| 4627 | + | |
| 4628 | + | |
| 4629 | + | |
| 4630 | + | |
| 4631 | + | |
| 4632 | + | |
| 4633 | + | |
| 4634 | + | |
| 4635 | + | |
| 4636 | + | |
4622 | 4637 |
| |
4623 | 4638 |
| |
4624 | 4639 |
| |
| |||
4643 | 4658 |
| |
4644 | 4659 |
| |
4645 | 4660 |
| |
4646 |
| - | |
| 4661 | + | |
| 4662 | + | |
| 4663 | + | |
| 4664 | + | |
| 4665 | + | |
| 4666 | + | |
| 4667 | + | |
| 4668 | + | |
| 4669 | + | |
4647 | 4670 |
| |
4648 | 4671 |
| |
4649 | 4672 |
| |
|
neural_compressor/adaptor/torch_utils/gptq.py
Copy file name to clipboardExpand all lines: neural_compressor/adaptor/torch_utils/gptq.py+81-23Lines changed: 81 additions & 23 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
15 | 15 |
| |
16 | 16 |
| |
17 | 17 |
| |
| 18 | + | |
18 | 19 |
| |
19 | 20 |
| |
20 | 21 |
| |
| |||
175 | 176 |
| |
176 | 177 |
| |
177 | 178 |
| |
| 179 | + | |
178 | 180 |
| |
179 | 181 |
| |
180 | 182 |
| |
| |||
215 | 217 |
| |
216 | 218 |
| |
217 | 219 |
| |
218 |
| - | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
219 | 223 |
| |
220 | 224 |
| |
| 225 | + | |
| 226 | + | |
221 | 227 |
| |
222 | 228 |
| |
223 | 229 |
| |
| |||
438 | 444 |
| |
439 | 445 |
| |
440 | 446 |
| |
441 |
| - | |
442 |
| - | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
443 | 450 |
| |
444 | 451 |
| |
445 |
| - | |
| 452 | + | |
| 453 | + | |
446 | 454 |
| |
447 | 455 |
| |
448 | 456 |
| |
| |||
451 | 459 |
| |
452 | 460 |
| |
453 | 461 |
| |
454 |
| - | |
| 462 | + | |
| 463 | + | |
455 | 464 |
| |
456 | 465 |
| |
457 | 466 |
| |
| |||
473 | 482 |
| |
474 | 483 |
| |
475 | 484 |
| |
476 |
| - | |
477 |
| - | |
478 |
| - | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
479 | 489 |
| |
480 | 490 |
| |
481 | 491 |
| |
| |||
501 | 511 |
| |
502 | 512 |
| |
503 | 513 |
| |
504 |
| - | |
| 514 | + | |
505 | 515 |
| |
506 | 516 |
| |
507 | 517 |
| |
| |||
513 | 523 |
| |
514 | 524 |
| |
515 | 525 |
| |
516 |
| - | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
517 | 531 |
| |
518 | 532 |
| |
519 | 533 |
| |
| |||
534 | 548 |
| |
535 | 549 |
| |
536 | 550 |
| |
537 |
| - | |
538 |
| - | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
539 | 561 |
| |
540 | 562 |
| |
541 | 563 |
| |
| |||
555 | 577 |
| |
556 | 578 |
| |
557 | 579 |
| |
558 |
| - | |
559 | 580 |
| |
560 | 581 |
| |
561 | 582 |
| |
| |||
570 | 591 |
| |
571 | 592 |
| |
572 | 593 |
| |
573 |
| - | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
574 | 603 |
| |
575 | 604 |
| |
576 | 605 |
| |
577 | 606 |
| |
578 | 607 |
| |
| 608 | + | |
| 609 | + | |
| 610 | + | |
| 611 | + | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
579 | 632 |
| |
580 | 633 |
| |
581 | 634 |
| |
| |||
594 | 647 |
| |
595 | 648 |
| |
596 | 649 |
| |
597 |
| - | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
598 | 654 |
| |
599 | 655 |
| |
600 | 656 |
| |
| |||
617 | 673 |
| |
618 | 674 |
| |
619 | 675 |
| |
620 |
| - | |
| 676 | + | |
621 | 677 |
| |
622 |
| - | |
623 |
| - | |
| 678 | + | |
| 679 | + | |
624 | 680 |
| |
625 | 681 |
| |
626 | 682 |
| |
| |||
661 | 717 |
| |
662 | 718 |
| |
663 | 719 |
| |
664 |
| - | |
665 |
| - | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
666 | 723 |
| |
667 | 724 |
| |
668 | 725 |
| |
| |||
740 | 797 |
| |
741 | 798 |
| |
742 | 799 |
| |
743 |
| - | |
| 800 | + | |
744 | 801 |
| |
745 | 802 |
| |
746 | 803 |
| |
| |||
751 | 808 |
| |
752 | 809 |
| |
753 | 810 |
| |
754 |
| - | |
| 811 | + | |
| 812 | + | |
755 | 813 |
| |
756 | 814 |
| |
757 | 815 |
| |
| |||
760 | 818 |
| |
761 | 819 |
| |
762 | 820 |
| |
763 |
| - | |
| 821 | + | |
764 | 822 |
| |
765 | 823 |
| |
766 | 824 |
| |
|
neural_compressor/adaptor/torch_utils/layer_wise_quant/__init__.py
Copy file name to clipboardExpand all lines: neural_compressor/adaptor/torch_utils/layer_wise_quant/__init__.py+1-1Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
15 | 15 |
| |
16 | 16 |
| |
17 | 17 |
| |
18 |
| - | |
| 18 | + | |
19 | 19 |
|
neural_compressor/adaptor/torch_utils/layer_wise_quant/quantize.py
Copy file name to clipboardExpand all lines: neural_compressor/adaptor/torch_utils/layer_wise_quant/quantize.py+2-2Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
40 | 40 |
| |
41 | 41 |
| |
42 | 42 |
| |
43 |
| - | |
| 43 | + | |
44 | 44 |
| |
45 | 45 |
| |
46 | 46 |
| |
| |||
92 | 92 |
| |
93 | 93 |
| |
94 | 94 |
| |
95 |
| - | |
| 95 | + | |
96 | 96 |
| |
97 | 97 |
| |
98 | 98 |
| |
|
You can’t perform that action at this time.
0 commit comments