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.

Files changed (59) hide show
  1. huggingface_hub/__init__.py +4 -7
  2. huggingface_hub/_commit_api.py +126 -66
  3. huggingface_hub/_commit_scheduler.py +4 -7
  4. huggingface_hub/_login.py +10 -16
  5. huggingface_hub/_snapshot_download.py +119 -21
  6. huggingface_hub/_tensorboard_logger.py +2 -5
  7. huggingface_hub/_upload_large_folder.py +1 -2
  8. huggingface_hub/_webhooks_server.py +8 -20
  9. huggingface_hub/cli/_cli_utils.py +12 -6
  10. huggingface_hub/cli/download.py +32 -7
  11. huggingface_hub/cli/repo.py +137 -5
  12. huggingface_hub/dataclasses.py +122 -2
  13. huggingface_hub/errors.py +4 -0
  14. huggingface_hub/fastai_utils.py +22 -32
  15. huggingface_hub/file_download.py +234 -38
  16. huggingface_hub/hf_api.py +385 -424
  17. huggingface_hub/hf_file_system.py +55 -65
  18. huggingface_hub/inference/_client.py +27 -48
  19. huggingface_hub/inference/_generated/_async_client.py +27 -48
  20. huggingface_hub/inference/_generated/types/image_to_image.py +6 -2
  21. huggingface_hub/inference/_mcp/agent.py +2 -5
  22. huggingface_hub/inference/_mcp/mcp_client.py +6 -8
  23. huggingface_hub/inference/_providers/__init__.py +16 -0
  24. huggingface_hub/inference/_providers/_common.py +2 -0
  25. huggingface_hub/inference/_providers/fal_ai.py +2 -0
  26. huggingface_hub/inference/_providers/publicai.py +6 -0
  27. huggingface_hub/inference/_providers/scaleway.py +28 -0
  28. huggingface_hub/inference/_providers/zai_org.py +17 -0
  29. huggingface_hub/lfs.py +14 -8
  30. huggingface_hub/repocard.py +12 -16
  31. huggingface_hub/serialization/_base.py +3 -6
  32. huggingface_hub/serialization/_torch.py +16 -34
  33. huggingface_hub/utils/__init__.py +1 -2
  34. huggingface_hub/utils/_cache_manager.py +42 -72
  35. huggingface_hub/utils/_chunk_utils.py +2 -3
  36. huggingface_hub/utils/_http.py +37 -68
  37. huggingface_hub/utils/_validators.py +2 -2
  38. huggingface_hub/utils/logging.py +8 -11
  39. {huggingface_hub-1.0.0rc1.dist-info → huggingface_hub-1.0.0rc3.dist-info}/METADATA +2 -2
  40. {huggingface_hub-1.0.0rc1.dist-info → huggingface_hub-1.0.0rc3.dist-info}/RECORD +44 -56
  41. {huggingface_hub-1.0.0rc1.dist-info → huggingface_hub-1.0.0rc3.dist-info}/entry_points.txt +0 -1
  42. huggingface_hub/commands/__init__.py +0 -27
  43. huggingface_hub/commands/_cli_utils.py +0 -74
  44. huggingface_hub/commands/delete_cache.py +0 -476
  45. huggingface_hub/commands/download.py +0 -195
  46. huggingface_hub/commands/env.py +0 -39
  47. huggingface_hub/commands/huggingface_cli.py +0 -65
  48. huggingface_hub/commands/lfs.py +0 -200
  49. huggingface_hub/commands/repo.py +0 -151
  50. huggingface_hub/commands/repo_files.py +0 -132
  51. huggingface_hub/commands/scan_cache.py +0 -183
  52. huggingface_hub/commands/tag.py +0 -159
  53. huggingface_hub/commands/upload.py +0 -318
  54. huggingface_hub/commands/upload_large_folder.py +0 -131
  55. huggingface_hub/commands/user.py +0 -207
  56. huggingface_hub/commands/version.py +0 -40
  57. {huggingface_hub-1.0.0rc1.dist-info → huggingface_hub-1.0.0rc3.dist-info}/LICENSE +0 -0
  58. {huggingface_hub-1.0.0rc1.dist-info → huggingface_hub-1.0.0rc3.dist-info}/WHEEL +0 -0
  59. {huggingface_hub-1.0.0rc1.dist-info → huggingface_hub-1.0.0rc3.dist-info}/top_level.txt +0 -0
