Commit 1693760
authored
[FIX] Avoid invoke
* Avoid invoke `tensor.transpose(0, 1).contiguous()` when the shapes already match.
Signed-off-by: ZX-ModelCloud <zx@modelcloud.ai>
* WeightOnlyLooper add progressbar
Signed-off-by: ZX-ModelCloud <zx@modelcloud.ai>
* cleanup
Signed-off-by: ZX-ModelCloud <zx@modelcloud.ai>
---------
Signed-off-by: ZX-ModelCloud <zx@modelcloud.ai>tensor.transpose(0, 1).contiguous() when the shapes already match (#2913)1 parent 28b3870 commit 1693760
4 files changed
Lines changed: 397 additions & 118 deletions
File tree
- gptqmodel
- looper
- utils
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
171 | 171 | | |
172 | 172 | | |
173 | 173 | | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
174 | 178 | | |
175 | 179 | | |
176 | 180 | | |
| |||
201 | 205 | | |
202 | 206 | | |
203 | 207 | | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
204 | 217 | | |
205 | 218 | | |
206 | 219 | | |
| |||
270 | 283 | | |
271 | 284 | | |
272 | 285 | | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
273 | 289 | | |
| 290 | + | |
| 291 | + | |
274 | 292 | | |
275 | 293 | | |
276 | 294 | | |
| |||
0 commit comments