huggingface-hub 0.30.0rc3__py3-none-any.whl → 0.30.1__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 +1 -1
- huggingface_hub/inference/_providers/hf_inference.py +8 -0
- {huggingface_hub-0.30.0rc3.dist-info → huggingface_hub-0.30.1.dist-info}/METADATA +1 -1
- {huggingface_hub-0.30.0rc3.dist-info → huggingface_hub-0.30.1.dist-info}/RECORD +8 -8
- {huggingface_hub-0.30.0rc3.dist-info → huggingface_hub-0.30.1.dist-info}/LICENSE +0 -0
- {huggingface_hub-0.30.0rc3.dist-info → huggingface_hub-0.30.1.dist-info}/WHEEL +0 -0
- {huggingface_hub-0.30.0rc3.dist-info → huggingface_hub-0.30.1.dist-info}/entry_points.txt +0 -0
- {huggingface_hub-0.30.0rc3.dist-info → huggingface_hub-0.30.1.dist-info}/top_level.txt +0 -0
huggingface_hub/__init__.py
CHANGED
|
@@ -151,6 +151,14 @@ def _check_supported_task(model: str, task: str) -> None:
|
|
|
151
151
|
return # Only conversational allowed if tagged as conversational
|
|
152
152
|
raise ValueError("Non-conversational image-text-to-text task is not supported.")
|
|
153
153
|
|
|
154
|
+
if (
|
|
155
|
+
task in ("feature-extraction", "sentence-similarity")
|
|
156
|
+
and pipeline_tag in ("feature-extraction", "sentence-similarity")
|
|
157
|
+
and task in tags
|
|
158
|
+
):
|
|
159
|
+
# feature-extraction and sentence-similarity are interchangeable for HF Inference
|
|
160
|
+
return
|
|
161
|
+
|
|
154
162
|
# For all other tasks, just check pipeline tag
|
|
155
163
|
if pipeline_tag != task:
|
|
156
164
|
raise ValueError(
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: huggingface-hub
|
|
3
|
-
Version: 0.30.
|
|
3
|
+
Version: 0.30.1
|
|
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.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
huggingface_hub/__init__.py,sha256
|
|
1
|
+
huggingface_hub/__init__.py,sha256=hNa8rkJtZJkpw6ZIpTkY6if38nViltBFbMDSy3nhpj4,49368
|
|
2
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
|
|
@@ -84,7 +84,7 @@ huggingface_hub/inference/_providers/cerebras.py,sha256=YT1yFhXvDJiKZcqcJcA_7VZJ
|
|
|
84
84
|
huggingface_hub/inference/_providers/cohere.py,sha256=GkFsuKSaqsyfeerPx0ewv-EX44MtJ8a3XXEfmAiTpb0,419
|
|
85
85
|
huggingface_hub/inference/_providers/fal_ai.py,sha256=Pko6CHSB30jkuuxBNC6rpDWWWN07lvPCNxxIlteBtik,6099
|
|
86
86
|
huggingface_hub/inference/_providers/fireworks_ai.py,sha256=6uDsaxJRaN2xWNQX8u1bvF8zO-8J31TAnHdsrf_TO5g,337
|
|
87
|
-
huggingface_hub/inference/_providers/hf_inference.py,sha256=
|
|
87
|
+
huggingface_hub/inference/_providers/hf_inference.py,sha256=s-mHKGN1BQ1gb-l4wYfYZPZW6voJ9XhdNG55ZYYpUoI,7148
|
|
88
88
|
huggingface_hub/inference/_providers/hyperbolic.py,sha256=ZIwD50fUv3QnL091XlKA7TOs_E33Df5stsewpnbDNZ4,1824
|
|
89
89
|
huggingface_hub/inference/_providers/nebius.py,sha256=VcgjvQCNnFifU4GMFXJENgdqgQXSu4uHcu2hUljNDaY,1593
|
|
90
90
|
huggingface_hub/inference/_providers/novita.py,sha256=_ofZzGxtKn9v9anmS1kElnOiJa9Hmoeyi4Exv_jVOVg,2023
|
|
@@ -127,9 +127,9 @@ huggingface_hub/utils/insecure_hashlib.py,sha256=OjxlvtSQHpbLp9PWSrXBDJ0wHjxCBU-
|
|
|
127
127
|
huggingface_hub/utils/logging.py,sha256=0A8fF1yh3L9Ka_bCDX2ml4U5Ht0tY8Dr3JcbRvWFuwo,4909
|
|
128
128
|
huggingface_hub/utils/sha.py,sha256=OFnNGCba0sNcT2gUwaVCJnldxlltrHHe0DS_PCpV3C4,2134
|
|
129
129
|
huggingface_hub/utils/tqdm.py,sha256=xAKcyfnNHsZ7L09WuEM5Ew5-MDhiahLACbbN2zMmcLs,10671
|
|
130
|
-
huggingface_hub-0.30.
|
|
131
|
-
huggingface_hub-0.30.
|
|
132
|
-
huggingface_hub-0.30.
|
|
133
|
-
huggingface_hub-0.30.
|
|
134
|
-
huggingface_hub-0.30.
|
|
135
|
-
huggingface_hub-0.30.
|
|
130
|
+
huggingface_hub-0.30.1.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
131
|
+
huggingface_hub-0.30.1.dist-info/METADATA,sha256=yb4jdtYon84q0whgsLOLbLf2Z-2HIN6tsp3jckuFBz4,13551
|
|
132
|
+
huggingface_hub-0.30.1.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
|
|
133
|
+
huggingface_hub-0.30.1.dist-info/entry_points.txt,sha256=Y3Z2L02rBG7va_iE6RPXolIgwOdwUFONyRN3kXMxZ0g,131
|
|
134
|
+
huggingface_hub-0.30.1.dist-info/top_level.txt,sha256=8KzlQJAY4miUvjAssOAJodqKOw3harNzuiwGQ9qLSSk,16
|
|
135
|
+
huggingface_hub-0.30.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|