huggingface-hub 0.22.2__py3-none-any.whl → 0.23.0rc0__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 (45) hide show
  1. huggingface_hub/__init__.py +51 -19
  2. huggingface_hub/_commit_api.py +9 -8
  3. huggingface_hub/_commit_scheduler.py +2 -2
  4. huggingface_hub/_inference_endpoints.py +10 -17
  5. huggingface_hub/_local_folder.py +229 -0
  6. huggingface_hub/_login.py +4 -3
  7. huggingface_hub/_multi_commits.py +1 -1
  8. huggingface_hub/_snapshot_download.py +16 -38
  9. huggingface_hub/_tensorboard_logger.py +16 -6
  10. huggingface_hub/_webhooks_payload.py +22 -1
  11. huggingface_hub/_webhooks_server.py +24 -20
  12. huggingface_hub/commands/download.py +11 -34
  13. huggingface_hub/commands/huggingface_cli.py +2 -0
  14. huggingface_hub/commands/tag.py +159 -0
  15. huggingface_hub/constants.py +3 -5
  16. huggingface_hub/errors.py +58 -0
  17. huggingface_hub/file_download.py +545 -376
  18. huggingface_hub/hf_api.py +756 -622
  19. huggingface_hub/hf_file_system.py +14 -5
  20. huggingface_hub/hub_mixin.py +127 -43
  21. huggingface_hub/inference/_client.py +402 -183
  22. huggingface_hub/inference/_common.py +19 -29
  23. huggingface_hub/inference/_generated/_async_client.py +402 -184
  24. huggingface_hub/inference/_generated/types/__init__.py +23 -6
  25. huggingface_hub/inference/_generated/types/chat_completion.py +197 -43
  26. huggingface_hub/inference/_generated/types/text_generation.py +57 -79
  27. huggingface_hub/inference/_templating.py +2 -4
  28. huggingface_hub/keras_mixin.py +0 -3
  29. huggingface_hub/lfs.py +9 -1
  30. huggingface_hub/repository.py +1 -0
  31. huggingface_hub/utils/__init__.py +12 -6
  32. huggingface_hub/utils/_fixes.py +1 -0
  33. huggingface_hub/utils/_headers.py +2 -4
  34. huggingface_hub/utils/_http.py +2 -4
  35. huggingface_hub/utils/_paths.py +13 -1
  36. huggingface_hub/utils/_runtime.py +10 -0
  37. huggingface_hub/utils/_safetensors.py +0 -13
  38. huggingface_hub/utils/_validators.py +2 -7
  39. huggingface_hub/utils/tqdm.py +124 -46
  40. {huggingface_hub-0.22.2.dist-info → huggingface_hub-0.23.0rc0.dist-info}/METADATA +5 -1
  41. {huggingface_hub-0.22.2.dist-info → huggingface_hub-0.23.0rc0.dist-info}/RECORD +45 -43
  42. {huggingface_hub-0.22.2.dist-info → huggingface_hub-0.23.0rc0.dist-info}/LICENSE +0 -0
  43. {huggingface_hub-0.22.2.dist-info → huggingface_hub-0.23.0rc0.dist-info}/WHEEL +0 -0
  44. {huggingface_hub-0.22.2.dist-info → huggingface_hub-0.23.0rc0.dist-info}/entry_points.txt +0 -0
  45. {huggingface_hub-0.22.2.dist-info → huggingface_hub-0.23.0rc0.dist-info}/top_level.txt +0 -0
@@ -16,6 +16,14 @@
16
16
 
17
17
  # ruff: noqa: F401
18
18
 
19
+ from huggingface_hub.errors import (
20
+ HFValidationError,
21
+ LocalTokenNotFoundError,
22
+ NotASafetensorsRepoError,
23
+ OfflineModeIsEnabled,
24
+ SafetensorsParsingError,
25
+ )
26
+
19
27
  from . import tqdm as _tqdm # _tqdm is the module
20
28
  from ._cache_assets import cached_assets_path
