huggingface-hub 0.29.3__py3-none-any.whl → 0.30.0__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 +16 -1
- huggingface_hub/_commit_api.py +142 -4
- huggingface_hub/_space_api.py +15 -2
- huggingface_hub/_webhooks_server.py +2 -0
- huggingface_hub/commands/delete_cache.py +66 -20
- huggingface_hub/commands/upload.py +16 -2
- huggingface_hub/constants.py +45 -7
- huggingface_hub/errors.py +19 -0
- huggingface_hub/file_download.py +163 -35
- huggingface_hub/hf_api.py +349 -28
- huggingface_hub/hub_mixin.py +19 -4
- huggingface_hub/inference/_client.py +73 -70
- huggingface_hub/inference/_generated/_async_client.py +80 -77
- huggingface_hub/inference/_generated/types/__init__.py +1 -0
- huggingface_hub/inference/_generated/types/chat_completion.py +20 -10
- huggingface_hub/inference/_generated/types/image_to_image.py +2 -0
- huggingface_hub/inference/_providers/__init__.py +7 -1
- huggingface_hub/inference/_providers/_common.py +9 -5
- huggingface_hub/inference/_providers/black_forest_labs.py +5 -5
- huggingface_hub/inference/_providers/cohere.py +1 -1
- huggingface_hub/inference/_providers/fal_ai.py +64 -7
- huggingface_hub/inference/_providers/fireworks_ai.py +4 -1
- huggingface_hub/inference/_providers/hf_inference.py +41 -4
- huggingface_hub/inference/_providers/hyperbolic.py +3 -3
- huggingface_hub/inference/_providers/nebius.py +3 -3
- huggingface_hub/inference/_providers/novita.py +35 -5
- huggingface_hub/inference/_providers/openai.py +22 -0
- huggingface_hub/inference/_providers/replicate.py +3 -3
- huggingface_hub/inference/_providers/together.py +3 -3
- huggingface_hub/utils/__init__.py +8 -0
- huggingface_hub/utils/_http.py +4 -1
- huggingface_hub/utils/_runtime.py +11 -0
- huggingface_hub/utils/_xet.py +199 -0
- huggingface_hub/utils/tqdm.py +30 -2
- {huggingface_hub-0.29.3.dist-info → huggingface_hub-0.30.0.dist-info}/METADATA +3 -1
- {huggingface_hub-0.29.3.dist-info → huggingface_hub-0.30.0.dist-info}/RECORD +40 -38
- {huggingface_hub-0.29.3.dist-info → huggingface_hub-0.30.0.dist-info}/LICENSE +0 -0
- {huggingface_hub-0.29.3.dist-info → huggingface_hub-0.30.0.dist-info}/WHEEL +0 -0
- {huggingface_hub-0.29.3.dist-info → huggingface_hub-0.30.0.dist-info}/entry_points.txt +0 -0
- {huggingface_hub-0.29.3.dist-info → huggingface_hub-0.30.0.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
from dataclasses import dataclass
|
|
2
|
+
from enum import Enum
|
|
3
|
+
from typing import Dict, Optional
|
|
4
|
+
|
|
5
|
+
import requests
|
|
6
|
+
|
|
7
|
+
from .. import constants
|
|
8
|
+
from . import get_session, hf_raise_for_status, validate_hf_hub_args
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class XetTokenType(str, Enum):
|
|
12
|
+
READ = "read"
|
|
13
|
+
WRITE = "write"
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
@dataclass(frozen=True)
|
|
17
|
+
class XetFileData:
|
|
18
|
+
file_hash: str
|
|
19
|
+
refresh_route: str
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
@dataclass(frozen=True)
|
|
23
|
+
class XetConnectionInfo:
|
|
24
|
+
access_token: str
|
|
25
|
+
expiration_unix_epoch: int
|
|
26
|
+
endpoint: str
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
def parse_xet_file_data_from_response(response: requests.Response) -> Optional[XetFileData]:
|
|
30
|
+
"""
|
|
31
|
+
Parse XET file metadata from an HTTP response.
|
|
32
|
+
|
|
33
|
+
This function extracts XET file metadata from the HTTP headers or HTTP links
|
|
34
|
+
of a given response object. If the required metadata is not found, it returns `None`.
|
|
35
|
+
|
|
36
|
+
Args:
|
|
37
|
+
response (`requests.Response`):
|
|
38
|
+
The HTTP response object containing headers dict and links dict to extract the XET metadata from.
|
|
39
|
+
Returns:
|
|
40
|
+
`Optional[XetFileData]`:
|
|
41
|
+
An instance of `XetFileData` containing the file hash and refresh route if the metadata
|
|
42
|
+
is found. Returns `None` if the required metadata is missing.
|
|
43
|
+
"""
|
|
44
|
+
if response is None:
|
|
45
|
+
return None
|
|
46
|
+
try:
|
|
47
|
+
file_hash = response.headers[constants.HUGGINGFACE_HEADER_X_XET_HASH]
|
|
48
|
+
|
|
49
|
+
if constants.HUGGINGFACE_HEADER_LINK_XET_AUTH_KEY in response.links:
|
|
50
|
+
refresh_route = response.links[constants.HUGGINGFACE_HEADER_LINK_XET_AUTH_KEY]["url"]
|
|
51
|
+
else:
|
|
52
|
+
refresh_route = response.headers[constants.HUGGINGFACE_HEADER_X_XET_REFRESH_ROUTE]
|
|
53
|
+
except KeyError:
|
|
54
|
+
return None
|
|
55
|
+
|
|
56
|
+
return XetFileData(
|
|
57
|
+
file_hash=file_hash,
|
|
58
|
+
refresh_route=refresh_route,
|
|
59
|
+
)
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
def parse_xet_connection_info_from_headers(headers: Dict[str, str]) -> Optional[XetConnectionInfo]:
|
|
63
|
+
"""
|
|
64
|
+
Parse XET connection info from the HTTP headers or return None if not found.
|
|
65
|
+
Args:
|
|
66
|
+
headers (`Dict`):
|
|
67
|
+
HTTP headers to extract the XET metadata from.
|
|
68
|
+
Returns:
|
|
69
|
+
`XetConnectionInfo` or `None`:
|
|
70
|
+
The information needed to connect to the XET storage service.
|
|
71
|
+
Returns `None` if the headers do not contain the XET connection info.
|
|
72
|
+
"""
|
|
73
|
+
try:
|
|
74
|
+
endpoint = headers[constants.HUGGINGFACE_HEADER_X_XET_ENDPOINT]
|
|
75
|
+
access_token = headers[constants.HUGGINGFACE_HEADER_X_XET_ACCESS_TOKEN]
|
|
76
|
+
expiration_unix_epoch = int(headers[constants.HUGGINGFACE_HEADER_X_XET_EXPIRATION])
|
|
77
|
+
except (KeyError, ValueError, TypeError):
|
|
78
|
+
return None
|
|
79
|
+
|
|
80
|
+
return XetConnectionInfo(
|
|
81
|
+
endpoint=endpoint,
|
|
82
|
+
access_token=access_token,
|
|
83
|
+
expiration_unix_epoch=expiration_unix_epoch,
|
|
84
|
+
)
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
@validate_hf_hub_args
|
|
88
|
+
def refresh_xet_connection_info(
|
|
89
|
+
*,
|
|
90
|
+
file_data: XetFileData,
|
|
91
|
+
headers: Dict[str, str],
|
|
92
|
+
endpoint: Optional[str] = None,
|
|
93
|
+
) -> XetConnectionInfo:
|
|
94
|
+
"""
|
|
95
|
+
Utilizes the information in the parsed metadata to request the Hub xet connection information.
|
|
96
|
+
This includes the access token, expiration, and XET service URL.
|
|
97
|
+
Args:
|
|
98
|
+
file_data: (`XetFileData`):
|
|
99
|
+
The file data needed to refresh the xet connection information.
|
|
100
|
+
headers (`Dict[str, str]`):
|
|
101
|
+
Headers to use for the request, including authorization headers and user agent.
|
|
102
|
+
endpoint (`str`, `optional`):
|
|
103
|
+
The endpoint to use for the request. Defaults to the Hub endpoint.
|
|
104
|
+
Returns:
|
|
105
|
+
`XetConnectionInfo`:
|
|
106
|
+
The connection information needed to make the request to the xet storage service.
|
|
107
|
+
Raises:
|
|
108
|
+
[`~utils.HfHubHTTPError`]
|
|
109
|
+
If the Hub API returned an error.
|
|
110
|
+
[`ValueError`](https://docs.python.org/3/library/exceptions.html#ValueError)
|
|
111
|
+
If the Hub API response is improperly formatted.
|
|
112
|
+
"""
|
|
113
|
+
if file_data.refresh_route is None:
|
|
114
|
+
raise ValueError("The provided xet metadata does not contain a refresh endpoint.")
|
|
115
|
+
endpoint = endpoint if endpoint is not None else constants.ENDPOINT
|
|
116
|
+
|
|
117
|
+
# TODO: An upcoming version of hub will prepend the endpoint to the refresh route in
|
|
118
|
+
# the headers. Once that's deployed we can call fetch on the refresh route directly.
|
|
119
|
+
url = file_data.refresh_route
|
|
120
|
+
if url.startswith("/"):
|
|
121
|
+
url = f"{endpoint}{url}"
|
|
122
|
+
|
|
123
|
+
return _fetch_xet_connection_info_with_url(url, headers)
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
@validate_hf_hub_args
|
|
127
|
+
def fetch_xet_connection_info_from_repo_info(
|
|
128
|
+
*,
|
|
129
|
+
token_type: XetTokenType,
|
|
130
|
+
repo_id: str,
|
|
131
|
+
repo_type: str,
|
|
132
|
+
revision: Optional[str] = None,
|
|
133
|
+
headers: Dict[str, str],
|
|
134
|
+
endpoint: Optional[str] = None,
|
|
135
|
+
params: Optional[Dict[str, str]] = None,
|
|
136
|
+
) -> XetConnectionInfo:
|
|
137
|
+
"""
|
|
138
|
+
Uses the repo info to request a xet access token from Hub.
|
|
139
|
+
Args:
|
|
140
|
+
token_type (`XetTokenType`):
|
|
141
|
+
Type of the token to request: `"read"` or `"write"`.
|
|
142
|
+
repo_id (`str`):
|
|
143
|
+
A namespace (user or an organization) and a repo name separated by a `/`.
|
|
144
|
+
repo_type (`str`):
|
|
145
|
+
Type of the repo to upload to: `"model"`, `"dataset"` or `"space"`.
|
|
146
|
+
revision (`str`, `optional`):
|
|
147
|
+
The revision of the repo to get the token for.
|
|
148
|
+
headers (`Dict[str, str]`):
|
|
149
|
+
Headers to use for the request, including authorization headers and user agent.
|
|
150
|
+
endpoint (`str`, `optional`):
|
|
151
|
+
The endpoint to use for the request. Defaults to the Hub endpoint.
|
|
152
|
+
params (`Dict[str, str]`, `optional`):
|
|
153
|
+
Additional parameters to pass with the request.
|
|
154
|
+
Returns:
|
|
155
|
+
`XetConnectionInfo`:
|
|
156
|
+
The connection information needed to make the request to the xet storage service.
|
|
157
|
+
Raises:
|
|
158
|
+
[`~utils.HfHubHTTPError`]
|
|
159
|
+
If the Hub API returned an error.
|
|
160
|
+
[`ValueError`](https://docs.python.org/3/library/exceptions.html#ValueError)
|
|
161
|
+
If the Hub API response is improperly formatted.
|
|
162
|
+
"""
|
|
163
|
+
endpoint = endpoint if endpoint is not None else constants.ENDPOINT
|
|
164
|
+
url = f"{endpoint}/api/{repo_type}s/{repo_id}/xet-{token_type.value}-token/{revision}"
|
|
165
|
+
return _fetch_xet_connection_info_with_url(url, headers, params)
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
@validate_hf_hub_args
|
|
169
|
+
def _fetch_xet_connection_info_with_url(
|
|
170
|
+
url: str,
|
|
171
|
+
headers: Dict[str, str],
|
|
172
|
+
params: Optional[Dict[str, str]] = None,
|
|
173
|
+
) -> XetConnectionInfo:
|
|
174
|
+
"""
|
|
175
|
+
Requests the xet connection info from the supplied URL. This includes the
|
|
176
|
+
access token, expiration time, and endpoint to use for the xet storage service.
|
|
177
|
+
Args:
|
|
178
|
+
url: (`str`):
|
|
179
|
+
The access token endpoint URL.
|
|
180
|
+
headers (`Dict[str, str]`):
|
|
181
|
+
Headers to use for the request, including authorization headers and user agent.
|
|
182
|
+
params (`Dict[str, str]`, `optional`):
|
|
183
|
+
Additional parameters to pass with the request.
|
|
184
|
+
Returns:
|
|
185
|
+
`XetConnectionInfo`:
|
|
186
|
+
The connection information needed to make the request to the xet storage service.
|
|
187
|
+
Raises:
|
|
188
|
+
[`~utils.HfHubHTTPError`]
|
|
189
|
+
If the Hub API returned an error.
|
|
190
|
+
[`ValueError`](https://docs.python.org/3/library/exceptions.html#ValueError)
|
|
191
|
+
If the Hub API response is improperly formatted.
|
|
192
|
+
"""
|
|
193
|
+
resp = get_session().get(headers=headers, url=url, params=params)
|
|
194
|
+
hf_raise_for_status(resp)
|
|
195
|
+
|
|
196
|
+
metadata = parse_xet_connection_info_from_headers(resp.headers) # type: ignore
|
|
197
|
+
if metadata is None:
|
|
198
|
+
raise ValueError("Xet headers have not been correctly set by the server.")
|
|
199
|
+
return metadata
|
huggingface_hub/utils/tqdm.py
CHANGED
|
@@ -84,9 +84,9 @@ import io
|
|
|
84
84
|
import logging
|
|
85
85
|
import os
|
|
86
86
|
import warnings
|
|
87
|
-
from contextlib import contextmanager
|
|
87
|
+
from contextlib import contextmanager, nullcontext
|
|
88
88
|
from pathlib import Path
|
|
89
|
-
from typing import Dict, Iterator, Optional, Union
|
|
89
|
+
from typing import ContextManager, Dict, Iterator, Optional, Union
|
|
90
90
|
|
|
91
91
|
from tqdm.auto import tqdm as old_tqdm
|
|
92
92
|
|
|
@@ -277,3 +277,31 @@ def tqdm_stream_file(path: Union[Path, str]) -> Iterator[io.BufferedReader]:
|
|
|
277
277
|
yield f
|
|
278
278
|
|
|
279
279
|
pbar.close()
|
|
280
|
+
|
|
281
|
+
|
|
282
|
+
def _get_progress_bar_context(
|
|
283
|
+
*,
|
|
284
|
+
desc: str,
|
|
285
|
+
log_level: int,
|
|
286
|
+
total: Optional[int] = None,
|
|
287
|
+
initial: int = 0,
|
|
288
|
+
unit: str = "B",
|
|
289
|
+
unit_scale: bool = True,
|
|
290
|
+
name: Optional[str] = None,
|
|
291
|
+
_tqdm_bar: Optional[tqdm] = None,
|
|
292
|
+
) -> ContextManager[tqdm]:
|
|
293
|
+
if _tqdm_bar is not None:
|
|
294
|
+
return nullcontext(_tqdm_bar)
|
|
295
|
+
# ^ `contextlib.nullcontext` mimics a context manager that does nothing
|
|
296
|
+
# Makes it easier to use the same code path for both cases but in the later
|
|
297
|
+
# case, the progress bar is not closed when exiting the context manager.
|
|
298
|
+
|
|
299
|
+
return tqdm(
|
|
300
|
+
unit=unit,
|
|
301
|
+
unit_scale=unit_scale,
|
|
302
|
+
total=total,
|
|
303
|
+
initial=initial,
|
|
304
|
+
desc=desc,
|
|
305
|
+
disable=is_tqdm_disabled(log_level=log_level),
|
|
306
|
+
name=name,
|
|
307
|
+
)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: huggingface-hub
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.30.0
|
|
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.
|
|
@@ -98,6 +98,8 @@ Requires-Dist: fastai>=2.4; extra == "fastai"
|
|
|
98
98
|
Requires-Dist: fastcore>=1.3.27; extra == "fastai"
|
|
99
99
|
Provides-Extra: hf_transfer
|
|
100
100
|
Requires-Dist: hf-transfer>=0.1.4; extra == "hf-transfer"
|
|
101
|
+
Provides-Extra: hf_xet
|
|
102
|
+
Requires-Dist: hf-xet>=0.1.4; extra == "hf-xet"
|
|
101
103
|
Provides-Extra: inference
|
|
102
104
|
Requires-Dist: aiohttp; extra == "inference"
|
|
103
105
|
Provides-Extra: quality
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
huggingface_hub/__init__.py,sha256=-
|
|
2
|
-
huggingface_hub/_commit_api.py,sha256=
|
|
1
|
+
huggingface_hub/__init__.py,sha256=-u0jYUyeQ5L8Evkz9JGHgzblAbN8q1HxEZRm6R6Mv60,49368
|
|
2
|
+
huggingface_hub/_commit_api.py,sha256=cihZ2Zn4_AEjSVSuxwN7Sr42aKz2a38OkBFSqD-JB7I,38777
|
|
3
3
|
huggingface_hub/_commit_scheduler.py,sha256=tfIoO1xWHjTJ6qy6VS6HIoymDycFPg0d6pBSZprrU2U,14679
|
|
4
4
|
huggingface_hub/_inference_endpoints.py,sha256=SLoZOQtv_hNl0Xuafo34L--zuCZ3zSJja2tSkYkG5V4,17268
|
|
5
5
|
huggingface_hub/_local_folder.py,sha256=ScpCJUITFC0LMkiebyaGiBhAU6fvQK8w7pVV6L8rhmc,16575
|
|
6
6
|
huggingface_hub/_login.py,sha256=ssf4viT5BhHI2ZidnSuAZcrwSxzaLOrf8xgRVKuvu_A,20298
|
|
7
7
|
huggingface_hub/_snapshot_download.py,sha256=zZDaPBb4CfMCU7DgxjbaFmdoISCY425RaH7wXwFijEM,14992
|
|
8
|
-
huggingface_hub/_space_api.py,sha256=
|
|
8
|
+
huggingface_hub/_space_api.py,sha256=8SdwaXUjmtFPbHig5wrFRkQ7C53ougcnndhYDH-lsgg,5553
|
|
9
9
|
huggingface_hub/_tensorboard_logger.py,sha256=ZkYcAUiRC8RGL214QUYtp58O8G5tn-HF6DCWha9imcA,8358
|
|
10
10
|
huggingface_hub/_upload_large_folder.py,sha256=eedUTowflZx1thFVLDv7hLd_LQqixa5NVsUco7R6F5c,23531
|
|
11
11
|
huggingface_hub/_webhooks_payload.py,sha256=Xm3KaK7tCOGBlXkuZvbym6zjHXrT1XCrbUFWuXiBmNY,3617
|
|
12
|
-
huggingface_hub/_webhooks_server.py,sha256=
|
|
12
|
+
huggingface_hub/_webhooks_server.py,sha256=5J63wk9MUGKBNJVsOD9i60mJ-VMp0YYmlf87vQsl-L8,15767
|
|
13
13
|
huggingface_hub/community.py,sha256=4MtcoxEI9_0lmmilBEnvUEi8_O1Ivfa8p6eKxYU5-ts,12198
|
|
14
|
-
huggingface_hub/constants.py,sha256=
|
|
15
|
-
huggingface_hub/errors.py,sha256=
|
|
14
|
+
huggingface_hub/constants.py,sha256=4rn5JWp4k5JRNWcnl1XkPPFr-d6GkYtkkg0-qLcxcj4,9481
|
|
15
|
+
huggingface_hub/errors.py,sha256=cE0bwLHbv8e34tbOdlkl-exjDoFxGgCLYmTYlDkpJgI,10155
|
|
16
16
|
huggingface_hub/fastai_utils.py,sha256=DpeH9d-6ut2k_nCAAwglM51XmRmgfbRe2SPifpVL5Yk,16745
|
|
17
|
-
huggingface_hub/file_download.py,sha256=
|
|
18
|
-
huggingface_hub/hf_api.py,sha256=
|
|
17
|
+
huggingface_hub/file_download.py,sha256=s3kUdf7NhcRjoJpLcYRZOz1deC0Q7k-_gWIBwcd2MG4,76327
|
|
18
|
+
huggingface_hub/hf_api.py,sha256=LZgjfr2OVjz1t85uNoqv2Wn0sDU9KOpiOCDE7g2fx3c,437885
|
|
19
19
|
huggingface_hub/hf_file_system.py,sha256=m_g7uYLGxTdsBnhvR5835jvYMAuEBsUSFvEbzZKzzoo,47500
|
|
20
|
-
huggingface_hub/hub_mixin.py,sha256
|
|
20
|
+
huggingface_hub/hub_mixin.py,sha256=fdAhdDujpUBZPUB6AfzzMRBeQ_Ua9tgQkhHE_ao5n2k,38062
|
|
21
21
|
huggingface_hub/inference_api.py,sha256=b4-NhPSn9b44nYKV8tDKXodmE4JVdEymMWL4CVGkzlE,8323
|
|
22
22
|
huggingface_hub/keras_mixin.py,sha256=3d2oW35SALXHq-WHoLD_tbq0UrcabGKj3HidtPRx51U,19574
|
|
23
23
|
huggingface_hub/lfs.py,sha256=n-TIjK7J7aXG3zi__0nkd6aNkE4djOf9CD6dYQOQ5P8,16649
|
|
@@ -27,7 +27,7 @@ huggingface_hub/repocard_data.py,sha256=EqJ-54QF0qngitsZwCkPQjPwzrkLpxt_qU4lxekM
|
|
|
27
27
|
huggingface_hub/repository.py,sha256=xVQR-MRKNDfJ_Z_99DwtXZB3xNO06eYG_GvRM4fLiTU,54557
|
|
28
28
|
huggingface_hub/commands/__init__.py,sha256=AkbM2a-iGh0Vq_xAWhK3mu3uZ44km8-X5uWjKcvcrUQ,928
|
|
29
29
|
huggingface_hub/commands/_cli_utils.py,sha256=Nt6CjbkYqQQRuh70bUXVA6rZpbZt_Sa1WqBUxjQLu6g,2095
|
|
30
|
-
huggingface_hub/commands/delete_cache.py,sha256=
|
|
30
|
+
huggingface_hub/commands/delete_cache.py,sha256=6UahqCex_3qyxDltn4GcaiuwzxfInPlXCK10o33eZVU,17623
|
|
31
31
|
huggingface_hub/commands/download.py,sha256=1YXKttB8YBX7SJ0Jxg0t1n8yp2BUZXtY0ck6DhCg-XE,8183
|
|
32
32
|
huggingface_hub/commands/env.py,sha256=yYl4DSS14V8t244nAi0t77Izx5LIdgS_dy6xiV5VQME,1226
|
|
33
33
|
huggingface_hub/commands/huggingface_cli.py,sha256=ZwW_nwgppyj-GA6iM3mgmbXMZ63bgtpGl_yIQDyWS4A,2414
|
|
@@ -35,28 +35,28 @@ huggingface_hub/commands/lfs.py,sha256=xdbnNRO04UuQemEhUGT809jFgQn9Rj-SnyT_0Ph-V
|
|
|
35
35
|
huggingface_hub/commands/repo_files.py,sha256=Nfv8TjuaZVOrj7TZjrojtjdD8Wf54aZvYPDEOevh7tA,4923
|
|
36
36
|
huggingface_hub/commands/scan_cache.py,sha256=xdD_zRKd49hRuATyptG-zaY08h1f9CAjB5zZBKe0YEo,8563
|
|
37
37
|
huggingface_hub/commands/tag.py,sha256=0LNQZyK-WKi0VIL9i1xWzKxJ1ILw1jxMF_E6t2weJss,6288
|
|
38
|
-
huggingface_hub/commands/upload.py,sha256=
|
|
38
|
+
huggingface_hub/commands/upload.py,sha256=dq6MAJMUm4HBy8qaLgej-WQZ1Es12C4RefT149_wf6A,14366
|
|
39
39
|
huggingface_hub/commands/upload_large_folder.py,sha256=P-EO44JWVl39Ax4b0E0Z873d0a6S38Qas8P6DaL1EwI,6129
|
|
40
40
|
huggingface_hub/commands/user.py,sha256=M6Ef045YcyV4mFCbLaTRPciQDC6xtV9MMheeen69D0E,11168
|
|
41
41
|
huggingface_hub/commands/version.py,sha256=vfCJn7GO1m-DtDmbdsty8_RTVtnZ7lX6MJsx0Bf4e-s,1266
|
|
42
42
|
huggingface_hub/inference/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
43
|
-
huggingface_hub/inference/_client.py,sha256=
|
|
43
|
+
huggingface_hub/inference/_client.py,sha256=9QydbGgybtFeAsqxFVCG-Usb8GIUcK2lAU0xfQ_Tl_8,162678
|
|
44
44
|
huggingface_hub/inference/_common.py,sha256=iwCkq2fWE1MVoPTeeXN7UN5FZi7g5fZ3K8PHSOCi5dU,14591
|
|
45
45
|
huggingface_hub/inference/_generated/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
46
|
-
huggingface_hub/inference/_generated/_async_client.py,sha256=
|
|
47
|
-
huggingface_hub/inference/_generated/types/__init__.py,sha256
|
|
46
|
+
huggingface_hub/inference/_generated/_async_client.py,sha256=k20fioyWjC7B8UohguFZSIp6GR-CbJgp3fCvNhgzMGE,168883
|
|
47
|
+
huggingface_hub/inference/_generated/types/__init__.py,sha256=--r3nBmBRtgyQR9TkdQl53_crcKYJhWfTkFK2VE2gUk,6307
|
|
48
48
|
huggingface_hub/inference/_generated/types/audio_classification.py,sha256=Jg3mzfGhCSH6CfvVvgJSiFpkz6v4nNA0G4LJXacEgNc,1573
|
|
49
49
|
huggingface_hub/inference/_generated/types/audio_to_audio.py,sha256=2Ep4WkePL7oJwcp5nRJqApwviumGHbft9HhXE9XLHj4,891
|
|
50
50
|
huggingface_hub/inference/_generated/types/automatic_speech_recognition.py,sha256=lWD_BMDMS3hreIq0kcLwOa8e0pXRH-oWUK96VaVc5DM,5624
|
|
51
51
|
huggingface_hub/inference/_generated/types/base.py,sha256=4XG49q0-2SOftYQ8HXQnWLxiJktou-a7IoG3kdOv-kg,6751
|
|
52
|
-
huggingface_hub/inference/_generated/types/chat_completion.py,sha256=
|
|
52
|
+
huggingface_hub/inference/_generated/types/chat_completion.py,sha256=OseOxgvDLeZDjUflWFqVVNzz6yMzqku5ksGzaW0Qpj0,10226
|
|
53
53
|
huggingface_hub/inference/_generated/types/depth_estimation.py,sha256=rcpe9MhYMeLjflOwBs3KMZPr6WjOH3FYEThStG-FJ3M,929
|
|
54
54
|
huggingface_hub/inference/_generated/types/document_question_answering.py,sha256=6BEYGwJcqGlah4RBJDAvWFTEXkO0mosBiMy82432nAM,3202
|
|
55
55
|
huggingface_hub/inference/_generated/types/feature_extraction.py,sha256=NMWVL_TLSG5SS5bdt1-fflkZ75UMlMKeTMtmdnUTADc,1537
|
|
56
56
|
huggingface_hub/inference/_generated/types/fill_mask.py,sha256=OrTgQ7Ndn0_dWK5thQhZwTOHbQni8j0iJcx9llyhRds,1708
|
|
57
57
|
huggingface_hub/inference/_generated/types/image_classification.py,sha256=A-Y024o8723_n8mGVos4TwdAkVL62McGeL1iIo4VzNs,1585
|
|
58
58
|
huggingface_hub/inference/_generated/types/image_segmentation.py,sha256=vrkI4SuP1Iq_iLXc-2pQhYY3SHN4gzvFBoZqbUHxU7o,1950
|
|
59
|
-
huggingface_hub/inference/_generated/types/image_to_image.py,sha256=
|
|
59
|
+
huggingface_hub/inference/_generated/types/image_to_image.py,sha256=HPz1uKXk_9xvgNUi3GV6n4lw-J3G6cdGTcW3Ou_N0l8,2044
|
|
60
60
|
huggingface_hub/inference/_generated/types/image_to_text.py,sha256=3hN7lpJoVuwUJme5gDdxZmXftb6cQ_7SXVC1VM8rXh8,4919
|
|
61
61
|
huggingface_hub/inference/_generated/types/object_detection.py,sha256=VuFlb1281qTXoSgJDmquGz-VNfEZLo2H0Rh_F6MF6ts,2000
|
|
62
62
|
huggingface_hub/inference/_generated/types/question_answering.py,sha256=zw38a9_9l2k1ifYZefjkioqZ4asfSRM9M4nU3gSCmAQ,2898
|
|
@@ -77,20 +77,21 @@ huggingface_hub/inference/_generated/types/visual_question_answering.py,sha256=A
|
|
|
77
77
|
huggingface_hub/inference/_generated/types/zero_shot_classification.py,sha256=BAiebPjsqoNa8EU35Dx0pfIv8W2c4GSl-TJckV1MaxQ,1738
|
|
78
78
|
huggingface_hub/inference/_generated/types/zero_shot_image_classification.py,sha256=8J9n6VqFARkWvPfAZNWEG70AlrMGldU95EGQQwn06zI,1487
|
|
79
79
|
huggingface_hub/inference/_generated/types/zero_shot_object_detection.py,sha256=GUd81LIV7oEbRWayDlAVgyLmY596r1M3AW0jXDp1yTA,1630
|
|
80
|
-
huggingface_hub/inference/_providers/__init__.py,sha256=
|
|
81
|
-
huggingface_hub/inference/_providers/_common.py,sha256=
|
|
82
|
-
huggingface_hub/inference/_providers/black_forest_labs.py,sha256=
|
|
80
|
+
huggingface_hub/inference/_providers/__init__.py,sha256=MuJ4xbzJPJQsksbQ2hkxTKU8D7ClgyauKmKtQQr1oQY,5843
|
|
81
|
+
huggingface_hub/inference/_providers/_common.py,sha256=pWl2RnAe1MtaoQpZPQ6FsJ2Ga0ZJJiK9WQR8WGBboOY,9372
|
|
82
|
+
huggingface_hub/inference/_providers/black_forest_labs.py,sha256=D9bvXl-_pox_JqIxIiqWzYW21-jYvf_bwhYkK_WZabo,2738
|
|
83
83
|
huggingface_hub/inference/_providers/cerebras.py,sha256=YT1yFhXvDJiKZcqcJcA_7VZJFZVkABnv6QiEb0S90rE,246
|
|
84
|
-
huggingface_hub/inference/_providers/cohere.py,sha256=
|
|
85
|
-
huggingface_hub/inference/_providers/fal_ai.py,sha256=
|
|
86
|
-
huggingface_hub/inference/_providers/fireworks_ai.py,sha256=
|
|
87
|
-
huggingface_hub/inference/_providers/hf_inference.py,sha256=
|
|
88
|
-
huggingface_hub/inference/_providers/hyperbolic.py,sha256=
|
|
89
|
-
huggingface_hub/inference/_providers/nebius.py,sha256=
|
|
90
|
-
huggingface_hub/inference/_providers/novita.py,sha256=
|
|
91
|
-
huggingface_hub/inference/_providers/
|
|
84
|
+
huggingface_hub/inference/_providers/cohere.py,sha256=GkFsuKSaqsyfeerPx0ewv-EX44MtJ8a3XXEfmAiTpb0,419
|
|
85
|
+
huggingface_hub/inference/_providers/fal_ai.py,sha256=Pko6CHSB30jkuuxBNC6rpDWWWN07lvPCNxxIlteBtik,6099
|
|
86
|
+
huggingface_hub/inference/_providers/fireworks_ai.py,sha256=6uDsaxJRaN2xWNQX8u1bvF8zO-8J31TAnHdsrf_TO5g,337
|
|
87
|
+
huggingface_hub/inference/_providers/hf_inference.py,sha256=1vhEpgBbPF1JEcurm_5PqEQaTs2XoHrrnvudT6LJgdU,6865
|
|
88
|
+
huggingface_hub/inference/_providers/hyperbolic.py,sha256=ZIwD50fUv3QnL091XlKA7TOs_E33Df5stsewpnbDNZ4,1824
|
|
89
|
+
huggingface_hub/inference/_providers/nebius.py,sha256=VcgjvQCNnFifU4GMFXJENgdqgQXSu4uHcu2hUljNDaY,1593
|
|
90
|
+
huggingface_hub/inference/_providers/novita.py,sha256=_ofZzGxtKn9v9anmS1kElnOiJa9Hmoeyi4Exv_jVOVg,2023
|
|
91
|
+
huggingface_hub/inference/_providers/openai.py,sha256=J5YO5h6vZrZmf6WC5_sgXcu6qMv6yAd72U16vKXi628,873
|
|
92
|
+
huggingface_hub/inference/_providers/replicate.py,sha256=WIO4DEz1Imgdn02XHxDYwkDxOxF1ir2eba3HgUn1cQg,2348
|
|
92
93
|
huggingface_hub/inference/_providers/sambanova.py,sha256=pR2MajO3ffga9FxzruzrTfTm3eBQ3AC0TPeSIdiQeco,249
|
|
93
|
-
huggingface_hub/inference/_providers/together.py,sha256=
|
|
94
|
+
huggingface_hub/inference/_providers/together.py,sha256=NXBZVtfOF5MWsafSJFwmjOfnr8BNVR3JT4uPfPdHvnc,2113
|
|
94
95
|
huggingface_hub/serialization/__init__.py,sha256=kn-Fa-m4FzMnN8lNsF-SwFcfzug4CucexybGKyvZ8S0,1041
|
|
95
96
|
huggingface_hub/serialization/_base.py,sha256=Df3GwGR9NzeK_SD75prXLucJAzPiNPgHbgXSw-_LTk8,8126
|
|
96
97
|
huggingface_hub/serialization/_dduf.py,sha256=s42239rLiHwaJE36QDEmS5GH7DSmQ__BffiHJO5RjIg,15424
|
|
@@ -98,7 +99,7 @@ huggingface_hub/serialization/_tensorflow.py,sha256=zHOvEMg-JHC55Fm4roDT3LUCDO5z
|
|
|
98
99
|
huggingface_hub/serialization/_torch.py,sha256=WoNV_17x99Agx68mNMbi2g8T5CAVIkSb3_OaZx9KrX4,44714
|
|
99
100
|
huggingface_hub/templates/datasetcard_template.md,sha256=W-EMqR6wndbrnZorkVv56URWPG49l7MATGeI015kTvs,5503
|
|
100
101
|
huggingface_hub/templates/modelcard_template.md,sha256=4AqArS3cqdtbit5Bo-DhjcnDFR-pza5hErLLTPM4Yuc,6870
|
|
101
|
-
huggingface_hub/utils/__init__.py,sha256=
|
|
102
|
+
huggingface_hub/utils/__init__.py,sha256=OOcdMwFim7dEajPhetrtySbCAh-djIzQykQx4W2bAR0,3723
|
|
102
103
|
huggingface_hub/utils/_auth.py,sha256=-9p3SSOtWKMMCDKlsM_-ebsIGX0sSgKTSnC-_O4kTxg,8294
|
|
103
104
|
huggingface_hub/utils/_cache_assets.py,sha256=kai77HPQMfYpROouMBQCr_gdBCaeTm996Sqj0dExbNg,5728
|
|
104
105
|
huggingface_hub/utils/_cache_manager.py,sha256=GhiuVQsEkWU55uYkkgiGJV1_naeciyk8u4qb4WTIVyw,34531
|
|
@@ -110,24 +111,25 @@ huggingface_hub/utils/_fixes.py,sha256=xQV1QkUn2WpLqLjtXNiyn9gh-454K6AF-Q3kwkYAQ
|
|
|
110
111
|
huggingface_hub/utils/_git_credential.py,sha256=SDdsiREr1TcAR2Ze2TB0E5cYzVJgvDZrs60od9lAsMc,4596
|
|
111
112
|
huggingface_hub/utils/_headers.py,sha256=3tKQN5ciAt1683nZXEpPyQOS7oWnfYI0t_N_aJU-bms,8876
|
|
112
113
|
huggingface_hub/utils/_hf_folder.py,sha256=WNjTnu0Q7tqcSS9EsP4ssCJrrJMcCvAt8P_-LEtmOU8,2487
|
|
113
|
-
huggingface_hub/utils/_http.py,sha256=
|
|
114
|
+
huggingface_hub/utils/_http.py,sha256=her7UZ0KRo9WYDArpqVFyEXTusOGUECj5HNS8Eahqm8,25531
|
|
114
115
|
huggingface_hub/utils/_lfs.py,sha256=EC0Oz6Wiwl8foRNkUOzrETXzAWlbgpnpxo5a410ovFY,3957
|
|
115
116
|
huggingface_hub/utils/_pagination.py,sha256=hzLFLd8i_DKkPRVYzOx2CxLt5lcocEiAxDJriQUjAjY,1841
|
|
116
117
|
huggingface_hub/utils/_paths.py,sha256=w1ZhFmmD5ykWjp_hAvhjtOoa2ZUcOXJrF4a6O3QpAWo,5042
|
|
117
|
-
huggingface_hub/utils/_runtime.py,sha256=
|
|
118
|
+
huggingface_hub/utils/_runtime.py,sha256=0J4JDzg51bDRtNcrr7rjIoOS8msO5l_G2EaKb1oXP10,11408
|
|
118
119
|
huggingface_hub/utils/_safetensors.py,sha256=GW3nyv7xQcuwObKYeYoT9VhURVzG1DZTbKBKho8Bbos,4458
|
|
119
120
|
huggingface_hub/utils/_subprocess.py,sha256=u9FFUDE7TrzQTiuEzlUnHx7S2P57GbYRV8u16GJwrFw,4625
|
|
120
121
|
huggingface_hub/utils/_telemetry.py,sha256=54LXeIJU5pEGghPAh06gqNAR-UoxOjVLvKqAQscwqZs,4890
|
|
121
122
|
huggingface_hub/utils/_typing.py,sha256=Dgp6TQUlpzStfVLoSvXHCBP4b3NzHZ8E0Gg9mYAoDS4,2903
|
|
122
123
|
huggingface_hub/utils/_validators.py,sha256=dDsVG31iooTYrIyi5Vwr1DukL0fEmJwu3ceVNduhsuE,9204
|
|
124
|
+
huggingface_hub/utils/_xet.py,sha256=Qr-F1NrkSeZtWMsni8PBLT2MxTt9a6ULlDN3JcjwEnU,7500
|
|
123
125
|
huggingface_hub/utils/endpoint_helpers.py,sha256=9VtIAlxQ5H_4y30sjCAgbu7XCqAtNLC7aRYxaNn0hLI,2366
|
|
124
126
|
huggingface_hub/utils/insecure_hashlib.py,sha256=OjxlvtSQHpbLp9PWSrXBDJ0wHjxCBU-SQJgucEEXDbU,1058
|
|
125
127
|
huggingface_hub/utils/logging.py,sha256=0A8fF1yh3L9Ka_bCDX2ml4U5Ht0tY8Dr3JcbRvWFuwo,4909
|
|
126
128
|
huggingface_hub/utils/sha.py,sha256=OFnNGCba0sNcT2gUwaVCJnldxlltrHHe0DS_PCpV3C4,2134
|
|
127
|
-
huggingface_hub/utils/tqdm.py,sha256=
|
|
128
|
-
huggingface_hub-0.
|
|
129
|
-
huggingface_hub-0.
|
|
130
|
-
huggingface_hub-0.
|
|
131
|
-
huggingface_hub-0.
|
|
132
|
-
huggingface_hub-0.
|
|
133
|
-
huggingface_hub-0.
|
|
129
|
+
huggingface_hub/utils/tqdm.py,sha256=xAKcyfnNHsZ7L09WuEM5Ew5-MDhiahLACbbN2zMmcLs,10671
|
|
130
|
+
huggingface_hub-0.30.0.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
131
|
+
huggingface_hub-0.30.0.dist-info/METADATA,sha256=g4n96Rvwx_Np7Vgi-gsi9abbFpkKVLgHZ_EeL5DSgzo,13551
|
|
132
|
+
huggingface_hub-0.30.0.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
|
|
133
|
+
huggingface_hub-0.30.0.dist-info/entry_points.txt,sha256=Y3Z2L02rBG7va_iE6RPXolIgwOdwUFONyRN3kXMxZ0g,131
|
|
134
|
+
huggingface_hub-0.30.0.dist-info/top_level.txt,sha256=8KzlQJAY4miUvjAssOAJodqKOw3harNzuiwGQ9qLSSk,16
|
|
135
|
+
huggingface_hub-0.30.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|