CARVIEW |
Select Language
HTTP/2 200
date: Wed, 23 Jul 2025 23:37:21 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/"131e8175aa48025ba9e2e9cad0fe6236"
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=%2Fqqg9dhD89XIg7mtDJkg8kXLRTtxG8WIGHS2psSZg9lOeUU96o3V%2B8UOJ0Xa%2FOBdm3ZrL0iP0cXl8dNjN%2BOujFVHC9YXjKyvD5PNl1y3dzxUKjs3ZRiiaDUUg%2BMhgbxB1Zr3CDTTuqZk8hfB9F2OEPneoVNaNtsl%2F6qsvatzIowC9SR3ITZ1a%2Fur1Xzj0O94dhDKypdaZCNj1DlHs2s1ReH8r6sMXDhn0NI88fJ2cLkcHGjz54rewzuC7TP7Ux30SZYpbV60UwkaoOS3xEHN3w%3D%3D--H%2FiUwQSmkWKT%2BYkP--dIDrzA4QaENBAWWiN93SvQ%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.1688040517.1753313840; Path=/; Domain=github.com; Expires=Thu, 23 Jul 2026 23:37:20 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Thu, 23 Jul 2026 23:37:20 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: BD14:EE750:199033:237EB7:68817230
layer-wise quant for pytorch weight only (#1255) · intel/neural-compressor@ebd1e24 · GitHub
Copy file name to clipboardExpand all lines: neural_compressor/adaptor/pytorch.py
Copy file name to clipboardExpand all lines: neural_compressor/adaptor/torch_utils/layer_wise_quant/torch_load.py
Copy file name to clipboardExpand all lines: neural_compressor/adaptor/torch_utils/layer_wise_quant/utils.py
Copy file name to clipboardExpand all lines: neural_compressor/model/torch_model.py
Copy file name to clipboardExpand all lines: neural_compressor/utils/pytorch.py
Copy file name to clipboard
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 277
Commit ebd1e24
File tree
Expand file treeCollapse file tree
7 files changed
+234
-83
lines changedFilter options
- neural_compressor
- adaptor
- torch_utils/layer_wise_quant
- model
- utils
- test
- algorithm
- pruning_with_pt/pruning_2.x
Expand file treeCollapse file tree
7 files changed
+234
-83
lines changedneural_compressor/adaptor/pytorch.py
Copy file name to clipboardExpand all lines: neural_compressor/adaptor/pytorch.py+29Lines changed: 29 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4532 | 4532 |
| |
4533 | 4533 |
| |
4534 | 4534 |
| |
| 4535 | + | |
| 4536 | + | |
| 4537 | + | |
| 4538 | + | |
| 4539 | + | |
| 4540 | + | |
| 4541 | + | |
| 4542 | + | |
| 4543 | + | |
| 4544 | + | |
| 4545 | + | |
| 4546 | + | |
| 4547 | + | |
4535 | 4548 |
| |
4536 | 4549 |
| |
4537 | 4550 |
| |
| |||
4545 | 4558 |
| |
4546 | 4559 |
| |
4547 | 4560 |
| |
| 4561 | + | |
| 4562 | + | |
| 4563 | + | |
| 4564 | + | |
| 4565 | + | |
4548 | 4566 |
| |
4549 | 4567 |
| |
4550 | 4568 |
| |
| |||
4556 | 4574 |
| |
4557 | 4575 |
| |
4558 | 4576 |
| |
| 4577 | + | |
| 4578 | + | |
| 4579 | + | |
| 4580 | + | |
| 4581 | + | |
| 4582 | + | |
4559 | 4583 |
| |
| 4584 | + | |
| 4585 | + | |
| 4586 | + | |
| 4587 | + | |
| 4588 | + | |
4560 | 4589 |
| |
4561 | 4590 |
| |
4562 | 4591 |
| |
|
neural_compressor/adaptor/torch_utils/layer_wise_quant/torch_load.py
Copy file name to clipboardExpand all lines: neural_compressor/adaptor/torch_utils/layer_wise_quant/torch_load.py+20-34Lines changed: 20 additions & 34 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
21 | 21 |
| |
22 | 22 |
| |
23 | 23 |
| |
| 24 | + | |
24 | 25 |
| |
25 | 26 |
| |
26 | 27 |
| |
| |||
35 | 36 |
| |
36 | 37 |
| |
37 | 38 |
| |
| 39 | + | |
| 40 | + | |
| 41 | + | |
38 | 42 |
| |
39 | 43 |
| |
40 | 44 |
| |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
41 | 50 |
| |
42 | 51 |
| |
43 | 52 |
| |
44 | 53 |
| |
45 | 54 |
| |
46 | 55 |
| |
47 |
| - | |
48 |
| - | |
49 |
| - | |
50 |
| - | |
51 |
| - | |
52 | 56 |
| |
53 | 57 |
| |
54 | 58 |
| |
55 |
| - | |
56 |
| - | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
57 | 65 |
| |
58 | 66 |
| |
59 | 67 |
| |
60 |
| - | |
61 |
| - | |
62 |
| - | |
| 68 | + | |
63 | 69 |
| |
64 | 70 |
| |
65 | 71 |
| |
| |||
69 | 75 |
| |
70 | 76 |
| |
71 | 77 |
| |
72 |
| - | |
73 |
| - | |
74 |
| - | |
75 |
| - | |
76 |
| - | |
77 |
| - | |
78 |
| - | |
79 |
| - | |
80 |
| - | |
81 |
| - | |
82 |
| - | |
83 |
| - | |
84 |
| - | |
85 |
| - | |
86 |
| - | |
87 |
| - | |
88 |
| - | |
89 |
| - | |
90 |
| - | |
91 |
| - | |
92 |
| - | |
93 |
| - | |
94 | 78 |
| |
95 | 79 |
| |
96 | 80 |
| |
| |||
115 | 99 |
| |
116 | 100 |
| |
117 | 101 |
| |
118 |
| - | |
| 102 | + | |
| 103 | + | |
119 | 104 |
| |
120 | 105 |
| |
121 | 106 |
| |
| |||
126 | 111 |
| |
127 | 112 |
| |
128 | 113 |
| |
129 |
| - | |
| 114 | + | |
| 115 | + | |
130 | 116 |
| |
131 | 117 |
| |
132 | 118 |
| |
|
neural_compressor/adaptor/torch_utils/layer_wise_quant/utils.py
Copy file name to clipboardExpand all lines: neural_compressor/adaptor/torch_utils/layer_wise_quant/utils.py+33-14Lines changed: 33 additions & 14 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
28 | 28 |
| |
29 | 29 |
| |
30 | 30 |
| |
| 31 | + | |
31 | 32 |
| |
32 | 33 |
| |
33 | 34 |
| |
34 | 35 |
| |
| 36 | + | |
| 37 | + | |
35 | 38 |
| |
36 | 39 |
| |
37 | 40 |
| |
| |||
197 | 200 |
| |
198 | 201 |
| |
199 | 202 |
| |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
200 | 226 |
| |
201 | 227 |
| |
202 |
| - | |
203 |
| - | |
204 |
| - | |
205 |
| - | |
206 |
| - | |
207 |
| - | |
208 |
| - | |
209 |
| - | |
210 |
| - | |
211 |
| - | |
212 |
| - | |
213 |
| - | |
214 |
| - | |
215 | 228 |
| |
| 229 | + | |
| 230 | + | |
| 231 | + | |
216 | 232 |
| |
217 | 233 |
| |
218 |
| - | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
219 | 238 |
| |
220 | 239 |
| |
221 | 240 |
| |
|
neural_compressor/model/torch_model.py
Copy file name to clipboardExpand all lines: neural_compressor/model/torch_model.py+28Lines changed: 28 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
340 | 340 |
| |
341 | 341 |
| |
342 | 342 |
| |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
343 | 371 |
| |
344 | 372 |
| |
345 | 373 |
| |
|
neural_compressor/utils/pytorch.py
Copy file name to clipboardExpand all lines: neural_compressor/utils/pytorch.py+17-4Lines changed: 17 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
197 | 197 |
| |
198 | 198 |
| |
199 | 199 |
| |
200 |
| - | |
| 200 | + | |
201 | 201 |
| |
202 | 202 |
| |
203 | 203 |
| |
| |||
226 | 226 |
| |
227 | 227 |
| |
228 | 228 |
| |
229 |
| - | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
230 | 243 |
| |
231 | 244 |
| |
232 | 245 |
| |
233 | 246 |
| |
234 |
| - | |
| 247 | + | |
235 | 248 |
| |
236 | 249 |
| |
237 | 250 |
| |
| |||
248 | 261 |
| |
249 | 262 |
| |
250 | 263 |
| |
251 |
| - | |
| 264 | + | |
252 | 265 |
| |
253 | 266 |
| |
254 | 267 |
| |
|
test/algorithm/test_lwq_weight_only.py
Copy file name to clipboard+59Lines changed: 59 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 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 | + |
You can’t perform that action at this time.
0 commit comments