CARVIEW |
Select Language
HTTP/2 200
date: Wed, 23 Jul 2025 00:00:38 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/"eb8ba038d694593ff9f65c8f58764a69"
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=26FJW8Yp15PqsurLL%2F9cqKa7WeRE%2Fhy%2Bkt48%2BwF%2B8kCQmzgOJEpyhvs%2B8Tv0QZmnoy5j9cf1bbriwyYllIj1pXtPRYGRms72TB8WnU3%2F99G5MhwyTnk1vovdArbPCNxkaTp%2FGbIBYk62iBOn5PVNdIEWFfU9FSjKNesTYWJq%2BuYtglgpbATKq%2BTxkv6N6xQItjwv0gwxaKExNNDL4aZ6GigDf8J96z4FfKDtzFffOIbGNf5%2BJd3eYplg6uFaWacNlsbEvHu4EN%2BTm%2FYjXEOhUg%3D%3D--9gJ5Mn47YisFynJJ--aucmfeeyMSj8DxZ66nrdxg%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.1016351017.1753228837; Path=/; Domain=github.com; Expires=Thu, 23 Jul 2026 00:00:37 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Thu, 23 Jul 2026 00:00:37 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: 9976:2FAFD7:1DB44D:293834:68802625
Gptq refactor (#1770) · intel/neural-compressor@84d7055 · GitHub
Copy file name to clipboardExpand all lines: neural_compressor/torch/algorithms/weight_only/gptq.py
Copy file name to clipboardExpand all lines: neural_compressor/torch/quantization/algorithm_entry.py
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 277
Commit 84d7055
authored
Gptq refactor (#1770)
* refactor gptq with prepare and convert API
Signed-off-by: xin3he <xin3.he@intel.com>
* fix bug
Signed-off-by: xin3he <xin3.he@intel.com>
* update quantizer and model relationship
Signed-off-by: xin3he <xin3.he@intel.com>
* fix bug
Signed-off-by: xin3he <xin3.he@intel.com>
* add UT for quantize API
Signed-off-by: xin3he <xin3.he@intel.com>
---------
Signed-off-by: xin3he <xin3.he@intel.com>1 parent 5f3f388 commit 84d7055Copy full SHA for 84d7055
File tree
Expand file treeCollapse file tree
3 files changed
+139
-91
lines changedFilter options
- neural_compressor/torch
- algorithms/weight_only
- quantization
- test/3x/torch/quantization/weight_only
Expand file treeCollapse file tree
3 files changed
+139
-91
lines changedneural_compressor/torch/algorithms/weight_only/gptq.py
Copy file name to clipboardExpand all lines: neural_compressor/torch/algorithms/weight_only/gptq.py+61-71Lines changed: 61 additions & 71 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
183 | 183 |
| |
184 | 184 |
| |
185 | 185 |
| |
186 |
| - | |
| 186 | + | |
187 | 187 |
| |
188 | 188 |
| |
189 | 189 |
| |
| |||
195 | 195 |
| |
196 | 196 |
| |
197 | 197 |
| |
198 |
| - | |
199 | 198 |
| |
200 | 199 |
| |
201 | 200 |
| |
202 | 201 |
| |
203 | 202 |
| |
204 | 203 |
| |
205 | 204 |
| |
206 |
| - | |
| 205 | + | |
207 | 206 |
| |
208 | 207 |
| |
209 | 208 |
| |
| |||
226 | 225 |
| |
227 | 226 |
| |
228 | 227 |
| |
229 |
| - | |
230 | 228 |
| |
231 | 229 |
| |
232 | 230 |
| |
| |||
271 | 269 |
| |
272 | 270 |
| |
273 | 271 |
| |
274 |
| - | |
275 |
| - | |
276 |
| - | |
| 272 | + | |
277 | 273 |
| |
278 | 274 |
| |
279 | 275 |
| |
| |||
489 | 485 |
| |
490 | 486 |
| |
491 | 487 |
| |
492 |
| - | |
| 488 | + | |
493 | 489 |
| |
494 | 490 |
| |
495 | 491 |
| |
| |||
532 | 528 |
| |
533 | 529 |
| |
534 | 530 |
| |
535 |
| - | |
| 531 | + | |
536 | 532 |
| |
537 | 533 |
| |
538 | 534 |
| |
539 | 535 |
| |
540 |
| - | |
541 |
| - | |
542 |
| - | |
543 |
| - | |
544 |
| - | |
545 |
| - | |
546 |
| - | |
547 |
| - | |
548 |
| - | |
549 |
| - | |
550 |
| - | |
551 |
| - | |
552 |
| - | |
553 |
| - | |
554 |
| - | |
555 |
| - | |
556 |
| - | |
557 |
| - | |
558 |
| - | |
559 |
| - | |
560 |
| - | |
561 |
| - | |
562 |
| - | |
| 536 | + | |
| 537 | + | |
563 | 538 |
| |
564 | 539 |
| |
565 | 540 |
| |
| |||
571 | 546 |
| |
572 | 547 |
| |
573 | 548 |
| |
574 |
| - | |
| 549 | + | |
575 | 550 |
| |
576 | 551 |
| |
577 | 552 |
| |
| |||
606 | 581 |
| |
607 | 582 |
| |
608 | 583 |
| |
609 |
| - | |
610 | 584 |
| |
611 | 585 |
| |
612 | 586 |
| |
| |||
1144 | 1118 |
| |
1145 | 1119 |
| |
1146 | 1120 |
| |
1147 |
| - | |
1148 |
| - | |
1149 |
| - | |
1150 |
| - | |
1151 |
| - | |
1152 |
| - | |
1153 |
| - | |
1154 |
| - | |
1155 |
| - | |
1156 |
| - | |
1157 |
| - | |
1158 |
| - | |
1159 |
| - | |
1160 |
| - | |
1161 |
| - | |
1162 |
| - | |
1163 |
| - | |
1164 |
| - | |
1165 |
| - | |
1166 |
| - | |
1167 |
| - | |
1168 |
| - | |
| 1121 | + | |
| 1122 | + | |
| 1123 | + | |
| 1124 | + | |
| 1125 | + | |
| 1126 | + | |
| 1127 | + | |
| 1128 | + | |
| 1129 | + | |
| 1130 | + | |
| 1131 | + | |
| 1132 | + | |
| 1133 | + | |
| 1134 | + | |
| 1135 | + | |
1169 | 1136 |
| |
1170 |
| - | |
1171 |
| - | |
1172 |
| - | |
1173 |
| - | |
1174 |
| - | |
1175 |
| - | |
1176 |
| - | |
1177 |
| - | |
1178 |
| - | |
1179 |
| - | |
1180 |
| - | |
1181 |
| - | |
1182 |
| - | |
1183 |
| - | |
1184 |
| - | |
| 1137 | + | |
| 1138 | + | |
| 1139 | + | |
| 1140 | + | |
| 1141 | + | |
| 1142 | + | |
| 1143 | + | |
| 1144 | + | |
| 1145 | + | |
| 1146 | + | |
| 1147 | + | |
| 1148 | + | |
| 1149 | + | |
| 1150 | + | |
| 1151 | + | |
| 1152 | + | |
| 1153 | + | |
| 1154 | + | |
| 1155 | + | |
| 1156 | + | |
| 1157 | + | |
| 1158 | + | |
| 1159 | + | |
| 1160 | + | |
| 1161 | + | |
| 1162 | + | |
| 1163 | + | |
| 1164 | + | |
| 1165 | + | |
| 1166 | + | |
| 1167 | + | |
| 1168 | + | |
| 1169 | + | |
| 1170 | + | |
| 1171 | + | |
| 1172 | + | |
| 1173 | + | |
| 1174 | + |
neural_compressor/torch/quantization/algorithm_entry.py
Copy file name to clipboardExpand all lines: neural_compressor/torch/quantization/algorithm_entry.py+17-9Lines changed: 17 additions & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
72 | 72 |
| |
73 | 73 |
| |
74 | 74 |
| |
75 |
| - | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
76 | 80 |
| |
77 | 81 |
| |
78 |
| - | |
| 82 | + | |
79 | 83 |
| |
80 | 84 |
| |
81 | 85 |
| |
| |||
106 | 110 |
| |
107 | 111 |
| |
108 | 112 |
| |
109 |
| - | |
110 |
| - | |
111 | 113 |
| |
112 |
| - | |
113 |
| - | |
114 |
| - | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
115 | 123 |
| |
116 | 124 |
| |
117 | 125 |
| |
| |||
123 | 131 |
| |
124 | 132 |
| |
125 | 133 |
| |
126 |
| - | |
| 134 | + | |
127 | 135 |
| |
128 | 136 |
| |
129 | 137 |
| |
| |||
333 | 341 |
| |
334 | 342 |
| |
335 | 343 |
| |
336 |
| - | |
| 344 | + | |
337 | 345 |
| |
338 | 346 |
| |
339 | 347 |
| |
|
You can’t perform that action at this time.
0 commit comments