Commit a726b30
authored
fix(hub): import create_repo from huggingface_hub (transformers dropped the passthrough) (#2917)
Latest transformers removed create_repo from transformers.utils.hub, so
`import gptqmodel` raises AttributeError. transformers.utils.hub.create_repo
was always a re-export of huggingface_hub.create_repo, so import it from the
canonical source. The _HF_API-bound helpers stay on transformers hub.
Fixes #29161 parent 9fd6c8d commit a726b30
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
13 | | - | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
0 commit comments