huggingface-hub 0.29.0rc2__py3-none-any.whl → 1.1.3__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.
- huggingface_hub/__init__.py +160 -46
- huggingface_hub/_commit_api.py +277 -71
- huggingface_hub/_commit_scheduler.py +15 -15
- huggingface_hub/_inference_endpoints.py +33 -22
- huggingface_hub/_jobs_api.py +301 -0
- huggingface_hub/_local_folder.py +18 -3
- huggingface_hub/_login.py +31 -63
- huggingface_hub/_oauth.py +460 -0
- huggingface_hub/_snapshot_download.py +241 -81
- huggingface_hub/_space_api.py +18 -10
- huggingface_hub/_tensorboard_logger.py +15 -19
- huggingface_hub/_upload_large_folder.py +196 -76
- huggingface_hub/_webhooks_payload.py +3 -3
- huggingface_hub/_webhooks_server.py +15 -25
- huggingface_hub/{commands → cli}/__init__.py +1 -15
- huggingface_hub/cli/_cli_utils.py +173 -0
- huggingface_hub/cli/auth.py +147 -0
- huggingface_hub/cli/cache.py +841 -0
- huggingface_hub/cli/download.py +189 -0
- huggingface_hub/cli/hf.py +60 -0
- huggingface_hub/cli/inference_endpoints.py +377 -0
- huggingface_hub/cli/jobs.py +772 -0
- huggingface_hub/cli/lfs.py +175 -0
- huggingface_hub/cli/repo.py +315 -0
- huggingface_hub/cli/repo_files.py +94 -0
- huggingface_hub/{commands/env.py → cli/system.py} +10 -13
- huggingface_hub/cli/upload.py +294 -0
- huggingface_hub/cli/upload_large_folder.py +117 -0
- huggingface_hub/community.py +20 -12
- huggingface_hub/constants.py +83 -59
- huggingface_hub/dataclasses.py +609 -0
- huggingface_hub/errors.py +99 -30
- huggingface_hub/fastai_utils.py +30 -41
- huggingface_hub/file_download.py +606 -346
- huggingface_hub/hf_api.py +2445 -1132
- huggingface_hub/hf_file_system.py +269 -152
- huggingface_hub/hub_mixin.py +61 -66
- huggingface_hub/inference/_client.py +501 -630
- huggingface_hub/inference/_common.py +133 -121
- huggingface_hub/inference/_generated/_async_client.py +536 -722
- huggingface_hub/inference/_generated/types/__init__.py +6 -1
- huggingface_hub/inference/_generated/types/automatic_speech_recognition.py +5 -6
- huggingface_hub/inference/_generated/types/base.py +10 -7
- huggingface_hub/inference/_generated/types/chat_completion.py +77 -31
- huggingface_hub/inference/_generated/types/depth_estimation.py +2 -2
- huggingface_hub/inference/_generated/types/document_question_answering.py +2 -2
- huggingface_hub/inference/_generated/types/feature_extraction.py +2 -2
- huggingface_hub/inference/_generated/types/fill_mask.py +2 -2
- huggingface_hub/inference/_generated/types/image_to_image.py +8 -2
- huggingface_hub/inference/_generated/types/image_to_text.py +2 -3
- huggingface_hub/inference/_generated/types/image_to_video.py +60 -0
- huggingface_hub/inference/_generated/types/sentence_similarity.py +3 -3
- huggingface_hub/inference/_generated/types/summarization.py +2 -2
- huggingface_hub/inference/_generated/types/table_question_answering.py +5 -5
- huggingface_hub/inference/_generated/types/text2text_generation.py +2 -2
- huggingface_hub/inference/_generated/types/text_generation.py +11 -11
- huggingface_hub/inference/_generated/types/text_to_audio.py +1 -2
- huggingface_hub/inference/_generated/types/text_to_speech.py +1 -2
- huggingface_hub/inference/_generated/types/text_to_video.py +2 -2
- huggingface_hub/inference/_generated/types/token_classification.py +2 -2
- huggingface_hub/inference/_generated/types/translation.py +2 -2
- huggingface_hub/inference/_generated/types/zero_shot_classification.py +2 -2
- huggingface_hub/inference/_generated/types/zero_shot_image_classification.py +2 -2
- huggingface_hub/inference/_generated/types/zero_shot_object_detection.py +1 -3
- huggingface_hub/inference/_mcp/__init__.py +0 -0
- huggingface_hub/inference/_mcp/_cli_hacks.py +88 -0
- huggingface_hub/inference/_mcp/agent.py +100 -0
- huggingface_hub/inference/_mcp/cli.py +247 -0
- huggingface_hub/inference/_mcp/constants.py +81 -0
- huggingface_hub/inference/_mcp/mcp_client.py +395 -0
- huggingface_hub/inference/_mcp/types.py +45 -0
- huggingface_hub/inference/_mcp/utils.py +128 -0
- huggingface_hub/inference/_providers/__init__.py +149 -20
- huggingface_hub/inference/_providers/_common.py +160 -37
- huggingface_hub/inference/_providers/black_forest_labs.py +12 -9
- huggingface_hub/inference/_providers/cerebras.py +6 -0
- huggingface_hub/inference/_providers/clarifai.py +13 -0
- huggingface_hub/inference/_providers/cohere.py +32 -0
- huggingface_hub/inference/_providers/fal_ai.py +231 -22
- huggingface_hub/inference/_providers/featherless_ai.py +38 -0
- huggingface_hub/inference/_providers/fireworks_ai.py +22 -1
- huggingface_hub/inference/_providers/groq.py +9 -0
- huggingface_hub/inference/_providers/hf_inference.py +143 -33
- huggingface_hub/inference/_providers/hyperbolic.py +9 -5
- huggingface_hub/inference/_providers/nebius.py +47 -5
- huggingface_hub/inference/_providers/novita.py +48 -5
- huggingface_hub/inference/_providers/nscale.py +44 -0
- huggingface_hub/inference/_providers/openai.py +25 -0
- huggingface_hub/inference/_providers/publicai.py +6 -0
- huggingface_hub/inference/_providers/replicate.py +46 -9
- huggingface_hub/inference/_providers/sambanova.py +37 -1
- huggingface_hub/inference/_providers/scaleway.py +28 -0
- huggingface_hub/inference/_providers/together.py +34 -5
- huggingface_hub/inference/_providers/wavespeed.py +138 -0
- huggingface_hub/inference/_providers/zai_org.py +17 -0
- huggingface_hub/lfs.py +33 -100
- huggingface_hub/repocard.py +34 -38
- huggingface_hub/repocard_data.py +79 -59
- huggingface_hub/serialization/__init__.py +0 -1
- huggingface_hub/serialization/_base.py +12 -15
- huggingface_hub/serialization/_dduf.py +8 -8
- huggingface_hub/serialization/_torch.py +69 -69
- huggingface_hub/utils/__init__.py +27 -8
- huggingface_hub/utils/_auth.py +7 -7
- huggingface_hub/utils/_cache_manager.py +92 -147
- huggingface_hub/utils/_chunk_utils.py +2 -3
- huggingface_hub/utils/_deprecation.py +1 -1
- huggingface_hub/utils/_dotenv.py +55 -0
- huggingface_hub/utils/_experimental.py +7 -5
- huggingface_hub/utils/_fixes.py +0 -10
- huggingface_hub/utils/_git_credential.py +5 -5
- huggingface_hub/utils/_headers.py +8 -30
- huggingface_hub/utils/_http.py +399 -237
- huggingface_hub/utils/_pagination.py +6 -6
- huggingface_hub/utils/_parsing.py +98 -0
- huggingface_hub/utils/_paths.py +5 -5
- huggingface_hub/utils/_runtime.py +74 -22
- huggingface_hub/utils/_safetensors.py +21 -21
- huggingface_hub/utils/_subprocess.py +13 -11
- huggingface_hub/utils/_telemetry.py +4 -4
- huggingface_hub/{commands/_cli_utils.py → utils/_terminal.py} +4 -4
- huggingface_hub/utils/_typing.py +25 -5
- huggingface_hub/utils/_validators.py +55 -74
- huggingface_hub/utils/_verification.py +167 -0
- huggingface_hub/utils/_xet.py +235 -0
- huggingface_hub/utils/_xet_progress_reporting.py +162 -0
- huggingface_hub/utils/insecure_hashlib.py +3 -5
- huggingface_hub/utils/logging.py +8 -11
- huggingface_hub/utils/tqdm.py +33 -4
- {huggingface_hub-0.29.0rc2.dist-info → huggingface_hub-1.1.3.dist-info}/METADATA +94 -82
- huggingface_hub-1.1.3.dist-info/RECORD +155 -0
- {huggingface_hub-0.29.0rc2.dist-info → huggingface_hub-1.1.3.dist-info}/WHEEL +1 -1
- huggingface_hub-1.1.3.dist-info/entry_points.txt +6 -0
- huggingface_hub/commands/delete_cache.py +0 -428
- huggingface_hub/commands/download.py +0 -200
- huggingface_hub/commands/huggingface_cli.py +0 -61
- huggingface_hub/commands/lfs.py +0 -200
- huggingface_hub/commands/repo_files.py +0 -128
- huggingface_hub/commands/scan_cache.py +0 -181
- huggingface_hub/commands/tag.py +0 -159
- huggingface_hub/commands/upload.py +0 -299
- huggingface_hub/commands/upload_large_folder.py +0 -129
- huggingface_hub/commands/user.py +0 -304
- huggingface_hub/commands/version.py +0 -37
- huggingface_hub/inference_api.py +0 -217
- huggingface_hub/keras_mixin.py +0 -500
- huggingface_hub/repository.py +0 -1477
- huggingface_hub/serialization/_tensorflow.py +0 -95
- huggingface_hub/utils/_hf_folder.py +0 -68
- huggingface_hub-0.29.0rc2.dist-info/RECORD +0 -131
- huggingface_hub-0.29.0rc2.dist-info/entry_points.txt +0 -6
- {huggingface_hub-0.29.0rc2.dist-info → huggingface_hub-1.1.3.dist-info/licenses}/LICENSE +0 -0
- {huggingface_hub-0.29.0rc2.dist-info → huggingface_hub-1.1.3.dist-info}/top_level.txt +0 -0
huggingface_hub/__init__.py
CHANGED
|
@@ -46,7 +46,7 @@ import sys
|
|
|
46
46
|
from typing import TYPE_CHECKING
|
|
47
47
|
|
|
48
48
|
|
|
49
|
-
__version__ = "
|
|
49
|
+
__version__ = "1.1.3"
|
|
50
50
|
|
|
51
51
|
# Alphabetical order of definitions is ensured in tests
|
|
52
52
|
# WARNING: any comment added in this dictionary definition will be lost when
|
|
@@ -62,6 +62,12 @@ _SUBMOD_ATTRS = {
|
|
|
62
62
|
"InferenceEndpointTimeoutError",
|
|
63
63
|
"InferenceEndpointType",
|
|
64
64
|
],
|
|
65
|
+
"_jobs_api": [
|
|
66
|
+
"JobInfo",
|
|
67
|
+
"JobOwner",
|
|
68
|
+
"JobStage",
|
|
69
|
+
"JobStatus",
|
|
70
|
+
],
|
|
65
71
|
"_login": [
|
|
66
72
|
"auth_list",
|
|
67
73
|
"auth_switch",
|
|
@@ -70,6 +76,13 @@ _SUBMOD_ATTRS = {
|
|
|
70
76
|
"logout",
|
|
71
77
|
"notebook_login",
|
|
72
78
|
],
|
|
79
|
+
"_oauth": [
|
|
80
|
+
"OAuthInfo",
|
|
81
|
+
"OAuthOrgInfo",
|
|
82
|
+
"OAuthUserInfo",
|
|
83
|
+
"attach_huggingface_oauth",
|
|
84
|
+
"parse_huggingface_oauth",
|
|
85
|
+
],
|
|
73
86
|
"_snapshot_download": [
|
|
74
87
|
"snapshot_download",
|
|
75
88
|
],
|
|
@@ -98,6 +111,9 @@ _SUBMOD_ATTRS = {
|
|
|
98
111
|
"WebhooksServer",
|
|
99
112
|
"webhook_endpoint",
|
|
100
113
|
],
|
|
114
|
+
"cli._cli_utils": [
|
|
115
|
+
"typer_factory",
|
|
116
|
+
],
|
|
101
117
|
"community": [
|
|
102
118
|
"Discussion",
|
|
103
119
|
"DiscussionComment",
|
|
@@ -125,6 +141,7 @@ _SUBMOD_ATTRS = {
|
|
|
125
141
|
"push_to_hub_fastai",
|
|
126
142
|
],
|
|
127
143
|
"file_download": [
|
|
144
|
+
"DryRunFileInfo",
|
|
128
145
|
"HfFileMetadata",
|
|
129
146
|
"_CACHED_NO_EXIST",
|
|
130
147
|
"get_hf_file_metadata",
|
|
@@ -146,6 +163,7 @@ _SUBMOD_ATTRS = {
|
|
|
146
163
|
"GitRefs",
|
|
147
164
|
"HfApi",
|
|
148
165
|
"ModelInfo",
|
|
166
|
+
"Organization",
|
|
149
167
|
"RepoUrl",
|
|
150
168
|
"SpaceInfo",
|
|
151
169
|
"User",
|
|
@@ -158,6 +176,7 @@ _SUBMOD_ATTRS = {
|
|
|
158
176
|
"add_space_variable",
|
|
159
177
|
"auth_check",
|
|
160
178
|
"cancel_access_request",
|
|
179
|
+
"cancel_job",
|
|
161
180
|
"change_discussion_status",
|
|
162
181
|
"comment_discussion",
|
|
163
182
|
"create_branch",
|
|
@@ -165,8 +184,11 @@ _SUBMOD_ATTRS = {
|
|
|
165
184
|
"create_commit",
|
|
166
185
|
"create_discussion",
|
|
167
186
|
"create_inference_endpoint",
|
|
187
|
+
"create_inference_endpoint_from_catalog",
|
|
168
188
|
"create_pull_request",
|
|
169
189
|
"create_repo",
|
|
190
|
+
"create_scheduled_job",
|
|
191
|
+
"create_scheduled_uv_job",
|
|
170
192
|
"create_tag",
|
|
171
193
|
"create_webhook",
|
|
172
194
|
"dataset_info",
|
|
@@ -177,6 +199,7 @@ _SUBMOD_ATTRS = {
|
|
|
177
199
|
"delete_folder",
|
|
178
200
|
"delete_inference_endpoint",
|
|
179
201
|
"delete_repo",
|
|
202
|
+
"delete_scheduled_job",
|
|
180
203
|
"delete_space_secret",
|
|
181
204
|
"delete_space_storage",
|
|
182
205
|
"delete_space_variable",
|
|
@@ -186,6 +209,7 @@ _SUBMOD_ATTRS = {
|
|
|
186
209
|
"duplicate_space",
|
|
187
210
|
"edit_discussion_comment",
|
|
188
211
|
"enable_webhook",
|
|
212
|
+
"fetch_job_logs",
|
|
189
213
|
"file_exists",
|
|
190
214
|
"get_collection",
|
|
191
215
|
"get_dataset_tags",
|
|
@@ -193,21 +217,27 @@ _SUBMOD_ATTRS = {
|
|
|
193
217
|
"get_full_repo_name",
|
|
194
218
|
"get_inference_endpoint",
|
|
195
219
|
"get_model_tags",
|
|
220
|
+
"get_organization_overview",
|
|
196
221
|
"get_paths_info",
|
|
197
222
|
"get_repo_discussions",
|
|
198
223
|
"get_safetensors_metadata",
|
|
199
224
|
"get_space_runtime",
|
|
200
225
|
"get_space_variables",
|
|
201
|
-
"get_token_permission",
|
|
202
226
|
"get_user_overview",
|
|
203
227
|
"get_webhook",
|
|
204
228
|
"grant_access",
|
|
229
|
+
"inspect_job",
|
|
230
|
+
"inspect_scheduled_job",
|
|
205
231
|
"list_accepted_access_requests",
|
|
206
232
|
"list_collections",
|
|
207
233
|
"list_datasets",
|
|
234
|
+
"list_inference_catalog",
|
|
208
235
|
"list_inference_endpoints",
|
|
236
|
+
"list_jobs",
|
|
237
|
+
"list_lfs_files",
|
|
209
238
|
"list_liked_repos",
|
|
210
239
|
"list_models",
|
|
240
|
+
"list_organization_followers",
|
|
211
241
|
"list_organization_members",
|
|
212
242
|
"list_papers",
|
|
213
243
|
"list_pending_access_requests",
|
|
@@ -228,6 +258,7 @@ _SUBMOD_ATTRS = {
|
|
|
228
258
|
"parse_safetensors_file_metadata",
|
|
229
259
|
"pause_inference_endpoint",
|
|
230
260
|
"pause_space",
|
|
261
|
+
"permanently_delete_lfs_files",
|
|
231
262
|
"preupload_lfs_files",
|
|
232
263
|
"reject_access_request",
|
|
233
264
|
"rename_discussion",
|
|
@@ -238,22 +269,26 @@ _SUBMOD_ATTRS = {
|
|
|
238
269
|
"request_space_storage",
|
|
239
270
|
"restart_space",
|
|
240
271
|
"resume_inference_endpoint",
|
|
272
|
+
"resume_scheduled_job",
|
|
241
273
|
"revision_exists",
|
|
242
274
|
"run_as_future",
|
|
275
|
+
"run_job",
|
|
276
|
+
"run_uv_job",
|
|
243
277
|
"scale_to_zero_inference_endpoint",
|
|
244
278
|
"set_space_sleep_time",
|
|
245
279
|
"space_info",
|
|
246
280
|
"super_squash_history",
|
|
281
|
+
"suspend_scheduled_job",
|
|
247
282
|
"unlike",
|
|
248
283
|
"update_collection_item",
|
|
249
284
|
"update_collection_metadata",
|
|
250
285
|
"update_inference_endpoint",
|
|
251
286
|
"update_repo_settings",
|
|
252
|
-
"update_repo_visibility",
|
|
253
287
|
"update_webhook",
|
|
254
288
|
"upload_file",
|
|
255
289
|
"upload_folder",
|
|
256
290
|
"upload_large_folder",
|
|
291
|
+
"verify_repo_checksums",
|
|
257
292
|
"whoami",
|
|
258
293
|
],
|
|
259
294
|
"hf_file_system": [
|
|
@@ -290,12 +325,16 @@ _SUBMOD_ATTRS = {
|
|
|
290
325
|
"ChatCompletionInputFunctionDefinition",
|
|
291
326
|
"ChatCompletionInputFunctionName",
|
|
292
327
|
"ChatCompletionInputGrammarType",
|
|
293
|
-
"
|
|
328
|
+
"ChatCompletionInputJSONSchema",
|
|
294
329
|
"ChatCompletionInputMessage",
|
|
295
330
|
"ChatCompletionInputMessageChunk",
|
|
296
331
|
"ChatCompletionInputMessageChunkType",
|
|
332
|
+
"ChatCompletionInputResponseFormatJSONObject",
|
|
333
|
+
"ChatCompletionInputResponseFormatJSONSchema",
|
|
334
|
+
"ChatCompletionInputResponseFormatText",
|
|
297
335
|
"ChatCompletionInputStreamOptions",
|
|
298
336
|
"ChatCompletionInputTool",
|
|
337
|
+
"ChatCompletionInputToolCall",
|
|
299
338
|
"ChatCompletionInputToolChoiceClass",
|
|
300
339
|
"ChatCompletionInputToolChoiceEnum",
|
|
301
340
|
"ChatCompletionInputURL",
|
|
@@ -345,6 +384,10 @@ _SUBMOD_ATTRS = {
|
|
|
345
384
|
"ImageToTextInput",
|
|
346
385
|
"ImageToTextOutput",
|
|
347
386
|
"ImageToTextParameters",
|
|
387
|
+
"ImageToVideoInput",
|
|
388
|
+
"ImageToVideoOutput",
|
|
389
|
+
"ImageToVideoParameters",
|
|
390
|
+
"ImageToVideoTargetSize",
|
|
348
391
|
"ObjectDetectionBoundingBox",
|
|
349
392
|
"ObjectDetectionInput",
|
|
350
393
|
"ObjectDetectionOutputElement",
|
|
@@ -428,14 +471,11 @@ _SUBMOD_ATTRS = {
|
|
|
428
471
|
"ZeroShotObjectDetectionOutputElement",
|
|
429
472
|
"ZeroShotObjectDetectionParameters",
|
|
430
473
|
],
|
|
431
|
-
"
|
|
432
|
-
"
|
|
474
|
+
"inference._mcp.agent": [
|
|
475
|
+
"Agent",
|
|
433
476
|
],
|
|
434
|
-
"
|
|
435
|
-
"
|
|
436
|
-
"from_pretrained_keras",
|
|
437
|
-
"push_to_hub_keras",
|
|
438
|
-
"save_pretrained_keras",
|
|
477
|
+
"inference._mcp.mcp_client": [
|
|
478
|
+
"MCPClient",
|
|
439
479
|
],
|
|
440
480
|
"repocard": [
|
|
441
481
|
"DatasetCard",
|
|
@@ -454,12 +494,8 @@ _SUBMOD_ATTRS = {
|
|
|
454
494
|
"ModelCardData",
|
|
455
495
|
"SpaceCardData",
|
|
456
496
|
],
|
|
457
|
-
"repository": [
|
|
458
|
-
"Repository",
|
|
459
|
-
],
|
|
460
497
|
"serialization": [
|
|
461
498
|
"StateDictSplit",
|
|
462
|
-
"get_tf_storage_size",
|
|
463
499
|
"get_torch_storage_id",
|
|
464
500
|
"get_torch_storage_size",
|
|
465
501
|
"load_state_dict_from_file",
|
|
@@ -467,7 +503,6 @@ _SUBMOD_ATTRS = {
|
|
|
467
503
|
"save_torch_model",
|
|
468
504
|
"save_torch_state_dict",
|
|
469
505
|
"split_state_dict_into_shards_factory",
|
|
470
|
-
"split_tf_state_dict_into_shards",
|
|
471
506
|
"split_torch_state_dict_into_shards",
|
|
472
507
|
],
|
|
473
508
|
"serialization._dduf": [
|
|
@@ -477,6 +512,8 @@ _SUBMOD_ATTRS = {
|
|
|
477
512
|
"read_dduf_file",
|
|
478
513
|
],
|
|
479
514
|
"utils": [
|
|
515
|
+
"ASYNC_CLIENT_FACTORY_T",
|
|
516
|
+
"CLIENT_FACTORY_T",
|
|
480
517
|
"CacheNotFound",
|
|
481
518
|
"CachedFileInfo",
|
|
482
519
|
"CachedRepoInfo",
|
|
@@ -484,14 +521,17 @@ _SUBMOD_ATTRS = {
|
|
|
484
521
|
"CorruptedCacheException",
|
|
485
522
|
"DeleteCacheStrategy",
|
|
486
523
|
"HFCacheInfo",
|
|
487
|
-
"HfFolder",
|
|
488
524
|
"cached_assets_path",
|
|
489
|
-
"
|
|
525
|
+
"close_session",
|
|
490
526
|
"dump_environment_info",
|
|
527
|
+
"get_async_session",
|
|
491
528
|
"get_session",
|
|
492
529
|
"get_token",
|
|
530
|
+
"hf_raise_for_status",
|
|
493
531
|
"logging",
|
|
494
532
|
"scan_cache_dir",
|
|
533
|
+
"set_async_client_factory",
|
|
534
|
+
"set_client_factory",
|
|
495
535
|
],
|
|
496
536
|
}
|
|
497
537
|
|
|
@@ -507,6 +547,8 @@ _SUBMOD_ATTRS = {
|
|
|
507
547
|
# ```
|
|
508
548
|
|
|
509
549
|
__all__ = [
|
|
550
|
+
"ASYNC_CLIENT_FACTORY_T",
|
|
551
|
+
"Agent",
|
|
510
552
|
"AsyncInferenceClient",
|
|
511
553
|
"AudioClassificationInput",
|
|
512
554
|
"AudioClassificationOutputElement",
|
|
@@ -520,6 +562,7 @@ __all__ = [
|
|
|
520
562
|
"AutomaticSpeechRecognitionOutput",
|
|
521
563
|
"AutomaticSpeechRecognitionOutputChunk",
|
|
522
564
|
"AutomaticSpeechRecognitionParameters",
|
|
565
|
+
"CLIENT_FACTORY_T",
|
|
523
566
|
"CONFIG_NAME",
|
|
524
567
|
"CacheNotFound",
|
|
525
568
|
"CachedFileInfo",
|
|
@@ -530,12 +573,16 @@ __all__ = [
|
|
|
530
573
|
"ChatCompletionInputFunctionDefinition",
|
|
531
574
|
"ChatCompletionInputFunctionName",
|
|
532
575
|
"ChatCompletionInputGrammarType",
|
|
533
|
-
"
|
|
576
|
+
"ChatCompletionInputJSONSchema",
|
|
534
577
|
"ChatCompletionInputMessage",
|
|
535
578
|
"ChatCompletionInputMessageChunk",
|
|
536
579
|
"ChatCompletionInputMessageChunkType",
|
|
580
|
+
"ChatCompletionInputResponseFormatJSONObject",
|
|
581
|
+
"ChatCompletionInputResponseFormatJSONSchema",
|
|
582
|
+
"ChatCompletionInputResponseFormatText",
|
|
537
583
|
"ChatCompletionInputStreamOptions",
|
|
538
584
|
"ChatCompletionInputTool",
|
|
585
|
+
"ChatCompletionInputToolCall",
|
|
539
586
|
"ChatCompletionInputToolChoiceClass",
|
|
540
587
|
"ChatCompletionInputToolChoiceEnum",
|
|
541
588
|
"ChatCompletionInputURL",
|
|
@@ -584,6 +631,7 @@ __all__ = [
|
|
|
584
631
|
"DocumentQuestionAnsweringInputData",
|
|
585
632
|
"DocumentQuestionAnsweringOutputElement",
|
|
586
633
|
"DocumentQuestionAnsweringParameters",
|
|
634
|
+
"DryRunFileInfo",
|
|
587
635
|
"EvalResult",
|
|
588
636
|
"FLAX_WEIGHTS_NAME",
|
|
589
637
|
"FeatureExtractionInput",
|
|
@@ -604,7 +652,6 @@ __all__ = [
|
|
|
604
652
|
"HfFileSystemFile",
|
|
605
653
|
"HfFileSystemResolvedPath",
|
|
606
654
|
"HfFileSystemStreamFile",
|
|
607
|
-
"HfFolder",
|
|
608
655
|
"ImageClassificationInput",
|
|
609
656
|
"ImageClassificationOutputElement",
|
|
610
657
|
"ImageClassificationOutputTransform",
|
|
@@ -622,7 +669,10 @@ __all__ = [
|
|
|
622
669
|
"ImageToTextInput",
|
|
623
670
|
"ImageToTextOutput",
|
|
624
671
|
"ImageToTextParameters",
|
|
625
|
-
"
|
|
672
|
+
"ImageToVideoInput",
|
|
673
|
+
"ImageToVideoOutput",
|
|
674
|
+
"ImageToVideoParameters",
|
|
675
|
+
"ImageToVideoTargetSize",
|
|
626
676
|
"InferenceClient",
|
|
627
677
|
"InferenceEndpoint",
|
|
628
678
|
"InferenceEndpointError",
|
|
@@ -630,15 +680,23 @@ __all__ = [
|
|
|
630
680
|
"InferenceEndpointTimeoutError",
|
|
631
681
|
"InferenceEndpointType",
|
|
632
682
|
"InferenceTimeoutError",
|
|
633
|
-
"
|
|
683
|
+
"JobInfo",
|
|
684
|
+
"JobOwner",
|
|
685
|
+
"JobStage",
|
|
686
|
+
"JobStatus",
|
|
687
|
+
"MCPClient",
|
|
634
688
|
"ModelCard",
|
|
635
689
|
"ModelCardData",
|
|
636
690
|
"ModelHubMixin",
|
|
637
691
|
"ModelInfo",
|
|
692
|
+
"OAuthInfo",
|
|
693
|
+
"OAuthOrgInfo",
|
|
694
|
+
"OAuthUserInfo",
|
|
638
695
|
"ObjectDetectionBoundingBox",
|
|
639
696
|
"ObjectDetectionInput",
|
|
640
697
|
"ObjectDetectionOutputElement",
|
|
641
698
|
"ObjectDetectionParameters",
|
|
699
|
+
"Organization",
|
|
642
700
|
"PYTORCH_WEIGHTS_NAME",
|
|
643
701
|
"Padding",
|
|
644
702
|
"PyTorchModelHubMixin",
|
|
@@ -651,7 +709,6 @@ __all__ = [
|
|
|
651
709
|
"REPO_TYPE_SPACE",
|
|
652
710
|
"RepoCard",
|
|
653
711
|
"RepoUrl",
|
|
654
|
-
"Repository",
|
|
655
712
|
"SentenceSimilarityInput",
|
|
656
713
|
"SentenceSimilarityInputData",
|
|
657
714
|
"SpaceCard",
|
|
@@ -756,21 +813,26 @@ __all__ = [
|
|
|
756
813
|
"add_collection_item",
|
|
757
814
|
"add_space_secret",
|
|
758
815
|
"add_space_variable",
|
|
816
|
+
"attach_huggingface_oauth",
|
|
759
817
|
"auth_check",
|
|
760
818
|
"auth_list",
|
|
761
819
|
"auth_switch",
|
|
762
820
|
"cached_assets_path",
|
|
763
821
|
"cancel_access_request",
|
|
822
|
+
"cancel_job",
|
|
764
823
|
"change_discussion_status",
|
|
824
|
+
"close_session",
|
|
765
825
|
"comment_discussion",
|
|
766
|
-
"configure_http_backend",
|
|
767
826
|
"create_branch",
|
|
768
827
|
"create_collection",
|
|
769
828
|
"create_commit",
|
|
770
829
|
"create_discussion",
|
|
771
830
|
"create_inference_endpoint",
|
|
831
|
+
"create_inference_endpoint_from_catalog",
|
|
772
832
|
"create_pull_request",
|
|
773
833
|
"create_repo",
|
|
834
|
+
"create_scheduled_job",
|
|
835
|
+
"create_scheduled_uv_job",
|
|
774
836
|
"create_tag",
|
|
775
837
|
"create_webhook",
|
|
776
838
|
"dataset_info",
|
|
@@ -781,6 +843,7 @@ __all__ = [
|
|
|
781
843
|
"delete_folder",
|
|
782
844
|
"delete_inference_endpoint",
|
|
783
845
|
"delete_repo",
|
|
846
|
+
"delete_scheduled_job",
|
|
784
847
|
"delete_space_secret",
|
|
785
848
|
"delete_space_storage",
|
|
786
849
|
"delete_space_variable",
|
|
@@ -793,9 +856,10 @@ __all__ = [
|
|
|
793
856
|
"enable_webhook",
|
|
794
857
|
"export_entries_as_dduf",
|
|
795
858
|
"export_folder_as_dduf",
|
|
859
|
+
"fetch_job_logs",
|
|
796
860
|
"file_exists",
|
|
797
861
|
"from_pretrained_fastai",
|
|
798
|
-
"
|
|
862
|
+
"get_async_session",
|
|
799
863
|
"get_collection",
|
|
800
864
|
"get_dataset_tags",
|
|
801
865
|
"get_discussion_details",
|
|
@@ -803,15 +867,14 @@ __all__ = [
|
|
|
803
867
|
"get_hf_file_metadata",
|
|
804
868
|
"get_inference_endpoint",
|
|
805
869
|
"get_model_tags",
|
|
870
|
+
"get_organization_overview",
|
|
806
871
|
"get_paths_info",
|
|
807
872
|
"get_repo_discussions",
|
|
808
873
|
"get_safetensors_metadata",
|
|
809
874
|
"get_session",
|
|
810
875
|
"get_space_runtime",
|
|
811
876
|
"get_space_variables",
|
|
812
|
-
"get_tf_storage_size",
|
|
813
877
|
"get_token",
|
|
814
|
-
"get_token_permission",
|
|
815
878
|
"get_torch_storage_id",
|
|
816
879
|
"get_torch_storage_size",
|
|
817
880
|
"get_user_overview",
|
|
@@ -819,13 +882,20 @@ __all__ = [
|
|
|
819
882
|
"grant_access",
|
|
820
883
|
"hf_hub_download",
|
|
821
884
|
"hf_hub_url",
|
|
885
|
+
"hf_raise_for_status",
|
|
886
|
+
"inspect_job",
|
|
887
|
+
"inspect_scheduled_job",
|
|
822
888
|
"interpreter_login",
|
|
823
889
|
"list_accepted_access_requests",
|
|
824
890
|
"list_collections",
|
|
825
891
|
"list_datasets",
|
|
892
|
+
"list_inference_catalog",
|
|
826
893
|
"list_inference_endpoints",
|
|
894
|
+
"list_jobs",
|
|
895
|
+
"list_lfs_files",
|
|
827
896
|
"list_liked_repos",
|
|
828
897
|
"list_models",
|
|
898
|
+
"list_organization_followers",
|
|
829
899
|
"list_organization_members",
|
|
830
900
|
"list_papers",
|
|
831
901
|
"list_pending_access_requests",
|
|
@@ -853,12 +923,13 @@ __all__ = [
|
|
|
853
923
|
"move_repo",
|
|
854
924
|
"notebook_login",
|
|
855
925
|
"paper_info",
|
|
926
|
+
"parse_huggingface_oauth",
|
|
856
927
|
"parse_safetensors_file_metadata",
|
|
857
928
|
"pause_inference_endpoint",
|
|
858
929
|
"pause_space",
|
|
930
|
+
"permanently_delete_lfs_files",
|
|
859
931
|
"preupload_lfs_files",
|
|
860
932
|
"push_to_hub_fastai",
|
|
861
|
-
"push_to_hub_keras",
|
|
862
933
|
"read_dduf_file",
|
|
863
934
|
"reject_access_request",
|
|
864
935
|
"rename_discussion",
|
|
@@ -869,31 +940,36 @@ __all__ = [
|
|
|
869
940
|
"request_space_storage",
|
|
870
941
|
"restart_space",
|
|
871
942
|
"resume_inference_endpoint",
|
|
943
|
+
"resume_scheduled_job",
|
|
872
944
|
"revision_exists",
|
|
873
945
|
"run_as_future",
|
|
874
|
-
"
|
|
946
|
+
"run_job",
|
|
947
|
+
"run_uv_job",
|
|
875
948
|
"save_torch_model",
|
|
876
949
|
"save_torch_state_dict",
|
|
877
950
|
"scale_to_zero_inference_endpoint",
|
|
878
951
|
"scan_cache_dir",
|
|
952
|
+
"set_async_client_factory",
|
|
953
|
+
"set_client_factory",
|
|
879
954
|
"set_space_sleep_time",
|
|
880
955
|
"snapshot_download",
|
|
881
956
|
"space_info",
|
|
882
957
|
"split_state_dict_into_shards_factory",
|
|
883
|
-
"split_tf_state_dict_into_shards",
|
|
884
958
|
"split_torch_state_dict_into_shards",
|
|
885
959
|
"super_squash_history",
|
|
960
|
+
"suspend_scheduled_job",
|
|
886
961
|
"try_to_load_from_cache",
|
|
962
|
+
"typer_factory",
|
|
887
963
|
"unlike",
|
|
888
964
|
"update_collection_item",
|
|
889
965
|
"update_collection_metadata",
|
|
890
966
|
"update_inference_endpoint",
|
|
891
967
|
"update_repo_settings",
|
|
892
|
-
"update_repo_visibility",
|
|
893
968
|
"update_webhook",
|
|
894
969
|
"upload_file",
|
|
895
970
|
"upload_folder",
|
|
896
971
|
"upload_large_folder",
|
|
972
|
+
"verify_repo_checksums",
|
|
897
973
|
"webhook_endpoint",
|
|
898
974
|
"whoami",
|
|
899
975
|
]
|
|
@@ -1008,6 +1084,12 @@ if TYPE_CHECKING: # pragma: no cover
|
|
|
1008
1084
|
InferenceEndpointTimeoutError, # noqa: F401
|
|
1009
1085
|
InferenceEndpointType, # noqa: F401
|
|
1010
1086
|
)
|
|
1087
|
+
from ._jobs_api import (
|
|
1088
|
+
JobInfo, # noqa: F401
|
|
1089
|
+
JobOwner, # noqa: F401
|
|
1090
|
+
JobStage, # noqa: F401
|
|
1091
|
+
JobStatus, # noqa: F401
|
|
1092
|
+
)
|
|
1011
1093
|
from ._login import (
|
|
1012
1094
|
auth_list, # noqa: F401
|
|
1013
1095
|
auth_switch, # noqa: F401
|
|
@@ -1016,6 +1098,13 @@ if TYPE_CHECKING: # pragma: no cover
|
|
|
1016
1098
|
logout, # noqa: F401
|
|
1017
1099
|
notebook_login, # noqa: F401
|
|
1018
1100
|
)
|
|
1101
|
+
from ._oauth import (
|
|
1102
|
+
OAuthInfo, # noqa: F401
|
|
1103
|
+
OAuthOrgInfo, # noqa: F401
|
|
1104
|
+
OAuthUserInfo, # noqa: F401
|
|
1105
|
+
attach_huggingface_oauth, # noqa: F401
|
|
1106
|
+
parse_huggingface_oauth, # noqa: F401
|
|
1107
|
+
)
|
|
1019
1108
|
from ._snapshot_download import snapshot_download # noqa: F401
|
|
1020
1109
|
from ._space_api import (
|
|
1021
1110
|
SpaceHardware, # noqa: F401
|
|
@@ -1040,6 +1129,7 @@ if TYPE_CHECKING: # pragma: no cover
|
|
|
1040
1129
|
WebhooksServer, # noqa: F401
|
|
1041
1130
|
webhook_endpoint, # noqa: F401
|
|
1042
1131
|
)
|
|
1132
|
+
from .cli._cli_utils import typer_factory # noqa: F401
|
|
1043
1133
|
from .community import (
|
|
1044
1134
|
Discussion, # noqa: F401
|
|
1045
1135
|
DiscussionComment, # noqa: F401
|
|
@@ -1068,6 +1158,7 @@ if TYPE_CHECKING: # pragma: no cover
|
|
|
1068
1158
|
)
|
|
1069
1159
|
from .file_download import (
|
|
1070
1160
|
_CACHED_NO_EXIST, # noqa: F401
|
|
1161
|
+
DryRunFileInfo, # noqa: F401
|
|
1071
1162
|
HfFileMetadata, # noqa: F401
|
|
1072
1163
|
get_hf_file_metadata, # noqa: F401
|
|
1073
1164
|
hf_hub_download, # noqa: F401
|
|
@@ -1088,6 +1179,7 @@ if TYPE_CHECKING: # pragma: no cover
|
|
|
1088
1179
|
GitRefs, # noqa: F401
|
|
1089
1180
|
HfApi, # noqa: F401
|
|
1090
1181
|
ModelInfo, # noqa: F401
|
|
1182
|
+
Organization, # noqa: F401
|
|
1091
1183
|
RepoUrl, # noqa: F401
|
|
1092
1184
|
SpaceInfo, # noqa: F401
|
|
1093
1185
|
User, # noqa: F401
|
|
@@ -1100,6 +1192,7 @@ if TYPE_CHECKING: # pragma: no cover
|
|
|
1100
1192
|
add_space_variable, # noqa: F401
|
|
1101
1193
|
auth_check, # noqa: F401
|
|
1102
1194
|
cancel_access_request, # noqa: F401
|
|
1195
|
+
cancel_job, # noqa: F401
|
|
1103
1196
|
change_discussion_status, # noqa: F401
|
|
1104
1197
|
comment_discussion, # noqa: F401
|
|
1105
1198
|
create_branch, # noqa: F401
|
|
@@ -1107,8 +1200,11 @@ if TYPE_CHECKING: # pragma: no cover
|
|
|
1107
1200
|
create_commit, # noqa: F401
|
|
1108
1201
|
create_discussion, # noqa: F401
|
|
1109
1202
|
create_inference_endpoint, # noqa: F401
|
|
1203
|
+
create_inference_endpoint_from_catalog, # noqa: F401
|
|
1110
1204
|
create_pull_request, # noqa: F401
|
|
1111
1205
|
create_repo, # noqa: F401
|
|
1206
|
+
create_scheduled_job, # noqa: F401
|
|
1207
|
+
create_scheduled_uv_job, # noqa: F401
|
|
1112
1208
|
create_tag, # noqa: F401
|
|
1113
1209
|
create_webhook, # noqa: F401
|
|
1114
1210
|
dataset_info, # noqa: F401
|
|
@@ -1119,6 +1215,7 @@ if TYPE_CHECKING: # pragma: no cover
|
|
|
1119
1215
|
delete_folder, # noqa: F401
|
|
1120
1216
|
delete_inference_endpoint, # noqa: F401
|
|
1121
1217
|
delete_repo, # noqa: F401
|
|
1218
|
+
delete_scheduled_job, # noqa: F401
|
|
1122
1219
|
delete_space_secret, # noqa: F401
|
|
1123
1220
|
delete_space_storage, # noqa: F401
|
|
1124
1221
|
delete_space_variable, # noqa: F401
|
|
@@ -1128,6 +1225,7 @@ if TYPE_CHECKING: # pragma: no cover
|
|
|
1128
1225
|
duplicate_space, # noqa: F401
|
|
1129
1226
|
edit_discussion_comment, # noqa: F401
|
|
1130
1227
|
enable_webhook, # noqa: F401
|
|
1228
|
+
fetch_job_logs, # noqa: F401
|
|
1131
1229
|
file_exists, # noqa: F401
|
|
1132
1230
|
get_collection, # noqa: F401
|
|
1133
1231
|
get_dataset_tags, # noqa: F401
|
|
@@ -1135,21 +1233,27 @@ if TYPE_CHECKING: # pragma: no cover
|
|
|
1135
1233
|
get_full_repo_name, # noqa: F401
|
|
1136
1234
|
get_inference_endpoint, # noqa: F401
|
|
1137
1235
|
get_model_tags, # noqa: F401
|
|
1236
|
+
get_organization_overview, # noqa: F401
|
|
1138
1237
|
get_paths_info, # noqa: F401
|
|
1139
1238
|
get_repo_discussions, # noqa: F401
|
|
1140
1239
|
get_safetensors_metadata, # noqa: F401
|
|
1141
1240
|
get_space_runtime, # noqa: F401
|
|
1142
1241
|
get_space_variables, # noqa: F401
|
|
1143
|
-
get_token_permission, # noqa: F401
|
|
1144
1242
|
get_user_overview, # noqa: F401
|
|
1145
1243
|
get_webhook, # noqa: F401
|
|
1146
1244
|
grant_access, # noqa: F401
|
|
1245
|
+
inspect_job, # noqa: F401
|
|
1246
|
+
inspect_scheduled_job, # noqa: F401
|
|
1147
1247
|
list_accepted_access_requests, # noqa: F401
|
|
1148
1248
|
list_collections, # noqa: F401
|
|
1149
1249
|
list_datasets, # noqa: F401
|
|
1250
|
+
list_inference_catalog, # noqa: F401
|
|
1150
1251
|
list_inference_endpoints, # noqa: F401
|
|
1252
|
+
list_jobs, # noqa: F401
|
|
1253
|
+
list_lfs_files, # noqa: F401
|
|
1151
1254
|
list_liked_repos, # noqa: F401
|
|
1152
1255
|
list_models, # noqa: F401
|
|
1256
|
+
list_organization_followers, # noqa: F401
|
|
1153
1257
|
list_organization_members, # noqa: F401
|
|
1154
1258
|
list_papers, # noqa: F401
|
|
1155
1259
|
list_pending_access_requests, # noqa: F401
|
|
@@ -1170,6 +1274,7 @@ if TYPE_CHECKING: # pragma: no cover
|
|
|
1170
1274
|
parse_safetensors_file_metadata, # noqa: F401
|
|
1171
1275
|
pause_inference_endpoint, # noqa: F401
|
|
1172
1276
|
pause_space, # noqa: F401
|
|
1277
|
+
permanently_delete_lfs_files, # noqa: F401
|
|
1173
1278
|
preupload_lfs_files, # noqa: F401
|
|
1174
1279
|
reject_access_request, # noqa: F401
|
|
1175
1280
|
rename_discussion, # noqa: F401
|
|
@@ -1180,22 +1285,26 @@ if TYPE_CHECKING: # pragma: no cover
|
|
|
1180
1285
|
request_space_storage, # noqa: F401
|
|
1181
1286
|
restart_space, # noqa: F401
|
|
1182
1287
|
resume_inference_endpoint, # noqa: F401
|
|
1288
|
+
resume_scheduled_job, # noqa: F401
|
|
1183
1289
|
revision_exists, # noqa: F401
|
|
1184
1290
|
run_as_future, # noqa: F401
|
|
1291
|
+
run_job, # noqa: F401
|
|
1292
|
+
run_uv_job, # noqa: F401
|
|
1185
1293
|
scale_to_zero_inference_endpoint, # noqa: F401
|
|
1186
1294
|
set_space_sleep_time, # noqa: F401
|
|
1187
1295
|
space_info, # noqa: F401
|
|
1188
1296
|
super_squash_history, # noqa: F401
|
|
1297
|
+
suspend_scheduled_job, # noqa: F401
|
|
1189
1298
|
unlike, # noqa: F401
|
|
1190
1299
|
update_collection_item, # noqa: F401
|
|
1191
1300
|
update_collection_metadata, # noqa: F401
|
|
1192
1301
|
update_inference_endpoint, # noqa: F401
|
|
1193
1302
|
update_repo_settings, # noqa: F401
|
|
1194
|
-
update_repo_visibility, # noqa: F401
|
|
1195
1303
|
update_webhook, # noqa: F401
|
|
1196
1304
|
upload_file, # noqa: F401
|
|
1197
1305
|
upload_folder, # noqa: F401
|
|
1198
1306
|
upload_large_folder, # noqa: F401
|
|
1307
|
+
verify_repo_checksums, # noqa: F401
|
|
1199
1308
|
whoami, # noqa: F401
|
|
1200
1309
|
)
|
|
1201
1310
|
from .hf_file_system import (
|
|
@@ -1230,12 +1339,16 @@ if TYPE_CHECKING: # pragma: no cover
|
|
|
1230
1339
|
ChatCompletionInputFunctionDefinition, # noqa: F401
|
|
1231
1340
|
ChatCompletionInputFunctionName, # noqa: F401
|
|
1232
1341
|
ChatCompletionInputGrammarType, # noqa: F401
|
|
1233
|
-
|
|
1342
|
+
ChatCompletionInputJSONSchema, # noqa: F401
|
|
1234
1343
|
ChatCompletionInputMessage, # noqa: F401
|
|
1235
1344
|
ChatCompletionInputMessageChunk, # noqa: F401
|
|
1236
1345
|
ChatCompletionInputMessageChunkType, # noqa: F401
|
|
1346
|
+
ChatCompletionInputResponseFormatJSONObject, # noqa: F401
|
|
1347
|
+
ChatCompletionInputResponseFormatJSONSchema, # noqa: F401
|
|
1348
|
+
ChatCompletionInputResponseFormatText, # noqa: F401
|
|
1237
1349
|
ChatCompletionInputStreamOptions, # noqa: F401
|
|
1238
1350
|
ChatCompletionInputTool, # noqa: F401
|
|
1351
|
+
ChatCompletionInputToolCall, # noqa: F401
|
|
1239
1352
|
ChatCompletionInputToolChoiceClass, # noqa: F401
|
|
1240
1353
|
ChatCompletionInputToolChoiceEnum, # noqa: F401
|
|
1241
1354
|
ChatCompletionInputURL, # noqa: F401
|
|
@@ -1285,6 +1398,10 @@ if TYPE_CHECKING: # pragma: no cover
|
|
|
1285
1398
|
ImageToTextInput, # noqa: F401
|
|
1286
1399
|
ImageToTextOutput, # noqa: F401
|
|
1287
1400
|
ImageToTextParameters, # noqa: F401
|
|
1401
|
+
ImageToVideoInput, # noqa: F401
|
|
1402
|
+
ImageToVideoOutput, # noqa: F401
|
|
1403
|
+
ImageToVideoParameters, # noqa: F401
|
|
1404
|
+
ImageToVideoTargetSize, # noqa: F401
|
|
1288
1405
|
ObjectDetectionBoundingBox, # noqa: F401
|
|
1289
1406
|
ObjectDetectionInput, # noqa: F401
|
|
1290
1407
|
ObjectDetectionOutputElement, # noqa: F401
|
|
@@ -1368,13 +1485,8 @@ if TYPE_CHECKING: # pragma: no cover
|
|
|
1368
1485
|
ZeroShotObjectDetectionOutputElement, # noqa: F401
|
|
1369
1486
|
ZeroShotObjectDetectionParameters, # noqa: F401
|
|
1370
1487
|
)
|
|
1371
|
-
from .
|
|
1372
|
-
from .
|
|
1373
|
-
KerasModelHubMixin, # noqa: F401
|
|
1374
|
-
from_pretrained_keras, # noqa: F401
|
|
1375
|
-
push_to_hub_keras, # noqa: F401
|
|
1376
|
-
save_pretrained_keras, # noqa: F401
|
|
1377
|
-
)
|
|
1488
|
+
from .inference._mcp.agent import Agent # noqa: F401
|
|
1489
|
+
from .inference._mcp.mcp_client import MCPClient # noqa: F401
|
|
1378
1490
|
from .repocard import (
|
|
1379
1491
|
DatasetCard, # noqa: F401
|
|
1380
1492
|
ModelCard, # noqa: F401
|
|
@@ -1392,10 +1504,8 @@ if TYPE_CHECKING: # pragma: no cover
|
|
|
1392
1504
|
ModelCardData, # noqa: F401
|
|
1393
1505
|
SpaceCardData, # noqa: F401
|
|
1394
1506
|
)
|
|
1395
|
-
from .repository import Repository # noqa: F401
|
|
1396
1507
|
from .serialization import (
|
|
1397
1508
|
StateDictSplit, # noqa: F401
|
|
1398
|
-
get_tf_storage_size, # noqa: F401
|
|
1399
1509
|
get_torch_storage_id, # noqa: F401
|
|
1400
1510
|
get_torch_storage_size, # noqa: F401
|
|
1401
1511
|
load_state_dict_from_file, # noqa: F401
|
|
@@ -1403,7 +1513,6 @@ if TYPE_CHECKING: # pragma: no cover
|
|
|
1403
1513
|
save_torch_model, # noqa: F401
|
|
1404
1514
|
save_torch_state_dict, # noqa: F401
|
|
1405
1515
|
split_state_dict_into_shards_factory, # noqa: F401
|
|
1406
|
-
split_tf_state_dict_into_shards, # noqa: F401
|
|
1407
1516
|
split_torch_state_dict_into_shards, # noqa: F401
|
|
1408
1517
|
)
|
|
1409
1518
|
from .serialization._dduf import (
|
|
@@ -1413,6 +1522,8 @@ if TYPE_CHECKING: # pragma: no cover
|
|
|
1413
1522
|
read_dduf_file, # noqa: F401
|
|
1414
1523
|
)
|
|
1415
1524
|
from .utils import (
|
|
1525
|
+
ASYNC_CLIENT_FACTORY_T, # noqa: F401
|
|
1526
|
+
CLIENT_FACTORY_T, # noqa: F401
|
|
1416
1527
|
CachedFileInfo, # noqa: F401
|
|
1417
1528
|
CachedRepoInfo, # noqa: F401
|
|
1418
1529
|
CachedRevisionInfo, # noqa: F401
|
|
@@ -1420,12 +1531,15 @@ if TYPE_CHECKING: # pragma: no cover
|
|
|
1420
1531
|
CorruptedCacheException, # noqa: F401
|
|
1421
1532
|
DeleteCacheStrategy, # noqa: F401
|
|
1422
1533
|
HFCacheInfo, # noqa: F401
|
|
1423
|
-
HfFolder, # noqa: F401
|
|
1424
1534
|
cached_assets_path, # noqa: F401
|
|
1425
|
-
|
|
1535
|
+
close_session, # noqa: F401
|
|
1426
1536
|
dump_environment_info, # noqa: F401
|
|
1537
|
+
get_async_session, # noqa: F401
|
|
1427
1538
|
get_session, # noqa: F401
|
|
1428
1539
|
get_token, # noqa: F401
|
|
1540
|
+
hf_raise_for_status, # noqa: F401
|
|
1429
1541
|
logging, # noqa: F401
|
|
1430
1542
|
scan_cache_dir, # noqa: F401
|
|
1543
|
+
set_async_client_factory, # noqa: F401
|
|
1544
|
+
set_client_factory, # noqa: F401
|
|
1431
1545
|
)
|