21
29
  from ._cache_manager import (
@@ -45,10 +53,9 @@ from ._errors import (
45
53
  from ._experimental import experimental
46
54
  from ._fixes import SoftTemporaryDirectory, WeakFileLock, yaml_dump
47
55
  from ._git_credential import list_credential_helpers, set_git_credential, unset_git_credential
48
- from ._headers import LocalTokenNotFoundError, build_hf_headers, get_token_to_send
56
+ from ._headers import build_hf_headers, get_token_to_send
49
57
  from ._hf_folder import HfFolder
50
58
  from ._http import (
51
- OfflineModeIsEnabled,
52
59
  configure_http_backend,
53
60
  fix_hf_endpoint_in_url,
54
61
  get_session,
@@ -56,11 +63,12 @@ from ._http import (
56
63
  reset_sessions,
57
64
  )
58
65
  from ._pagination import paginate
59
- from ._paths import IGNORE_GIT_FOLDER_PATTERNS, filter_repo_objects
66
+ from ._paths import DEFAULT_IGNORE_PATTERNS, FORBIDDEN_FOLDERS, filter_repo_objects
60
67
  from ._runtime import (
61
68
  dump_environment_info,
62
69
  get_aiohttp_version,
63
70
  get_fastai_version,
71
+ get_fastapi_version,
64
72
  get_fastcore_version,
65
73
  get_gradio_version,
66
74
  get_graphviz_version,
@@ -78,6 +86,7 @@ from ._runtime import (
78
86
  get_torch_version,
79
87
  is_aiohttp_available,
80
88
  is_fastai_available,
89
+ is_fastapi_available,
81
90
  is_fastcore_available,
82
91
  is_google_colab,
83
92
  is_gradio_available,
@@ -97,9 +106,7 @@ from ._runtime import (
97
106
  is_torch_available,
98
107
  )
99
108
  from ._safetensors import (
100
- NotASafetensorsRepoError,
101
109
  SafetensorsFileMetadata,
102
- SafetensorsParsingError,
103
110
  SafetensorsRepoMetadata,
104
111
  TensorInfo,
105
112
  )
@@ -108,7 +115,6 @@ from ._telemetry import send_telemetry
108
115
  from ._token import get_token
109
116
  from ._typing import is_jsonable
110
117
  from ._validators import (
111
- HFValidationError,
112
118
  smoothly_deprecate_use_auth_token,
113
119
  validate_hf_hub_args,
114
120
  validate_repo_id,
@@ -79,6 +79,7 @@ def _set_write_permission_and_retry(func, path, excinfo):
79
79
 
80
80
  @contextlib.contextmanager
81
81
  def WeakFileLock(lock_file: Union[str, Path]) -> Generator[BaseFileLock, None, None]:
82
+ """A filelock that won't raise an exception if release fails."""
82
83
  lock = FileLock(lock_file)
83
84
  lock.acquire()
84
85
 
@@ -16,6 +16,8 @@
16
16
 
17
17
  from typing import Dict, Optional, Union
18
18
 
19
+ from huggingface_hub.errors import LocalTokenNotFoundError
20
+
19
21
  from .. import constants
20
22
  from ._runtime import (
21
23
  get_fastai_version,
@@ -33,10 +35,6 @@ from ._token import get_token
33
35
  from ._validators import validate_hf_hub_args
34
36
 
35
37
 
36
- class LocalTokenNotFoundError(EnvironmentError):
37
- """Raised if local token is required but not found."""
38
-
39
-
40
38
  @validate_hf_hub_args
41
39
  def build_hf_headers(
42
40
  *,
@@ -28,6 +28,8 @@ from requests import Response
28
28
  from requests.adapters import HTTPAdapter
29
29
  from requests.models import PreparedRequest
30
30
 
31
+ from huggingface_hub.errors import OfflineModeIsEnabled
32
+
31
33
  from .. import constants
32
34
  from . import logging
33
35
  from ._typing import HTTP_METHOD_T
@@ -42,10 +44,6 @@ X_AMZN_TRACE_ID = "X-Amzn-Trace-Id"
42
44
  X_REQUEST_ID = "x-request-id"
43
45
 
44
46
 
45
- class OfflineModeIsEnabled(ConnectionError):
46
- """Raised when a request is made but `HF_HUB_OFFLINE=1` is set as environment variable."""
47
-
48
-
49
47
  class UniqueRequestIdAdapter(HTTPAdapter):
50
48
  X_AMZN_TRACE_ID = "X-Amzn-Trace-Id"
51
49
 
@@ -21,7 +21,19 @@ from typing import Callable, Generator, Iterable, List, Optional, TypeVar, Union
21
21
 
22
22
  T = TypeVar("T")
23
23
 
24
- IGNORE_GIT_FOLDER_PATTERNS = [".git", ".git/*", "*/.git", "**/.git/**"]
24
+ # Always ignore `.git` and `.huggingface` folders in commits
25
+ DEFAULT_IGNORE_PATTERNS = [
26
+ ".git",
27
+ ".git/*",
28
+ "*/.git",
29
+ "**/.git/**",
30
+ ".huggingface",
31
+ ".huggingface/*",
32
+ "*/.huggingface",
33
+ "**/.huggingface/**",
34
+ ]
35
+ # Forbidden to commit these folders
36
+ FORBIDDEN_FOLDERS = [".git", ".huggingface"]
25
37
 
26
38
 
27
39
  def filter_repo_objects(
@@ -30,6 +30,7 @@ _package_versions = {}
30
30
  _CANDIDATES = {
31
31
  "aiohttp": {"aiohttp"},
32
32
  "fastai": {"fastai"},
33
+ "fastapi": {"fastapi"},
33
34
  "fastcore": {"fastcore"},
34
35
  "gradio": {"gradio"},
35
36
  "graphviz": {"graphviz"},
@@ -105,6 +106,15 @@ def get_fastai_version() -> str:
105
106
  return _get_version("fastai")
106
107
 
107
108
 
109
+ # FastAPI
110
+ def is_fastapi_available() -> bool:
111
+ return is_package_available("fastapi")
112
+
113
+
114
+ def get_fastapi_version() -> str:
115
+ return _get_version("fastapi")
116
+
117
+
108
118
  # Fastcore
109
119
  def is_fastcore_available() -> bool:
110
120
  return is_package_available("fastcore")
@@ -10,19 +10,6 @@ TENSOR_NAME_T = str
10
10
  DTYPE_T = Literal["F64", "F32", "F16", "BF16", "I64", "I32", "I16", "I8", "U8", "BOOL"]
11
11
 
12
12
 
13
- class SafetensorsParsingError(Exception):
14
- """Raised when failing to parse a safetensors file metadata.
15
-
16
- This can be the case if the file is not a safetensors file or does not respect the specification.
17
- """
18
-
19
-
20
- class NotASafetensorsRepoError(Exception):
21
- """Raised when a repo is not a Safetensors repo i.e. doesn't have either a `model.safetensors` or a
22
- `model.safetensors.index.json` file.
23
- """
24
-
25
-
26
13
  @dataclass
27
14
  class TensorInfo:
28
15
  """Information about a tensor.
@@ -21,6 +21,8 @@ from functools import wraps
21
21
  from itertools import chain
22
22
  from typing import Any, Dict
23
23
 
24
+ from huggingface_hub.errors import HFValidationError
25
+
24
26
  from ._typing import CallableT
25
27
 
26
28
 
@@ -37,13 +39,6 @@ REPO_ID_REGEX = re.compile(
37
39
  )
38
40
 
39
41
 
40
- class HFValidationError(ValueError):
41
- """Generic exception thrown by `huggingface_hub` validators.
42
-
43
- Inherits from [`ValueError`](https://docs.python.org/3/library/exceptions.html#ValueError).
44
- """
45
-
46
-
47
42
  def validate_hf_hub_args(fn: CallableT) -> CallableT:
48
43
  """Validate values received as argument for any public method of `huggingface_hub`.
49
44
 
@@ -26,32 +26,58 @@ NOTE: Environment variable `HF_HUB_DISABLE_PROGRESS_BARS` has the priority.
26
26
 
27
27
  Example:
28
28
  ```py
29
- from huggingface_hub.utils import (
30
- are_progress_bars_disabled,
31
- disable_progress_bars,
32
- enable_progress_bars,
33
- tqdm,
34
- )
29
+ >>> from huggingface_hub.utils import are_progress_bars_disabled, disable_progress_bars, enable_progress_bars, tqdm
35
30
 
36
31
  # Disable progress bars globally
37
- disable_progress_bars()
32
+ >>> disable_progress_bars()
38
33
 
39
34
  # Use as normal `tqdm`
40
- for _ in tqdm(range(5)):
41
- do_something()
35
+ >>> for _ in tqdm(range(5)):
36
+ ... pass
42
37
 
43
38
  # Still not showing progress bars, as `disable=False` is overwritten to `True`.
44
- for _ in tqdm(range(5), disable=False):
45
- do_something()
39
+ >>> for _ in tqdm(range(5), disable=False):
40
+ ... pass
46
41
 
47
- are_progress_bars_disabled() # True
42
+ >>> are_progress_bars_disabled()
43
+ True
48
44
 
49
45
  # Re-enable progress bars globally
50
- enable_progress_bars()
46
+ >>> enable_progress_bars()
51
47
 
52
48
  # Progress bar will be shown !
53
- for _ in tqdm(range(5)):
54
- do_something()
49
+ >>> for _ in tqdm(range(5)):
50
+ ... pass
51
+ 100%|███████████████████████████████████████| 5/5 [00:00<00:00, 117817.53it/s]
52
+ ```
53
+
54
+ Group-based control:
55
+ ```python
56
+ # Disable progress bars for a specific group
57
+ >>> disable_progress_bars("peft.foo")
58
+
59
+ # Check state of different groups
60
+ >>> assert not are_progress_bars_disabled("peft"))
61
+ >>> assert not are_progress_bars_disabled("peft.something")
62
+ >>> assert are_progress_bars_disabled("peft.foo"))
63
+ >>> assert are_progress_bars_disabled("peft.foo.bar"))
64
+
65
+ # Enable progress bars for a subgroup
66
+ >>> enable_progress_bars("peft.foo.bar")
67
+
68
+ # Check if enabling a subgroup affects the parent group
69
+ >>> assert are_progress_bars_disabled("peft.foo"))
70
+ >>> assert not are_progress_bars_disabled("peft.foo.bar"))
71
+
72
+ # No progress bar for `name="peft.foo"`
73
+ >>> for _ in tqdm(range(5), name="peft.foo"):
74
+ ... pass
75
+
76
+ # Progress bar will be shown for `name="peft.foo.bar"`
77
+ >>> for _ in tqdm(range(5), name="peft.foo.bar"):
78
+ ... pass
79
+ 100%|███████████████████████████████████████| 5/5 [00:00<00:00, 117817.53it/s]
80
+
55
81
  ```
56
82
  """
57
83
 
@@ -59,65 +85,116 @@ import io
59
85
  import warnings
60
86
  from contextlib import contextmanager
61
87
  from pathlib import Path
62
- from typing import Iterator, Optional, Union
88
+ from typing import Dict, Iterator, Optional, Union
63
89
 
64
90
  from tqdm.auto import tqdm as old_tqdm
65
91
 
66
92
  from ..constants import HF_HUB_DISABLE_PROGRESS_BARS
67
93
 
68
94
 
69
- # `HF_HUB_DISABLE_PROGRESS_BARS` is `Optional[bool]` while `_hf_hub_progress_bars_disabled`
70
- # is a `bool`. If `HF_HUB_DISABLE_PROGRESS_BARS` is set to True or False, it has priority.
71
- # If `HF_HUB_DISABLE_PROGRESS_BARS` is None, it means the user have not set the
72
- # environment variable and is free to enable/disable progress bars programmatically.
73
- # TL;DR: env variable has priority over code.
95
+ # The `HF_HUB_DISABLE_PROGRESS_BARS` environment variable can be True, False, or not set (None),
96
+ # allowing for control over progress bar visibility. When set, this variable takes precedence
97
+ # over programmatic settings, dictating whether progress bars should be shown or hidden globally.
98
+ # Essentially, the environment variable's setting overrides any code-based configurations.
74
99
  #
75
- # By default, progress bars are enabled.
76
- _hf_hub_progress_bars_disabled: bool = HF_HUB_DISABLE_PROGRESS_BARS or False
100
+ # If `HF_HUB_DISABLE_PROGRESS_BARS` is not defined (None), it implies that users can manage
101
+ # progress bar visibility through code. By default, progress bars are turned on.
102
+
77
103
 
104
+ progress_bar_states: Dict[str, bool] = {}
78
105
 
79
- def disable_progress_bars() -> None:
106
+
107
+ def disable_progress_bars(name: Optional[str] = None) -> None:
80
108
  """
81
- Disable globally progress bars used in `huggingface_hub` except if `HF_HUB_DISABLE_PROGRESS_BARS` environment
82
- variable has been set.
109
+ Disable progress bars either globally or for a specified group.
110
+
111
+ This function updates the state of progress bars based on a group name.
112
+ If no group name is provided, all progress bars are disabled. The operation
113
+ respects the `HF_HUB_DISABLE_PROGRESS_BARS` environment variable's setting.
114
+
115
+ Args:
116
+ name (`str`, *optional*):
117
+ The name of the group for which to disable the progress bars. If None,
118
+ progress bars are disabled globally.
83
119
 
84
- Use [`~utils.enable_progress_bars`] to re-enable them.
120
+ Raises:
121
+ Warning: If the environment variable precludes changes.
85
122
  """
86
123
  if HF_HUB_DISABLE_PROGRESS_BARS is False:
87
124
  warnings.warn(
88
- "Cannot disable progress bars: environment variable `HF_HUB_DISABLE_PROGRESS_BARS=0` is set and has"
89
- " priority."
125
+ "Cannot disable progress bars: environment variable `HF_HUB_DISABLE_PROGRESS_BARS=0` is set and has priority."
90
126
  )
91
127
  return
92
- global _hf_hub_progress_bars_disabled
93
- _hf_hub_progress_bars_disabled = True
94
128
 
129
+ if name is None:
130
+ progress_bar_states.clear()
131
+ progress_bar_states["_global"] = False
132
+ else:
133
+ keys_to_remove = [key for key in progress_bar_states if key.startswith(f"{name}.")]
134
+ for key in keys_to_remove:
135
+ del progress_bar_states[key]
136
+ progress_bar_states[name] = False
95
137
 
96
- def enable_progress_bars() -> None:
138
+
139
+ def enable_progress_bars(name: Optional[str] = None) -> None:
97
140
  """
98
- Enable globally progress bars used in `huggingface_hub` except if `HF_HUB_DISABLE_PROGRESS_BARS` environment
99
- variable has been set.
141
+ Enable progress bars either globally or for a specified group.
142
+
143
+ This function sets the progress bars to enabled for the specified group or globally
144
+ if no group is specified. The operation is subject to the `HF_HUB_DISABLE_PROGRESS_BARS`
145
+ environment setting.
146
+
147
+ Args:
148
+ name (`str`, *optional*):
149
+ The name of the group for which to enable the progress bars. If None,
150
+ progress bars are enabled globally.
100
151
 
101
- Use [`~utils.disable_progress_bars`] to disable them.
152
+ Raises:
153
+ Warning: If the environment variable precludes changes.
102
154
  """
103
155
  if HF_HUB_DISABLE_PROGRESS_BARS is True:
104
156
  warnings.warn(
105
- "Cannot enable progress bars: environment variable `HF_HUB_DISABLE_PROGRESS_BARS=1` is set and has"
106
- " priority."
157
+ "Cannot enable progress bars: environment variable `HF_HUB_DISABLE_PROGRESS_BARS=1` is set and has priority."
107
158
  )
108
159
  return
109
- global _hf_hub_progress_bars_disabled
110
- _hf_hub_progress_bars_disabled = False
111
160
 
161
+ if name is None:
162
+ progress_bar_states.clear()
163
+ progress_bar_states["_global"] = True
164
+ else:
165
+ keys_to_remove = [key for key in progress_bar_states if key.startswith(f"{name}.")]
166
+ for key in keys_to_remove:
167
+ del progress_bar_states[key]
168
+ progress_bar_states[name] = True
112
169
 
113
- def are_progress_bars_disabled() -> bool:
114
- """Return whether progress bars are globally disabled or not.
115
170
 
116
- Progress bars used in `huggingface_hub` can be enable or disabled globally using [`~utils.enable_progress_bars`]
117
- and [`~utils.disable_progress_bars`] or by setting `HF_HUB_DISABLE_PROGRESS_BARS` as environment variable.
171
+ def are_progress_bars_disabled(name: Optional[str] = None) -> bool:
118
172
  """
119
- global _hf_hub_progress_bars_disabled
120
- return _hf_hub_progress_bars_disabled
173
+ Check if progress bars are disabled globally or for a specific group.
174
+
175
+ This function returns whether progress bars are disabled for a given group or globally.
176
+ It checks the `HF_HUB_DISABLE_PROGRESS_BARS` environment variable first, then the programmatic
177
+ settings.
178
+
179
+ Args:
180
+ name (`str`, *optional*):
181
+ The group name to check; if None, checks the global setting.
182
+
183
+ Returns:
184
+ `bool`: True if progress bars are disabled, False otherwise.
185
+ """
186
+ if HF_HUB_DISABLE_PROGRESS_BARS is True:
187
+ return True
188
+
189
+ if name is None:
190
+ return not progress_bar_states.get("_global", True)
191
+
192
+ while name:
193
+ if name in progress_bar_states:
194
+ return not progress_bar_states[name]
195
+ name = ".".join(name.split(".")[:-1])
196
+
197
+ return not progress_bar_states.get("_global", True)
121
198
 
122
199
 
123
200
  class tqdm(old_tqdm):
@@ -128,7 +205,8 @@ class tqdm(old_tqdm):
128
205
  """
129
206
 
130
207
  def __init__(self, *args, **kwargs):
131
- if are_progress_bars_disabled():
208
+ name = kwargs.pop("name", None) # do not pass `name` to `tqdm`
209
+ if are_progress_bars_disabled(name):
132
210
  kwargs["disable"] = True
133
211
  super().__init__(*args, **kwargs)
134
212
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: huggingface-hub
3
- Version: 0.22.2
3
+ Version: 0.23.0rc0
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.
@@ -48,6 +48,7 @@ Requires-Dist: soundfile ; extra == 'all'
48
48
  Requires-Dist: Pillow ; extra == 'all'
49
49
  Requires-Dist: gradio ; extra == 'all'
50
50
  Requires-Dist: numpy ; extra == 'all'
51
+ Requires-Dist: fastapi ; extra == 'all'
51
52
  Requires-Dist: ruff >=0.3.0 ; extra == 'all'
52
53
  Requires-Dist: mypy ==1.5.1 ; extra == 'all'
53
54
  Requires-Dist: typing-extensions >=4.8.0 ; extra == 'all'
@@ -77,6 +78,7 @@ Requires-Dist: soundfile ; extra == 'dev'
77
78
  Requires-Dist: Pillow ; extra == 'dev'
78
79
  Requires-Dist: gradio ; extra == 'dev'
79
80
  Requires-Dist: numpy ; extra == 'dev'
81
+ Requires-Dist: fastapi ; extra == 'dev'
80
82
  Requires-Dist: ruff >=0.3.0 ; extra == 'dev'
81
83
  Requires-Dist: mypy ==1.5.1 ; extra == 'dev'
82
84
  Requires-Dist: typing-extensions >=4.8.0 ; extra == 'dev'
@@ -123,6 +125,7 @@ Requires-Dist: soundfile ; extra == 'testing'
123
125
  Requires-Dist: Pillow ; extra == 'testing'
124
126
  Requires-Dist: gradio ; extra == 'testing'
125
127
  Requires-Dist: numpy ; extra == 'testing'
128
+ Requires-Dist: fastapi ; extra == 'testing'
126
129
  Provides-Extra: torch
127
130
  Requires-Dist: torch ; extra == 'torch'
128
131
  Requires-Dist: safetensors ; extra == 'torch'
@@ -162,6 +165,7 @@ Requires-Dist: types-urllib3 ; extra == 'typing'
162
165
  <a href="https://github.com/huggingface/huggingface_hub/blob/main/README_cn.md">中文(简体)</a>
163
166
  <p>
164
167
  </h4>
168
+
165
169
  ---
166
170
 
167
171
  **Documentation**: <a href="https://hf.co/docs/huggingface_hub" target="_blank">https://hf.co/docs/huggingface_hub</a>
@@ -1,51 +1,53 @@
1
- huggingface_hub/__init__.py,sha256=lDulrtedaTz17qYF0AzTHuRanxwgeGlVdq6TxmIcuQQ,31075
2
- huggingface_hub/_commit_api.py,sha256=_6NggUJsCBdspCJjXbvZYXH6vLBOnkG6I2E1kc8aJm8,29194
3
- huggingface_hub/_commit_scheduler.py,sha256=FgfjYv3E0oK3iBxDdy45Y7t78FWkmjnBR4dRd5aZviU,13653
4
- huggingface_hub/_inference_endpoints.py,sha256=wGcnxZNFCbMK77SA90fPsZ9bqNGwPopSVr-sTbdw3o8,15763
5
- huggingface_hub/_login.py,sha256=jNTFCnou-eZAtMWl1PDuyZhmpW3O-f4qff9m5hU0UGk,15364
6
- huggingface_hub/_multi_commits.py,sha256=rtN0AaHzamXi1cvr1r2MlqR6y-laZxgRo-30J_I3RwM,12519
7
- huggingface_hub/_snapshot_download.py,sha256=lXsSWaDSOP0hH5_9tOSBazNAtWSBhN8dMcjrLY7hNIc,15677
1
+ huggingface_hub/__init__.py,sha256=gS8NLe1soWfZH-Iffq2XqsqvB33IYXuMNkKrr4bv_yw,32696
2
+ huggingface_hub/_commit_api.py,sha256=Z1sQnJx1xWfspsX6vS8eGTmr-9QujIoItjbnJVVyyCQ,29299
3
+ huggingface_hub/_commit_scheduler.py,sha256=nlJS_vnLb8i92NLrRwJX8Mg9QZ7f3kfLbLlQuEd5YjU,13647
4
+ huggingface_hub/_inference_endpoints.py,sha256=rBx6xgnSJq0JtntF1_zphj7NsCmduICqgZfmvscdE_w,15667
5
+ huggingface_hub/_local_folder.py,sha256=ajjI3vRgV9kGrx2ZPeTnDm8lfGN1eyMshn5gxM_7Q38,8441
6
+ huggingface_hub/_login.py,sha256=E-3hbns3Jo0mjnyPWQVz9c0xPEXuQ-KQhZCQ9R1BE7o,15478
7
+ huggingface_hub/_multi_commits.py,sha256=mFmCP_5hNsruEgDF6kOVyaFkpnbSdNxPWfGUlFbl5O8,12535
8
+ huggingface_hub/_snapshot_download.py,sha256=pN7CEl8X_JJRdrFDeBk0nYecVM7rvULJty9vuxrHnMU,14039
8
9
  huggingface_hub/_space_api.py,sha256=Mae_lqTRyTWyszI5mlObJ2fn9slPxkFPcFTEVADoNQM,5255
9
- huggingface_hub/_tensorboard_logger.py,sha256=uqmkKBKyj6_9XfWq563afgARenZ7-fjEHb16rgY24-Y,7166
10
- huggingface_hub/_webhooks_payload.py,sha256=cF9iWOOacOZfqKGcuVhykDgAZHrHON7VMuLwwehl6O8,2832
11
- huggingface_hub/_webhooks_server.py,sha256=fDbyDu28qhJJQb8tKpH1C8l4cJSvC3Gr2sUo1DbIoD8,15197
10
+ huggingface_hub/_tensorboard_logger.py,sha256=x_56MOZiU2-9QQ1XHOWem39ySRLe29hkalxy2nRaRL4,7470
11
+ huggingface_hub/_webhooks_payload.py,sha256=Xm3KaK7tCOGBlXkuZvbym6zjHXrT1XCrbUFWuXiBmNY,3617
12
+ huggingface_hub/_webhooks_server.py,sha256=9RQ4AS5JVssJhM66FzlyOSQhKwrKG-dV_x6SA8GeOQw,15497
12
13
  huggingface_hub/community.py,sha256=SBaOfI-3atCzRbO0gDS8BYxctbdvD4G0X6D0GfY8Fgc,12203
13
- huggingface_hub/constants.py,sha256=8r0JaNMhLR8X6pC6TnNBLQ-TVcHEbRWk1sJ-LSIj444,7821
14
- huggingface_hub/errors.py,sha256=jCYKeSOsQNfH2t3TsW8kIAXXS1aWl9PaAq3prFfz4CI,704
14
+ huggingface_hub/constants.py,sha256=_xLHaNnAcA9KnENaABbsee3UctmaViE8AQ6njk17ni4,7591
15
+ huggingface_hub/errors.py,sha256=IM0lNbExLzaYEs0HrrPvY4-kyj6DiP2Szu7Jy9slHOE,2083
15
16
  huggingface_hub/fastai_utils.py,sha256=5I7zAfgHJU_mZnxnf9wgWTHrCRu_EAV8VTangDVfE_o,16676
16
- huggingface_hub/file_download.py,sha256=DmOEVmhEsRnX8M0kZmLPLC76eptMT0riTwtThFioV8Q,77476
17
- huggingface_hub/hf_api.py,sha256=dJsdtW6WJW04h84BE46FOg8Pp34AgYhg-NbMg9WrReY,367303
18
- huggingface_hub/hf_file_system.py,sha256=JUCT-VZBesDCB-uN__fvQt3uprGQETGnUlzjC7StQLM,37272
19
- huggingface_hub/hub_mixin.py,sha256=xkUTJiP5TiAiVj6ts9Thffcm4wufZS3jMWil3LB2uvw,30423
17
+ huggingface_hub/file_download.py,sha256=n5ovYqh1-xe3ptRHuS-EXn6X_-3ZVI7C-pQrHD45DtA,82236
18
+ huggingface_hub/hf_api.py,sha256=hyMkURhYXalCNG4Qqx3PhN7Ucru8m18ZidEok_T2504,375216
19
+ huggingface_hub/hf_file_system.py,sha256=r7NGKIIF0o2GaFn_qZzvoCGi6Vyhc3BH8wcFGFztyCw,37425
20
+ huggingface_hub/hub_mixin.py,sha256=ktwuDqSXFU2q2_xj676R-zag_tB3QEiMMVFueJ3YD9g,34644
20
21
  huggingface_hub/inference_api.py,sha256=UXOKu_Ez2I3hDsjguqCcCrj03WFDndehpngYiIAucdg,8331
21
- huggingface_hub/keras_mixin.py,sha256=8L0FEIWy_kmKsGI5d61q_33dGYbmLGhy4kZbqn-YFns,19681
22
- huggingface_hub/lfs.py,sha256=p61RJK13gtgdu0og4KHFosy_GWYDFsQJa0JJoLYSLAk,19592
22
+ huggingface_hub/keras_mixin.py,sha256=2DF-hNGdxJCxqvcw46id-ExH_865ZAXsJd2vmpAuWHQ,19484
23
+ huggingface_hub/lfs.py,sha256=GNmKV_SURcGxMa3p_OyF8ttoq7fZhHjgpyxYzP4VTqU,19690
23
24
  huggingface_hub/repocard.py,sha256=oUrGim27nCHkevPDZDbUp68uKTxB8xbdoyeqv24pexc,34605
24
25
  huggingface_hub/repocard_data.py,sha256=1hIkI8xp0EmW2aR3LtHMrjIMk_W-KJxHslMjpNMwVPg,31911
25
- huggingface_hub/repository.py,sha256=8oNhKNvJRye3dr67cTn8faKkBSiWFgvj7bIBlOpI-8U,54489
26
+ huggingface_hub/repository.py,sha256=87QxXPTK9PCztFW69oD4RZsNMLL9yxoQDdn-F81wSdM,54548
26
27
  huggingface_hub/commands/__init__.py,sha256=AkbM2a-iGh0Vq_xAWhK3mu3uZ44km8-X5uWjKcvcrUQ,928
27
28
  huggingface_hub/commands/_cli_utils.py,sha256=qRdl9opi3yJxIVNCnrmte-jFWmYbjVqd8gBlin8NNzY,1971
28
29
  huggingface_hub/commands/delete_cache.py,sha256=Rb1BtIltJPnQ-th7tcK_L4mFqfk785t3KXV77xXKBP4,16131
29
- huggingface_hub/commands/download.py,sha256=yGq9SlTRHR6TBrky_VBIyo68e0gnMLgYPBYIBG7d9bQ,9167
30
+ huggingface_hub/commands/download.py,sha256=s0dSqUTWG26Q5F2rEFAr_jY2xW4yOvDbSM20vYCjD3I,7880
30
31
  huggingface_hub/commands/env.py,sha256=yYl4DSS14V8t244nAi0t77Izx5LIdgS_dy6xiV5VQME,1226
31
- huggingface_hub/commands/huggingface_cli.py,sha256=o862C98OcZoyqCzY7mNpia1h0KaLJUgSb0y10ot8sxA,1924
32
+ huggingface_hub/commands/huggingface_cli.py,sha256=-MkVPxIKIhP1aTFcExz7krEEDdaVpG9cV7P70ZBJh-U,2030
32
33
  huggingface_hub/commands/lfs.py,sha256=6E769AoRxUDiIOapn1_QvTbNtdUnUiouu2F4Gopp4do,7318
33
34
  huggingface_hub/commands/scan_cache.py,sha256=4o_jQsZloicRa-P8gncUBncVyWswpSF9T6KGlNrGodk,5183
35
+ huggingface_hub/commands/tag.py,sha256=gCoR8G95lhHBzyVytTxT7MnqTmjKYtStDnHXcysOJwg,6287
34
36
  huggingface_hub/commands/upload.py,sha256=Mr69qO60otqCVw0sVSBPykUTkL9HO-pkCyulSD2mROM,13622
35
37
  huggingface_hub/commands/user.py,sha256=QApZJOCQEHADhjunM3hlQ72uqHsearCiCE4SdpzGdcc,6893
36
38
  huggingface_hub/inference/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
37
- huggingface_hub/inference/_client.py,sha256=D4O07nYFo7v5lXZ7id3zubV6u8_RxhTVStoeAgEBs-E,104854
38
- huggingface_hub/inference/_common.py,sha256=BOOBNpF0_V8fDXsi2q5eQ9i4KIlPS6VfMxYxLSgkRdM,16570
39
- huggingface_hub/inference/_templating.py,sha256=_X7CoUjOmMh5KBXx-WGey-z3uh_fP1QT36X638UZpZw,4051
39
+ huggingface_hub/inference/_client.py,sha256=NveAWL3hx8dwse0t_0U3dlRJoEtZ1G12TxZxvWimMF0,117568
40
+ huggingface_hub/inference/_common.py,sha256=L4b0A_raoWAUfl7d2vn6-rLfUcHcG5kjn_wUYIkx4uY,16362
41
+ huggingface_hub/inference/_templating.py,sha256=LCy-U_25R-l5dhcEHsyRwiOrgvKQHXkdSmynWCfsPjI,3991
40
42
  huggingface_hub/inference/_types.py,sha256=C73l5-RO8P1UMBHF8OAO9CRUq7Xdv33pcADoJsGMPSU,1782
41
43
  huggingface_hub/inference/_generated/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
42
- huggingface_hub/inference/_generated/_async_client.py,sha256=d7fvZyyBNnG9zivHS7rCwaR7TlETN7JENR-M_ZEo_3c,108053
43
- huggingface_hub/inference/_generated/types/__init__.py,sha256=SoKeNQ8JjBgKkQIgBTsWJe4-Z75Ebz6WkdL4ZQ27yNc,4450
44
+ huggingface_hub/inference/_generated/_async_client.py,sha256=Yva-stGgFAFH0vFF7o9JE3GbX14bGNz0AhQStfZDB8U,120700
45
+ huggingface_hub/inference/_generated/types/__init__.py,sha256=Ro2qZb2STQz8V3bfElXY4DvmkxKuBaPjzY5BgH-1khI,5110
44
46
  huggingface_hub/inference/_generated/types/audio_classification.py,sha256=wk4kUTLQZoXWLpiUOpKRHRRE-JYqqJlzGVe62VACR-0,1347
45
47
  huggingface_hub/inference/_generated/types/audio_to_audio.py,sha256=n7GeCepzt254yoSLsdjrI1j4fzYgjWzxoaKE5gZJc48,881
46
48
  huggingface_hub/inference/_generated/types/automatic_speech_recognition.py,sha256=-7UHu5QTGwSrJFnrbMgzeUFpJQOGyTmfK_QHgtnx6j8,5352
47
49
  huggingface_hub/inference/_generated/types/base.py,sha256=Cq4gUVtwwLmWyiIIq4NSL8kRk0EWk9QWWHc5Vup2LVg,6213
48
- huggingface_hub/inference/_generated/types/chat_completion.py,sha256=cI-gWOgqEBnwhxwn21OShkKOs3mbjjzJ1Ow2pzLQEwc,3616
50
+ huggingface_hub/inference/_generated/types/chat_completion.py,sha256=cPe_VAs-bfsUELY0fZtMnId6fdVoJnAcRmJItD5Otck,8185
49
51
  huggingface_hub/inference/_generated/types/depth_estimation.py,sha256=lmLmd8S313ZMCG94RblwquL0UN_0hJmXAhWUqSIrtwc,898
50
52
  huggingface_hub/inference/_generated/types/document_question_answering.py,sha256=_hBzK4Pu9X_zXsgOO4JNSloIKuVfE5m7eGwEw5YTfZ4,3264
51
53
  huggingface_hub/inference/_generated/types/feature_extraction.py,sha256=KerTrRR5YR02X0qBDzrtK8953amCGf_adSUbfWOozD4,664
@@ -61,7 +63,7 @@ huggingface_hub/inference/_generated/types/summarization.py,sha256=RWCXh7yftI_JW
61
63
  huggingface_hub/inference/_generated/types/table_question_answering.py,sha256=PuVZlR6dI6FEUK7pjMSVMtzkDgrcxdKjfcnDbVmPdSs,1569
62
64
  huggingface_hub/inference/_generated/types/text2text_generation.py,sha256=SZYfdhyraG5vZ2Jzm1C8k9w9IYLxMtm5UUu1tU2oOQk,1604
63
65
  huggingface_hub/inference/_generated/types/text_classification.py,sha256=vC7B1sBzZ4gdLjE2i2Y7w5cpdaFwQKK1dlWqW0asjIk,1347
64
- huggingface_hub/inference/_generated/types/text_generation.py,sha256=VHhkhEj-yEVGuy4BYgDNzmAPBPJWL3N1B4n4SUOymNk,5866
66
+ huggingface_hub/inference/_generated/types/text_generation.py,sha256=wR2DrDazFmeqIchkHXPUv17d4zWUmiUSPBdUFCDqJNY,4284
65
67
  huggingface_hub/inference/_generated/types/text_to_audio.py,sha256=cgvECsiwsycgP9Tfs_GU1CJfo9AngVn6x9s4fHCP-g4,4819
66
68
  huggingface_hub/inference/_generated/types/text_to_image.py,sha256=oBGeJ-S9WfsMxVQlvEOll9yaCyMXZ277wsYFD8bt87U,1931
67
69
  huggingface_hub/inference/_generated/types/token_classification.py,sha256=7oL8AZOTWtf2bYD2T3236GDNMtUl7FtydaB6We7wbfw,1890
@@ -78,7 +80,7 @@ huggingface_hub/serialization/_tensorflow.py,sha256=Rf4kw1NYxEaoUXB8aLtQLHrTjgob
78
80
  huggingface_hub/serialization/_torch.py,sha256=xYR6e_G9laMTroWLiQRABSuloTQuuRSQNyYHdT_rmXU,7687
79
81
  huggingface_hub/templates/datasetcard_template.md,sha256=W-EMqR6wndbrnZorkVv56URWPG49l7MATGeI015kTvs,5503
80
82
  huggingface_hub/templates/modelcard_template.md,sha256=4AqArS3cqdtbit5Bo-DhjcnDFR-pza5hErLLTPM4Yuc,6870
81
- huggingface_hub/utils/__init__.py,sha256=XYIIkKiDeoy8dQQegBYSfILOzdt8NW_cfquY7omX0fQ,3478
83
+ huggingface_hub/utils/__init__.py,sha256=44yhxTtWsuMGrZcALK-3UuVazGBtc94z9nZwLmLnu8w,3589
82
84
  huggingface_hub/utils/_cache_assets.py,sha256=kai77HPQMfYpROouMBQCr_gdBCaeTm996Sqj0dExbNg,5728
83
85
  huggingface_hub/utils/_cache_manager.py,sha256=Fs1XVP1UGzUTogMfMfEi_MfpURzHyW__djX0s2oLmrY,29307
84
86
  huggingface_hub/utils/_chunk_utils.py,sha256=kRCaj5228_vKcyLWspd8Xq01f17Jz6ds5Sr9ed5d_RU,2130
@@ -86,28 +88,28 @@ huggingface_hub/utils/_datetime.py,sha256=DHnktKm1taeOe2XCBgNU4pVck5d70qu8FJ7nAC
86
88
  huggingface_hub/utils/_deprecation.py,sha256=HZhRGGUX_QMKBBBwHHlffLtmCSK01TOpeXHefZbPfwI,4872
87
89
  huggingface_hub/utils/_errors.py,sha256=N5nUkCCaj8393wntazeTcKNrwDZfsDVHVMxxreHPfaE,15141
88
90
  huggingface_hub/utils/_experimental.py,sha256=crCPH6k6-11wwH2GZuZzZzZbjUotay49ywV1SSJhMHM,2395
89
- huggingface_hub/utils/_fixes.py,sha256=EqG7u36J9C3NtL5VukDilca90GV9idrENzsEVhtdbI4,2829
91
+ huggingface_hub/utils/_fixes.py,sha256=wJ0FGewO6_zZFo65crJWcth9zODZz4TdyeDxkGNSeB0,2898
90
92
  huggingface_hub/utils/_git_credential.py,sha256=SDdsiREr1TcAR2Ze2TB0E5cYzVJgvDZrs60od9lAsMc,4596
91
- huggingface_hub/utils/_headers.py,sha256=T_C1RA0bqEYL0oiE4WdFMAKXEUPHN-D43vchjiwKcZ4,9643
93
+ huggingface_hub/utils/_headers.py,sha256=05sDPAi7-Fs3Z4YLbrTJTAbIT7yjSX9DEqotd6gHqhQ,9593
92
94
  huggingface_hub/utils/_hf_folder.py,sha256=gWH-TT9h_6X_CyrtLTtKNEawf9kKlCHraFiOu09BuLk,3613
93
- huggingface_hub/utils/_http.py,sha256=VQcukUKXXDlDQwyG-LGVtAIr3DprVC-R_HcXZzbAfak,13543
95
+ huggingface_hub/utils/_http.py,sha256=-Vuphx-pX9dvVBUf-AS2dECjO0HJBscXzith_FKOgO4,13458
94
96
  huggingface_hub/utils/_pagination.py,sha256=hzLFLd8i_DKkPRVYzOx2CxLt5lcocEiAxDJriQUjAjY,1841
95
- huggingface_hub/utils/_paths.py,sha256=Ah_diO-gSWw9TYylJl_HNB2XXftgIi36HNlKAYQHCms,4398
96
- huggingface_hub/utils/_runtime.py,sha256=6PxkDPWj3ltRlE2-zAr3vZTXfi1OUjxILsmRN-s_wZY,10851
97
- huggingface_hub/utils/_safetensors.py,sha256=EE9v9HflWBUqIegn0dCGHgNu9G9Db3v2aszvG4ldPF8,4876
97
+ huggingface_hub/utils/_paths.py,sha256=bs6PlgsVdAINC9bAKivVOcOod1lIun0YgJbQ3VpmpPE,4646
98
+ huggingface_hub/utils/_runtime.py,sha256=QooW0cgJ349PX8x46KBluN01KMMvUm0ZQ9SsmidBH74,11041
99
+ huggingface_hub/utils/_safetensors.py,sha256=GW3nyv7xQcuwObKYeYoT9VhURVzG1DZTbKBKho8Bbos,4458
98
100
  huggingface_hub/utils/_subprocess.py,sha256=34ETD8JvLzm16NRZHciaCLXdE9aRyxuDdOA5gdNvMJ8,4617
99
101
  huggingface_hub/utils/_telemetry.py,sha256=jHAdgWNcL9nVvMT3ec3i78O-cwL09GnlifuokzpQjMI,4641
100
102
  huggingface_hub/utils/_token.py,sha256=cxBZaafW2IsJ2dKWd55v7056zycW1ewp_nPk8dNcSO4,5476
101
103
  huggingface_hub/utils/_typing.py,sha256=pXh7GtVtSBD_Fvvthex9BRTAJZ6bWScUOw06oJS0Lek,2025
102
- huggingface_hub/utils/_validators.py,sha256=otFT4xT3s_E_-jrzH4NR7xWgK7UlRkwk_KAI9XK1mb0,9359
104
+ huggingface_hub/utils/_validators.py,sha256=dDsVG31iooTYrIyi5Vwr1DukL0fEmJwu3ceVNduhsuE,9204
103
105
  huggingface_hub/utils/endpoint_helpers.py,sha256=n_VguR_L2Vl6Mi_4PFO2iAd5xaPeQRiD8KRBpzs4nMw,9536
104
106
  huggingface_hub/utils/insecure_hashlib.py,sha256=OjxlvtSQHpbLp9PWSrXBDJ0wHjxCBU-SQJgucEEXDbU,1058
105
107
  huggingface_hub/utils/logging.py,sha256=Cp03s0uEl3kDM9XHQW9a8GAoExODQ-e7kEtgMt-_To8,4728
106
108
  huggingface_hub/utils/sha.py,sha256=QLlIwPCyz46MmUc_4L8xl87KfYoBks9kPgsMZ5JCz-o,902
107
- huggingface_hub/utils/tqdm.py,sha256=2H80n_kDpvp7P4i7MaYR47t41i0l6ODi5mab1oof1dk,6335
108
- huggingface_hub-0.22.2.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
109
- huggingface_hub-0.22.2.dist-info/METADATA,sha256=9S0T9nMXn6Q7cesvjVBiSk4oEid8LZ3gT9fuJLGrWNk,12869
110
- huggingface_hub-0.22.2.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
111
- huggingface_hub-0.22.2.dist-info/entry_points.txt,sha256=Y3Z2L02rBG7va_iE6RPXolIgwOdwUFONyRN3kXMxZ0g,131
112
- huggingface_hub-0.22.2.dist-info/top_level.txt,sha256=8KzlQJAY4miUvjAssOAJodqKOw3harNzuiwGQ9qLSSk,16
113
- huggingface_hub-0.22.2.dist-info/RECORD,,
109
+ huggingface_hub/utils/tqdm.py,sha256=x35PqUA8bBBztPrqhv87Y_TGl5CdlfBs4pe6k1YyDJ8,9390
110
+ huggingface_hub-0.23.0rc0.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
111
+ huggingface_hub-0.23.0rc0.dist-info/METADATA,sha256=KdGyM77w48DF-lhYLSN8cqM8V9iomX999RlcfsUOPSI,12997
112
+ huggingface_hub-0.23.0rc0.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
113
+ huggingface_hub-0.23.0rc0.dist-info/entry_points.txt,sha256=Y3Z2L02rBG7va_iE6RPXolIgwOdwUFONyRN3kXMxZ0g,131
114
+ huggingface_hub-0.23.0rc0.dist-info/top_level.txt,sha256=8KzlQJAY4miUvjAssOAJodqKOw3harNzuiwGQ9qLSSk,16
115
+ huggingface_hub-0.23.0rc0.dist-info/RECORD,,