huggingface-hub 1.0.0rc1__py3-none-any.whl → 1.0.0rc3__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of huggingface-hub might be problematic. Click here for more details.
- huggingface_hub/__init__.py +4 -7
- huggingface_hub/_commit_api.py +126 -66
- huggingface_hub/_commit_scheduler.py +4 -7
- huggingface_hub/_login.py +10 -16
- huggingface_hub/_snapshot_download.py +119 -21
- huggingface_hub/_tensorboard_logger.py +2 -5
- huggingface_hub/_upload_large_folder.py +1 -2
- huggingface_hub/_webhooks_server.py +8 -20
- huggingface_hub/cli/_cli_utils.py +12 -6
- huggingface_hub/cli/download.py +32 -7
- huggingface_hub/cli/repo.py +137 -5
- huggingface_hub/dataclasses.py +122 -2
- huggingface_hub/errors.py +4 -0
- huggingface_hub/fastai_utils.py +22 -32
- huggingface_hub/file_download.py +234 -38
- huggingface_hub/hf_api.py +385 -424
- huggingface_hub/hf_file_system.py +55 -65
- huggingface_hub/inference/_client.py +27 -48
- huggingface_hub/inference/_generated/_async_client.py +27 -48
- huggingface_hub/inference/_generated/types/image_to_image.py +6 -2
- huggingface_hub/inference/_mcp/agent.py +2 -5
- huggingface_hub/inference/_mcp/mcp_client.py +6 -8
- huggingface_hub/inference/_providers/__init__.py +16 -0
- huggingface_hub/inference/_providers/_common.py +2 -0
- huggingface_hub/inference/_providers/fal_ai.py +2 -0
- huggingface_hub/inference/_providers/publicai.py +6 -0
- huggingface_hub/inference/_providers/scaleway.py +28 -0
- huggingface_hub/inference/_providers/zai_org.py +17 -0
- huggingface_hub/lfs.py +14 -8
- huggingface_hub/repocard.py +12 -16
- huggingface_hub/serialization/_base.py +3 -6
- huggingface_hub/serialization/_torch.py +16 -34
- huggingface_hub/utils/__init__.py +1 -2
- huggingface_hub/utils/_cache_manager.py +42 -72
- huggingface_hub/utils/_chunk_utils.py +2 -3
- huggingface_hub/utils/_http.py +37 -68
- huggingface_hub/utils/_validators.py +2 -2
- huggingface_hub/utils/logging.py +8 -11
- {huggingface_hub-1.0.0rc1.dist-info → huggingface_hub-1.0.0rc3.dist-info}/METADATA +2 -2
- {huggingface_hub-1.0.0rc1.dist-info → huggingface_hub-1.0.0rc3.dist-info}/RECORD +44 -56
- {huggingface_hub-1.0.0rc1.dist-info → huggingface_hub-1.0.0rc3.dist-info}/entry_points.txt +0 -1
- huggingface_hub/commands/__init__.py +0 -27
- huggingface_hub/commands/_cli_utils.py +0 -74
- huggingface_hub/commands/delete_cache.py +0 -476
- huggingface_hub/commands/download.py +0 -195
- huggingface_hub/commands/env.py +0 -39
- huggingface_hub/commands/huggingface_cli.py +0 -65
- huggingface_hub/commands/lfs.py +0 -200
- huggingface_hub/commands/repo.py +0 -151
- huggingface_hub/commands/repo_files.py +0 -132
- huggingface_hub/commands/scan_cache.py +0 -183
- huggingface_hub/commands/tag.py +0 -159
- huggingface_hub/commands/upload.py +0 -318
- huggingface_hub/commands/upload_large_folder.py +0 -131
- huggingface_hub/commands/user.py +0 -207
- huggingface_hub/commands/version.py +0 -40
- {huggingface_hub-1.0.0rc1.dist-info → huggingface_hub-1.0.0rc3.dist-info}/LICENSE +0 -0
- {huggingface_hub-1.0.0rc1.dist-info → huggingface_hub-1.0.0rc3.dist-info}/WHEEL +0 -0
- {huggingface_hub-1.0.0rc1.dist-info → huggingface_hub-1.0.0rc3.dist-info}/top_level.txt +0 -0
huggingface_hub/utils/logging.py
CHANGED
|
@@ -109,17 +109,14 @@ def get_verbosity() -> int:
|
|
|
109
109
|
Logging level, e.g., `huggingface_hub.logging.DEBUG` and
|
|
110
110
|
`huggingface_hub.logging.INFO`.
|
|
111
111
|
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
- `huggingface_hub.logging.
|
|
117
|
-
- `huggingface_hub.logging.
|
|
118
|
-
- `huggingface_hub.logging.
|
|
119
|
-
- `huggingface_hub.logging.
|
|
120
|
-
- `huggingface_hub.logging.DEBUG`
|
|
121
|
-
|
|
122
|
-
</Tip>
|
|
112
|
+
> [!TIP]
|
|
113
|
+
> HuggingFace Hub has following logging levels:
|
|
114
|
+
>
|
|
115
|
+
> - `huggingface_hub.logging.CRITICAL`, `huggingface_hub.logging.FATAL`
|
|
116
|
+
> - `huggingface_hub.logging.ERROR`
|
|
117
|
+
> - `huggingface_hub.logging.WARNING`, `huggingface_hub.logging.WARN`
|
|
118
|
+
> - `huggingface_hub.logging.INFO`
|
|
119
|
+
> - `huggingface_hub.logging.DEBUG`
|
|
123
120
|
"""
|
|
124
121
|
return _get_library_root_logger().getEffectiveLevel()
|
|
125
122
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: huggingface-hub
|
|
3
|
-
Version: 1.0.
|
|
3
|
+
Version: 1.0.0rc3
|
|
4
4
|
Summary: Client library to download and publish models, datasets and other repos on the huggingface.co hub
|
|
5
5
|
Home-page: https://github.com/huggingface/huggingface_hub
|
|
6
6
|
Author: Hugging Face, Inc.
|
|
@@ -227,7 +227,7 @@ If you prefer, you can also install it with [conda](https://huggingface.co/docs/
|
|
|
227
227
|
In order to keep the package minimal by default, `huggingface_hub` comes with optional dependencies useful for some use cases. For example, if you want have a complete experience for Inference, run:
|
|
228
228
|
|
|
229
229
|
```bash
|
|
230
|
-
pip install huggingface_hub[inference]
|
|
230
|
+
pip install "huggingface_hub[inference]"
|
|
231
231
|
```
|
|
232
232
|
|
|
233
233
|
To learn more installation and optional dependencies, check out the [installation guide](https://huggingface.co/docs/huggingface_hub/en/installation).
|
|
@@ -1,63 +1,48 @@
|
|
|
1
|
-
huggingface_hub/__init__.py,sha256=
|
|
2
|
-
huggingface_hub/_commit_api.py,sha256=
|
|
3
|
-
huggingface_hub/_commit_scheduler.py,sha256=
|
|
1
|
+
huggingface_hub/__init__.py,sha256=Rak0LVI-VYBlTfmrHMGdWqup8V2Ywc8Verayp2ANw1s,51906
|
|
2
|
+
huggingface_hub/_commit_api.py,sha256=4iFe5TQpS8jTRW7sDWut6HUU1eOkw80G5nJooaDKiOM,40890
|
|
3
|
+
huggingface_hub/_commit_scheduler.py,sha256=tqcdWVGJRIxGQtkFHs_AgBdN9ztUjOQSuAhfMAr1ieM,14751
|
|
4
4
|
huggingface_hub/_inference_endpoints.py,sha256=cGiZg244nIOi2OLTqm4V8-ZUY3O0Rr7NlOmoLeHUIbY,17592
|
|
5
5
|
huggingface_hub/_jobs_api.py,sha256=SqybFSxQygyp8Ywem2a4WIL0kcq_hB1Dv5xV8kJFmv8,10791
|
|
6
6
|
huggingface_hub/_local_folder.py,sha256=2iHXNgIT3UdSt2PvCovd0NzgVxTRypKb-rvAFLK-gZU,17305
|
|
7
|
-
huggingface_hub/_login.py,sha256=
|
|
7
|
+
huggingface_hub/_login.py,sha256=VShZnS22Al1Uh26KJgojKE-PW2AMHsoLj6TlEr3segM,19051
|
|
8
8
|
huggingface_hub/_oauth.py,sha256=91zR_H235vxi-fg2YXzDgmA09j4BR3dim9VVzf6srps,18695
|
|
9
|
-
huggingface_hub/_snapshot_download.py,sha256=
|
|
9
|
+
huggingface_hub/_snapshot_download.py,sha256=mT2fyCAstt2ZifuY-12FUuXs0x1TVD7_IQUe_NnQkxo,19375
|
|
10
10
|
huggingface_hub/_space_api.py,sha256=aOowzC3LUytfgFrZprn9vKTQHXLpDWJKjl9X4qq_ZxQ,5464
|
|
11
|
-
huggingface_hub/_tensorboard_logger.py,sha256=
|
|
12
|
-
huggingface_hub/_upload_large_folder.py,sha256=
|
|
11
|
+
huggingface_hub/_tensorboard_logger.py,sha256=3TocVxxSIioqxOkI6p1N4plnWfAizfdU456V0-K10Bs,8414
|
|
12
|
+
huggingface_hub/_upload_large_folder.py,sha256=pDWpXcG5EgOEb0qS96NgtUiJjMMDEdLgAZMauFRWIIw,30014
|
|
13
13
|
huggingface_hub/_webhooks_payload.py,sha256=qCZjBa5dhssg_O0yzgzxPyMpwAxLG96I4qen_HIk0Qc,3611
|
|
14
|
-
huggingface_hub/_webhooks_server.py,sha256=
|
|
14
|
+
huggingface_hub/_webhooks_server.py,sha256=CSfQpgs5mJJjQEbJ9WPATdn4it2-Ii0eXVdqx9JeBCg,15685
|
|
15
15
|
huggingface_hub/community.py,sha256=RbW37Fh8IPsTOiE6ukTdG9mjkjECdKsvcWg6wBV55mg,12192
|
|
16
16
|
huggingface_hub/constants.py,sha256=0wPK02ixE1drhlsEbpwi1RIQauezevkQnDB_JW3Y75c,9316
|
|
17
|
-
huggingface_hub/dataclasses.py,sha256=
|
|
18
|
-
huggingface_hub/errors.py,sha256=
|
|
19
|
-
huggingface_hub/fastai_utils.py,sha256=
|
|
20
|
-
huggingface_hub/file_download.py,sha256=
|
|
21
|
-
huggingface_hub/hf_api.py,sha256=
|
|
22
|
-
huggingface_hub/hf_file_system.py,sha256=
|
|
17
|
+
huggingface_hub/dataclasses.py,sha256=YPk9ktQ011qXfaSarFBS0oGTpvoUjL8bYUgbKt6z_DE,21976
|
|
18
|
+
huggingface_hub/errors.py,sha256=lnXNYKsoJwm_G3377u7aDJGnGwKqCyaiZ1DfjtlzMR8,11411
|
|
19
|
+
huggingface_hub/fastai_utils.py,sha256=0joRPBUccjFALLCfhQLyD_K8qxGvQiLThKJClwej_JQ,16657
|
|
20
|
+
huggingface_hub/file_download.py,sha256=V1FNjTCCd-EqIwvU1wN0Hx0UlAVBYRzEGB3fih6bAW4,81181
|
|
21
|
+
huggingface_hub/hf_api.py,sha256=1evbQF8YgTYTPmUF_oThM3w-oPMa6tU8isG4LAn3exo,473727
|
|
22
|
+
huggingface_hub/hf_file_system.py,sha256=T_wSpiKR4rQ7nJb9ebhkNxhQhsyXCI0oXaCExoWE9Tk,48367
|
|
23
23
|
huggingface_hub/hub_mixin.py,sha256=xQDBbxjEHVMdb333hCmjsjYsaxU7IICdgZFf8tq0toU,37063
|
|
24
|
-
huggingface_hub/lfs.py,sha256=
|
|
24
|
+
huggingface_hub/lfs.py,sha256=HzveT9mfMC-N8u4pjZjy7-NcvkRoRqV63PbVo6-JQ4U,16354
|
|
25
25
|
huggingface_hub/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
26
|
-
huggingface_hub/repocard.py,sha256
|
|
26
|
+
huggingface_hub/repocard.py,sha256=-wss1XDYjr88OjwK4Gzi8c-gQwPIHM8qRgxXYgeilUM,34978
|
|
27
27
|
huggingface_hub/repocard_data.py,sha256=DLdOKlnQCHOOpU-e_skx0YaHxoqN9ZKIOmmMjHUqb1w,34063
|
|
28
28
|
huggingface_hub/cli/__init__.py,sha256=A4zmzuHD2OHjQ5zmdfcnsj0JeCzHVPtpzh-wCjInugA,606
|
|
29
|
-
huggingface_hub/cli/_cli_utils.py,sha256=
|
|
29
|
+
huggingface_hub/cli/_cli_utils.py,sha256=TEw_H1ZlZExHWBnrpQZ14I_MeEjz3uO2uAqUetL4GtA,3958
|
|
30
30
|
huggingface_hub/cli/auth.py,sha256=8UXf03A2gggkISLaDXIkLCYuURc2A3rHyFqY-gWajCA,5177
|
|
31
31
|
huggingface_hub/cli/cache.py,sha256=78DjbPHqfo8kAlhZRpayEv3nhuC1Ckl3dICdljkZSII,13999
|
|
32
|
-
huggingface_hub/cli/download.py,sha256=
|
|
32
|
+
huggingface_hub/cli/download.py,sha256=eOjFJHej7SlihdxQ-nsv4lzQ0Xk_FkPOJoLPJJUI8Gc,6506
|
|
33
33
|
huggingface_hub/cli/hf.py,sha256=Bs4cB117ijea8KsJ9CjGWFQjgkWUGAgltmahTHCE6YA,2315
|
|
34
34
|
huggingface_hub/cli/jobs.py,sha256=HgxxxDRaCHH62eBpihzf1SakevM3OWewPiIzWjFkYLw,23871
|
|
35
35
|
huggingface_hub/cli/lfs.py,sha256=UJI5nBbrt_a-lm5uU88gxD6hVu8xyQav-zBxLTv3Wzo,5895
|
|
36
|
-
huggingface_hub/cli/repo.py,sha256=
|
|
36
|
+
huggingface_hub/cli/repo.py,sha256=1vtR-u4hfRsw3I54eULmNT1OsHERg0xJwqehsBPOqL4,9924
|
|
37
37
|
huggingface_hub/cli/repo_files.py,sha256=6d5GsLsCjqSKTSbJqCHnrRxB9kXj-yLRAtcVbQkQNMo,2799
|
|
38
38
|
huggingface_hub/cli/system.py,sha256=U6j_MFDnlzBLRi2LZjXMxzRcp50UMdAZ7z5tWuPVJYk,1012
|
|
39
39
|
huggingface_hub/cli/upload.py,sha256=4OiGfKW12gPQJBSOqcoeWyTrBUSKeVrJ43cOQ2wgtrA,11823
|
|
40
40
|
huggingface_hub/cli/upload_large_folder.py,sha256=8n2icgejjDPNCr4iODYokLDCJ4BF9EVIoUQW41d4ddU,4470
|
|
41
|
-
huggingface_hub/commands/__init__.py,sha256=AkbM2a-iGh0Vq_xAWhK3mu3uZ44km8-X5uWjKcvcrUQ,928
|
|
42
|
-
huggingface_hub/commands/_cli_utils.py,sha256=5ee2T6YBBCshtZlUEqVHERY9JOHxxPnVEsQJCpze7Yw,2323
|
|
43
|
-
huggingface_hub/commands/delete_cache.py,sha256=ePmnQG3HTmHTEuJ_iHxSVNFDgXIWdE3Ce-4S29ZgK7E,17732
|
|
44
|
-
huggingface_hub/commands/download.py,sha256=hQg4iKhU8RVMqzvLWyAoO4VDfuG75JOSPQyN_9UPFfg,7881
|
|
45
|
-
huggingface_hub/commands/env.py,sha256=qv4SmjuzUz9exo4RDMY2HqabLCKE1oRb55cBA6LN9R4,1342
|
|
46
|
-
huggingface_hub/commands/huggingface_cli.py,sha256=gDi7JueyiLD0bGclTEYfHPQWpAY_WBdPfHT7vkqa5v0,2654
|
|
47
|
-
huggingface_hub/commands/lfs.py,sha256=DY5OsbRqYvTxLXO9jr9PeWucXEQ3PEZeEKY9QwS4HlM,7330
|
|
48
|
-
huggingface_hub/commands/repo.py,sha256=WcRDFqUYKB0Kz0zFopegiG614ot6VOYTAf6jht0BMss,6042
|
|
49
|
-
huggingface_hub/commands/repo_files.py,sha256=-BQ0kcmh3cQjiF1w1weidospl4L0YAT0QeLCicBdlAg,5048
|
|
50
|
-
huggingface_hub/commands/scan_cache.py,sha256=gQlhBZgWkUzH4wrIYnvgV7CA4C7rvV2SuY0x2JCB7g0,8675
|
|
51
|
-
huggingface_hub/commands/tag.py,sha256=f76qx6wCUWLvSYACAnf_qBB5v9ZnrO_-QqMAZ8TdB0s,6344
|
|
52
|
-
huggingface_hub/commands/upload.py,sha256=KOOxiVA7I18vcw4BirWvZ1v1WCYsRLv6blA-6O2dp8w,14570
|
|
53
|
-
huggingface_hub/commands/upload_large_folder.py,sha256=RUrZ9BMyUxh1Q2reI5Xplw8qy1kO01UO6fEojYO2RmU,6248
|
|
54
|
-
huggingface_hub/commands/user.py,sha256=yuG7VpyKfih4qRLf5N-Dg4JcsLpIKpchsvtHZMLws5w,7522
|
|
55
|
-
huggingface_hub/commands/version.py,sha256=rGpCbvxImY9eQqXrshYt609Iws27R75WARmKQrIo6Ok,1390
|
|
56
41
|
huggingface_hub/inference/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
57
|
-
huggingface_hub/inference/_client.py,sha256=
|
|
42
|
+
huggingface_hub/inference/_client.py,sha256=Tx4rfJ24GCKF7umxNqSpaKMse8w1LZm7c5b0Y2SH8Yw,157946
|
|
58
43
|
huggingface_hub/inference/_common.py,sha256=qS3i2R8Dz_VCb6sWt1ZqnmOt8jxPU6uSxlyq-0_9ytg,15350
|
|
59
44
|
huggingface_hub/inference/_generated/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
60
|
-
huggingface_hub/inference/_generated/_async_client.py,sha256=
|
|
45
|
+
huggingface_hub/inference/_generated/_async_client.py,sha256=8vxQLK3uMhydw4v0mFI9f2W5RlWPqTSRhseim_HO-Gc,161156
|
|
61
46
|
huggingface_hub/inference/_generated/types/__init__.py,sha256=9WvrGQ8aThtKSNzZF06j-CIE2ZuItne8FFnea1p1u38,6557
|
|
62
47
|
huggingface_hub/inference/_generated/types/audio_classification.py,sha256=Jg3mzfGhCSH6CfvVvgJSiFpkz6v4nNA0G4LJXacEgNc,1573
|
|
63
48
|
huggingface_hub/inference/_generated/types/audio_to_audio.py,sha256=2Ep4WkePL7oJwcp5nRJqApwviumGHbft9HhXE9XLHj4,891
|
|
@@ -70,7 +55,7 @@ huggingface_hub/inference/_generated/types/feature_extraction.py,sha256=A8nj27aQ
|
|
|
70
55
|
huggingface_hub/inference/_generated/types/fill_mask.py,sha256=E-dU2bmHlso1cei_ju_LQtYVvDZEqAM1-walZkMPa74,1702
|
|
71
56
|
huggingface_hub/inference/_generated/types/image_classification.py,sha256=A-Y024o8723_n8mGVos4TwdAkVL62McGeL1iIo4VzNs,1585
|
|
72
57
|
huggingface_hub/inference/_generated/types/image_segmentation.py,sha256=vrkI4SuP1Iq_iLXc-2pQhYY3SHN4gzvFBoZqbUHxU7o,1950
|
|
73
|
-
huggingface_hub/inference/_generated/types/image_to_image.py,sha256=
|
|
58
|
+
huggingface_hub/inference/_generated/types/image_to_image.py,sha256=snvGbmCdqchxGef25MceD7LSKAmVkIgnoX5t71rdlAQ,2290
|
|
74
59
|
huggingface_hub/inference/_generated/types/image_to_text.py,sha256=OaFEBAfgT-fOVzJ7xVermGf7VODhrc9-Jg38WrM7-2o,4810
|
|
75
60
|
huggingface_hub/inference/_generated/types/image_to_video.py,sha256=bC-L_cNsDhk4s_IdSiprJ9d1NeMGePLcUp7UPpco21w,2240
|
|
76
61
|
huggingface_hub/inference/_generated/types/object_detection.py,sha256=VuFlb1281qTXoSgJDmquGz-VNfEZLo2H0Rh_F6MF6ts,2000
|
|
@@ -94,18 +79,18 @@ huggingface_hub/inference/_generated/types/zero_shot_image_classification.py,sha
|
|
|
94
79
|
huggingface_hub/inference/_generated/types/zero_shot_object_detection.py,sha256=sjdpVUN5zW9aYBymLVUs6i5HVk2qkUBO9ysEjHmsXVM,1605
|
|
95
80
|
huggingface_hub/inference/_mcp/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
96
81
|
huggingface_hub/inference/_mcp/_cli_hacks.py,sha256=KX9HZJPa1p8ngY3mtYGGlVUXfg4vYbbBRs-8HLToP04,3284
|
|
97
|
-
huggingface_hub/inference/_mcp/agent.py,sha256=
|
|
82
|
+
huggingface_hub/inference/_mcp/agent.py,sha256=ufIzMGHore5n252hV5GZPM0ouDXIl6tv5Jl_5gHXnbg,4250
|
|
98
83
|
huggingface_hub/inference/_mcp/cli.py,sha256=AmSUT6wXlE6EWmI0SfQgTWYnL07322zGwwk2yMZZlBc,9640
|
|
99
84
|
huggingface_hub/inference/_mcp/constants.py,sha256=Ws8BujjgZWb5kPAVm4GLE_Rqse63MszHp863EWwoPCI,2487
|
|
100
|
-
huggingface_hub/inference/_mcp/mcp_client.py,sha256=
|
|
85
|
+
huggingface_hub/inference/_mcp/mcp_client.py,sha256=dGp8PhN6aVw4bDnuSySFSiguHUiz-nzhgv89CVdO7pI,17243
|
|
101
86
|
huggingface_hub/inference/_mcp/types.py,sha256=yHNfPsM9MhD06oeKdkbmrBsW-3WhUeqA26fyfRfx_bk,929
|
|
102
87
|
huggingface_hub/inference/_mcp/utils.py,sha256=6XBYLikJ8lknx-k1QaG_uVoVYZ0yMzyo6WgtGp7Zdds,4175
|
|
103
|
-
huggingface_hub/inference/_providers/__init__.py,sha256=
|
|
104
|
-
huggingface_hub/inference/_providers/_common.py,sha256=
|
|
88
|
+
huggingface_hub/inference/_providers/__init__.py,sha256=avtkUxGR2QKxOzKzfKnOtvzqrPLagEfbixtroaQ3Vt0,8867
|
|
89
|
+
huggingface_hub/inference/_providers/_common.py,sha256=uYQWZ00IJOv9yZjq6B5w-QJwkcOD0cqR174kWUiyYOA,12341
|
|
105
90
|
huggingface_hub/inference/_providers/black_forest_labs.py,sha256=vkjK_-4epSJa2-fLnbcXFzPAgQsGKhykKwd9Np-V2iw,2846
|
|
106
91
|
huggingface_hub/inference/_providers/cerebras.py,sha256=QOJ-1U-os7uE7p6eUnn_P_APq-yQhx28be7c3Tq2EuA,210
|
|
107
92
|
huggingface_hub/inference/_providers/cohere.py,sha256=GqUyCR4j6Re-_27ItwQF2p89Yya4e__EWDP9hTSs9w0,1247
|
|
108
|
-
huggingface_hub/inference/_providers/fal_ai.py,sha256=
|
|
93
|
+
huggingface_hub/inference/_providers/fal_ai.py,sha256=F8mWK9BhVvDzp3LNjhuIWF0xLR-Y5gdHpUPUqlPBi-U,9983
|
|
109
94
|
huggingface_hub/inference/_providers/featherless_ai.py,sha256=SceM3VsgzDSaCnzVxTFK6JepHaGStptdLlwrX-zsM2g,1376
|
|
110
95
|
huggingface_hub/inference/_providers/fireworks_ai.py,sha256=YfxC8wMU38qpv6xFc5HnHf6qK4x64nt-iwEDTip4C_U,1209
|
|
111
96
|
huggingface_hub/inference/_providers/groq.py,sha256=JTk2JV4ZOlaohho7zLAFQtk92kGVsPmLJ1hmzcwsqvQ,315
|
|
@@ -115,20 +100,23 @@ huggingface_hub/inference/_providers/nebius.py,sha256=NQDJoNbFd9FPBA5yWTb_C42NoM
|
|
|
115
100
|
huggingface_hub/inference/_providers/novita.py,sha256=AN4csxwKbRvNiaK87o9xVp9krL6mHPk6iv5iat87skA,2508
|
|
116
101
|
huggingface_hub/inference/_providers/nscale.py,sha256=RkyvmYtQbs2RPenF_pxDPMUMZM_botT21zqfVe2hT5Y,1796
|
|
117
102
|
huggingface_hub/inference/_providers/openai.py,sha256=GCVYeNdjWIgpQQ7E_Xv8IebmdhTi0S6WfFosz3nLtps,1089
|
|
103
|
+
huggingface_hub/inference/_providers/publicai.py,sha256=1I2W6rORloB5QHSvky4njZO2XKLTwA-kPdNoauoT5rg,210
|
|
118
104
|
huggingface_hub/inference/_providers/replicate.py,sha256=MBvjI-4IH8Antqr_8c3MRrBjAzElA3sAmEzeRVpIsPI,3814
|
|
119
105
|
huggingface_hub/inference/_providers/sambanova.py,sha256=t-J89tab8wut62jXSXl7pAK5mCrovwdgtvbDYK1DHis,2031
|
|
106
|
+
huggingface_hub/inference/_providers/scaleway.py,sha256=Jy81kXWbXCHBpx6xmyzdEfXGSyhUfjKOLHuDSvhHWGo,1209
|
|
120
107
|
huggingface_hub/inference/_providers/together.py,sha256=q32zFvXhmRogWXMSaEFVYS8m9blXI_oy7KPdeal7Wwg,3433
|
|
108
|
+
huggingface_hub/inference/_providers/zai_org.py,sha256=plGzMZuLrChZvgpS3CCPqI6ImotZZxNLgfxnR7v6tw8,646
|
|
121
109
|
huggingface_hub/serialization/__init__.py,sha256=jCiw_vVQYW52gwVfWiqgocf2Q19kGTQlRGVpf-4SLP8,963
|
|
122
|
-
huggingface_hub/serialization/_base.py,sha256=
|
|
110
|
+
huggingface_hub/serialization/_base.py,sha256=af1QBU_A3EKgAXvYCkENPyamL5Z7V5LxlIUoCxMsEYM,8097
|
|
123
111
|
huggingface_hub/serialization/_dduf.py,sha256=eyUREtvL7od9SSYKrGcCayF29w3xcP1qXTx7RntWp9k,15411
|
|
124
|
-
huggingface_hub/serialization/_torch.py,sha256=
|
|
112
|
+
huggingface_hub/serialization/_torch.py,sha256=VSxdgQ8NuluWY2vs0ZXr6dJFDNNvL1FDW38adLag6nE,45082
|
|
125
113
|
huggingface_hub/templates/datasetcard_template.md,sha256=W-EMqR6wndbrnZorkVv56URWPG49l7MATGeI015kTvs,5503
|
|
126
114
|
huggingface_hub/templates/modelcard_template.md,sha256=4AqArS3cqdtbit5Bo-DhjcnDFR-pza5hErLLTPM4Yuc,6870
|
|
127
|
-
huggingface_hub/utils/__init__.py,sha256=
|
|
115
|
+
huggingface_hub/utils/__init__.py,sha256=E88An6dqxt2XmXi0BO0ZvdrMius6AioMWvy4X0HiI1Y,3795
|
|
128
116
|
huggingface_hub/utils/_auth.py,sha256=TAz8pjk1lP7gseit8Trl2LygKun9unMEBWg_36EeDkA,8280
|
|
129
117
|
huggingface_hub/utils/_cache_assets.py,sha256=kai77HPQMfYpROouMBQCr_gdBCaeTm996Sqj0dExbNg,5728
|
|
130
|
-
huggingface_hub/utils/_cache_manager.py,sha256=
|
|
131
|
-
huggingface_hub/utils/_chunk_utils.py,sha256=
|
|
118
|
+
huggingface_hub/utils/_cache_manager.py,sha256=FweE5jeRQQyeicYe0Ks0zAtoOs8UzkwgkRgGfUKEJvU,34331
|
|
119
|
+
huggingface_hub/utils/_chunk_utils.py,sha256=MH7-6FwCDZ8noV6dGRytCOJGSfcZmDBvsvVotdI8TvQ,2109
|
|
132
120
|
huggingface_hub/utils/_datetime.py,sha256=kCS5jaKV25kOncX1xujbXsz5iDLcjLcLw85semGNzxQ,2770
|
|
133
121
|
huggingface_hub/utils/_deprecation.py,sha256=4tWi3vBSdvnhA0z_Op-tkAQ0xrJ4TUb0HbPhMiXUnOs,4872
|
|
134
122
|
huggingface_hub/utils/_dotenv.py,sha256=2LLdzpA-LzLxO15GLb9WKT5IGrTurIRmFPrMX1yDzsU,2011
|
|
@@ -136,7 +124,7 @@ huggingface_hub/utils/_experimental.py,sha256=3-c8irbn9sJr2CwWbzhGkIrdXKg8_x7Bif
|
|
|
136
124
|
huggingface_hub/utils/_fixes.py,sha256=xQZzfwLqZV8-gNcw9mrZ-M1acA6NZHszI_-cSZIWN-U,3978
|
|
137
125
|
huggingface_hub/utils/_git_credential.py,sha256=4B77QzeiPxCwK6BWZgUc1avzRKpna3wYlhVg7AuSCzA,4613
|
|
138
126
|
huggingface_hub/utils/_headers.py,sha256=k_ApvA8fJGHc0yNp2IFY8wySM9MQ5UZEpjr1g-fpRJ4,8060
|
|
139
|
-
huggingface_hub/utils/_http.py,sha256=
|
|
127
|
+
huggingface_hub/utils/_http.py,sha256=9cqtTg5aYlEVqfR_xnEdKGtZBKEbeRl1MXSa_UT7UzI,30059
|
|
140
128
|
huggingface_hub/utils/_lfs.py,sha256=EC0Oz6Wiwl8foRNkUOzrETXzAWlbgpnpxo5a410ovFY,3957
|
|
141
129
|
huggingface_hub/utils/_pagination.py,sha256=wEHEWhCu9vN5pv51t7ixSGe13g63kS6AJM4P53eY9M4,1894
|
|
142
130
|
huggingface_hub/utils/_paths.py,sha256=WCR2WbqDJLdNlU4XZNXXNmGct3OiDwPesGYrq41T2wE,5036
|
|
@@ -145,17 +133,17 @@ huggingface_hub/utils/_safetensors.py,sha256=2_xbCsDPsCwR1tyBjJ5MoOHsX4ksocjzc4j
|
|
|
145
133
|
huggingface_hub/utils/_subprocess.py,sha256=9qDWT1a2QF2TmXOQJDlPK6LwzYl9XjXeRadQPn15U14,4612
|
|
146
134
|
huggingface_hub/utils/_telemetry.py,sha256=a7t0jaOUPVNxbDWi4KQgVf8vSpZv0I-tK2HwlAowvEE,4884
|
|
147
135
|
huggingface_hub/utils/_typing.py,sha256=cC9p6E8hG2LId8sFWJ9H-cpQozv3asuoww_XiA1-XWI,3617
|
|
148
|
-
huggingface_hub/utils/_validators.py,sha256=
|
|
136
|
+
huggingface_hub/utils/_validators.py,sha256=p9ScwDqjTfrEQx5dmJJKCovExTUqwGA7TNIx511jBxE,8347
|
|
149
137
|
huggingface_hub/utils/_xet.py,sha256=P9b4lc4bJfOSZ7OVO-fg26_ayN0ESb_f1nQ7Bx9ZLfg,7297
|
|
150
138
|
huggingface_hub/utils/_xet_progress_reporting.py,sha256=bxwanhLxigDASflFZVt7S8eENIviguyVg1Q9vFtmDf8,6169
|
|
151
139
|
huggingface_hub/utils/endpoint_helpers.py,sha256=9VtIAlxQ5H_4y30sjCAgbu7XCqAtNLC7aRYxaNn0hLI,2366
|
|
152
140
|
huggingface_hub/utils/insecure_hashlib.py,sha256=z3dVUFvdBZ8kQI_8Vzvvlr3ims-EBiY-SYPdnzIKOkw,1008
|
|
153
|
-
huggingface_hub/utils/logging.py,sha256=
|
|
141
|
+
huggingface_hub/utils/logging.py,sha256=N6NXaCcbPbZSF-Oe-TY3ZnmkpmdFVyTOV8ASo-yVXLE,4916
|
|
154
142
|
huggingface_hub/utils/sha.py,sha256=OFnNGCba0sNcT2gUwaVCJnldxlltrHHe0DS_PCpV3C4,2134
|
|
155
143
|
huggingface_hub/utils/tqdm.py,sha256=-9gfgNA8bg5v5YBToSuB6noClI3a6YaGeFZP61IWmeY,10662
|
|
156
|
-
huggingface_hub-1.0.
|
|
157
|
-
huggingface_hub-1.0.
|
|
158
|
-
huggingface_hub-1.0.
|
|
159
|
-
huggingface_hub-1.0.
|
|
160
|
-
huggingface_hub-1.0.
|
|
161
|
-
huggingface_hub-1.0.
|
|
144
|
+
huggingface_hub-1.0.0rc3.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
145
|
+
huggingface_hub-1.0.0rc3.dist-info/METADATA,sha256=Z-l89IIeU_JANL8EsIC1YcxzOaCgdAdcFlpaQ-vwrl4,14164
|
|
146
|
+
huggingface_hub-1.0.0rc3.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
|
|
147
|
+
huggingface_hub-1.0.0rc3.dist-info/entry_points.txt,sha256=8Dw-X6nV_toOLZqujrhQMj2uTLs4wzV8EIF1y3FlzVs,153
|
|
148
|
+
huggingface_hub-1.0.0rc3.dist-info/top_level.txt,sha256=8KzlQJAY4miUvjAssOAJodqKOw3harNzuiwGQ9qLSSk,16
|
|
149
|
+
huggingface_hub-1.0.0rc3.dist-info/RECORD,,
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
# Copyright 2020 The HuggingFace Team. All rights reserved.
|
|
2
|
-
#
|
|
3
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
-
# you may not use this file except in compliance with the License.
|
|
5
|
-
# You may obtain a copy of the License at
|
|
6
|
-
#
|
|
7
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
-
#
|
|
9
|
-
# Unless required by applicable law or agreed to in writing, software
|
|
10
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
-
# See the License for the specific language governing permissions and
|
|
13
|
-
# limitations under the License.
|
|
14
|
-
|
|
15
|
-
from abc import ABC, abstractmethod
|
|
16
|
-
from argparse import _SubParsersAction
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
class BaseHuggingfaceCLICommand(ABC):
|
|
20
|
-
@staticmethod
|
|
21
|
-
@abstractmethod
|
|
22
|
-
def register_subcommand(parser: _SubParsersAction):
|
|
23
|
-
raise NotImplementedError()
|
|
24
|
-
|
|
25
|
-
@abstractmethod
|
|
26
|
-
def run(self):
|
|
27
|
-
raise NotImplementedError()
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
# Copyright 2022 The HuggingFace Team. All rights reserved.
|
|
2
|
-
#
|
|
3
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
-
# you may not use this file except in compliance with the License.
|
|
5
|
-
# You may obtain a copy of the License at
|
|
6
|
-
#
|
|
7
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
-
#
|
|
9
|
-
# Unless required by applicable law or agreed to in writing, software
|
|
10
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
-
# See the License for the specific language governing permissions and
|
|
13
|
-
# limitations under the License.
|
|
14
|
-
"""Contains a utility for good-looking prints."""
|
|
15
|
-
|
|
16
|
-
import os
|
|
17
|
-
from typing import Union
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
class ANSI:
|
|
21
|
-
"""
|
|
22
|
-
Helper for en.wikipedia.org/wiki/ANSI_escape_code
|
|
23
|
-
"""
|
|
24
|
-
|
|
25
|
-
_bold = "\u001b[1m"
|
|
26
|
-
_gray = "\u001b[90m"
|
|
27
|
-
_red = "\u001b[31m"
|
|
28
|
-
_reset = "\u001b[0m"
|
|
29
|
-
_yellow = "\u001b[33m"
|
|
30
|
-
|
|
31
|
-
@classmethod
|
|
32
|
-
def bold(cls, s: str) -> str:
|
|
33
|
-
return cls._format(s, cls._bold)
|
|
34
|
-
|
|
35
|
-
@classmethod
|
|
36
|
-
def gray(cls, s: str) -> str:
|
|
37
|
-
return cls._format(s, cls._gray)
|
|
38
|
-
|
|
39
|
-
@classmethod
|
|
40
|
-
def red(cls, s: str) -> str:
|
|
41
|
-
return cls._format(s, cls._bold + cls._red)
|
|
42
|
-
|
|
43
|
-
@classmethod
|
|
44
|
-
def yellow(cls, s: str) -> str:
|
|
45
|
-
return cls._format(s, cls._yellow)
|
|
46
|
-
|
|
47
|
-
@classmethod
|
|
48
|
-
def _format(cls, s: str, code: str) -> str:
|
|
49
|
-
if os.environ.get("NO_COLOR"):
|
|
50
|
-
# See https://no-color.org/
|
|
51
|
-
return s
|
|
52
|
-
return f"{code}{s}{cls._reset}"
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
def tabulate(rows: list[list[Union[str, int]]], headers: list[str]) -> str:
|
|
56
|
-
"""
|
|
57
|
-
Inspired by:
|
|
58
|
-
|
|
59
|
-
- stackoverflow.com/a/8356620/593036
|
|
60
|
-
- stackoverflow.com/questions/9535954/printing-lists-as-tabular-data
|
|
61
|
-
"""
|
|
62
|
-
col_widths = [max(len(str(x)) for x in col) for col in zip(*rows, headers)]
|
|
63
|
-
row_format = ("{{:{}}} " * len(headers)).format(*col_widths)
|
|
64
|
-
lines = []
|
|
65
|
-
lines.append(row_format.format(*headers))
|
|
66
|
-
lines.append(row_format.format(*["-" * w for w in col_widths]))
|
|
67
|
-
for row in rows:
|
|
68
|
-
lines.append(row_format.format(*row))
|
|
69
|
-
return "\n".join(lines)
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
def show_deprecation_warning(old_command: str, new_command: str):
|
|
73
|
-
"""Show a yellow warning about deprecated CLI command."""
|
|
74
|
-
print(ANSI.yellow(f"⚠️ Warning: '{old_command}' is deprecated. Use '{new_command}' instead."))
|