@@ -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
- <Tip>
113
-
114
- HuggingFace Hub has following logging levels:
115
-
116
- - `huggingface_hub.logging.CRITICAL`, `huggingface_hub.logging.FATAL`
117
- - `huggingface_hub.logging.ERROR`
118
- - `huggingface_hub.logging.WARNING`, `huggingface_hub.logging.WARN`
119
- - `huggingface_hub.logging.INFO`
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.0rc1
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=QK-fIP2bJRVfOAK94U51ibnhUnlmaz86Aqz5897v97w,52007
2
- huggingface_hub/_commit_api.py,sha256=1tz3oOAd0A4797INAzIOtS3Vj9Y58wsrV3B1pXShCCY,38833
3
- huggingface_hub/_commit_scheduler.py,sha256=Spz4u3Wpg2mz9pWkVtsLS6ljG0QD5dOD18tSRXt5YVk,14770
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=yctn09DZiGNLJ2LGFJUUPVO7WSVhCYkEyZaS6pRxkHo,19076
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=bN_Rh_DMYcPOSNjQvx3oxnJyDwOdaKNBJuNCh0z8n6w,15543
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=ad0bbmIa-YzBIIt_l3aPnXUDOyRUezYEtMHIm23L_ZY,8433
12
- huggingface_hub/_upload_large_folder.py,sha256=NLnbHTo85kSZpxNpliP8ZqFbux7XCFw60EEsqS5aCUM,30047
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=iSYiQL6fx1-tmZJvj0ntftA9-blloqEeiJEwPmjoWSw,15761
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=G-_CJ8UUxZANUNUd_NmJiqqlhaGt2guyIlV0v9EOwL0,17193
18
- huggingface_hub/errors.py,sha256=vC__ajG9QCOW1ZFp4Tr6jA5kd8875_muJhaRuOVOE1s,11282
19
- huggingface_hub/fastai_utils.py,sha256=i7x4fb35_b4UK4-PXIImn_9GuYhs3iFshsD5XgbtZSc,16647
20
- huggingface_hub/file_download.py,sha256=C4TLrT6lzYqSa5TTbQzIB6zQGzw0nyj-YUYlrnyxu0c,74012
21
- huggingface_hub/hf_api.py,sha256=4lCbMOiLgzsek7qmeasI6add8flB3F9c-0Emmb1eHHc,469288
22
- huggingface_hub/hf_file_system.py,sha256=I8aB6TtBUGKCp_Gy4UocrJjK6yXTTa0s-MUILgMibVA,47916
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=zmnoEW7NLVinylPqQNuQnwqqg2sjCJTp4lOBGllvdtA,15983
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=sg-n9CHYXJFbrwguTO2fiSgoOqn-frz1aeDlGuTPbhA,34908
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=bbd3j7TjgRFr9ihvIwpLFuc30E1FRgWY0YOW-bhmIQg,3828
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=5KufMvmucKHR93_KFBnnOZu1mQLpwwI8MnLqiMwnYrs,5359
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=5k0qZ15_DzAg2EJhZWr5CvVF_5j8kBV5HNPKTnuZlDs,6127
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=jEFiLsvhd_o8NUCQWHIOtSEufryOFyoFzGzW45sRGSY,157924
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=BFRGjET1um6FxwV8Eqi-WUtx1xphNC05SRi8qgY55Qo,161134
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=HPz1uKXk_9xvgNUi3GV6n4lw-J3G6cdGTcW3Ou_N0l8,2044
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=EgucIvjXsGqLq78oJ9WRLU19Wm1pcqGdeZKzxOoPWeE,4269
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=xEBmEx8s4oLSBb5aN3EzXoqYCM2haglOltCaGyTaI98,17204
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=UWL_VKr95V7l5sEkr7PYQ9O3fXHkru-6gfzHR0WUzlo,8348
104
- huggingface_hub/inference/_providers/_common.py,sha256=lblg7JSkOns7SqxtYqwa4xHrHML2dCCGcjolAfQ-YZk,12302
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=XL1mZxsE6pC4xux2WinXbpwaqIMBErqXPO9uGHgupvU,9874
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=EeHZchLgrkO1w3Mwc0LAY8itmrS1F7-Gd6C6l1rThU4,8114
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=IYTjHRgm2o5MQVF2n-4dKC0K6hEW-z-DFlsSRiPX2bI,45177
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=o0vivDNuvQI-0yW_imf9GtbEYPRkt3mcY3wkeF1bGT4,3822
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=d9WULNC7NtUJgkDTbNPVpp5JFkQltkdpszLkRgA3Z5s,34490
131
- huggingface_hub/utils/_chunk_utils.py,sha256=kRCaj5228_vKcyLWspd8Xq01f17Jz6ds5Sr9ed5d_RU,2130
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=Wbxl92nI6elfx8s_BhwB79_jYqK21IwuqDO0o3pbyEU,31169
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=Cf0ovPuhiOICoYIIks83rNL7x5N-PVZrotk87HzKyTM,8361
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=0A8fF1yh3L9Ka_bCDX2ml4U5Ht0tY8Dr3JcbRvWFuwo,4909
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.0rc1.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
157
- huggingface_hub-1.0.0rc1.dist-info/METADATA,sha256=qAYYCe9OOP8U3HWTlCkQP_n2fN6pO4UNiP9t_WxMKJc,14162
158
- huggingface_hub-1.0.0rc1.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
159
- huggingface_hub-1.0.0rc1.dist-info/entry_points.txt,sha256=HIzLhjwPTO7U_ncpW4AkmzAuaadr1ajmYagW5mdb5TM,217
160
- huggingface_hub-1.0.0rc1.dist-info/top_level.txt,sha256=8KzlQJAY4miUvjAssOAJodqKOw3harNzuiwGQ9qLSSk,16
161
- huggingface_hub-1.0.0rc1.dist-info/RECORD,,
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,6 +1,5 @@
1
1
  [console_scripts]
2
2
  hf = huggingface_hub.cli.hf:main
3
- huggingface-cli = huggingface_hub.commands.huggingface_cli:main
4
3
  tiny-agents = huggingface_hub.inference._mcp.cli:app
5
4
 
6
5
  [fsspec.specs]
@@ -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."))