huggingface-hub 0.26.4__py3-none-any.whl → 0.26.5__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.

@@ -46,7 +46,7 @@ import sys
46
46
  from typing import TYPE_CHECKING
47
47
 
48
48
 
49
- __version__ = "0.26.4"
49
+ __version__ = "0.26.5"
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
@@ -41,7 +41,6 @@ def save_torch_model(
41
41
  max_shard_size: Union[int, str] = MAX_SHARD_SIZE,
42
42
  metadata: Optional[Dict[str, str]] = None,
43
43
  safe_serialization: bool = True,
44
- is_main_process: bool = True,
45
44
  shared_tensors_to_discard: Optional[List[str]] = None,
46
45
  ):
47
46
  """
@@ -96,10 +95,6 @@ def save_torch_model(
96
95
  Whether to save as safetensors, which is the default behavior. If `False`, the shards are saved as pickle.
97
96
  Safe serialization is recommended for security reasons. Saving as pickle is deprecated and will be removed
98
97
  in a future version.
99
- is_main_process (`bool`, *optional*):
100
- Whether the process calling this is the main process or not. Useful when in distributed training like
101
- TPUs and need to call this function from all processes. In this case, set `is_main_process=True` only on
102
- the main process to avoid race conditions. Defaults to True.
103
98
  shared_tensors_to_discard (`List[str]`, *optional*):
104
99
  List of tensor names to drop when saving shared tensors. If not provided and shared tensors are
105
100
  detected, it will drop the first name alphabetically.
@@ -127,7 +122,6 @@ def save_torch_model(
127
122
  metadata=metadata,
128
123
  safe_serialization=safe_serialization,
129
124
  save_directory=save_directory,
130
- is_main_process=is_main_process,
131
125
  shared_tensors_to_discard=shared_tensors_to_discard,
132
126
  )
133
127
 
@@ -141,7 +135,6 @@ def save_torch_state_dict(
141
135
  max_shard_size: Union[int, str] = MAX_SHARD_SIZE,
142
136
  metadata: Optional[Dict[str, str]] = None,
143
137
  safe_serialization: bool = True,
144
- is_main_process: bool = True,
145
138
  shared_tensors_to_discard: Optional[List[str]] = None,
146
139
  ) -> None:
147
140
  """
@@ -196,10 +189,6 @@ def save_torch_state_dict(
196
189
  Whether to save as safetensors, which is the default behavior. If `False`, the shards are saved as pickle.
197
190
  Safe serialization is recommended for security reasons. Saving as pickle is deprecated and will be removed
198
191
  in a future version.
199
- is_main_process (`bool`, *optional*):
200
- Whether the process calling this is the main process or not. Useful when in distributed training like
201
- TPUs and need to call this function from all processes. In this case, set `is_main_process=True` only on
202
- the main process to avoid race conditions. Defaults to True.
203
192
  shared_tensors_to_discard (`List[str]`, *optional*):
204
193
  List of tensor names to drop when saving shared tensors. If not provided and shared tensors are
205
194
  detected, it will drop the first name alphabetically.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: huggingface-hub
3
- Version: 0.26.4
3
+ Version: 0.26.5
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=kXk5sqwCRAGkjc6nnpI_Mu-LGaIoinBcbXytSzhca3s,35993
1
+ huggingface_hub/__init__.py,sha256=Wl-Elpop7G1PCVIw6NRG58RnKdQ11i6r-6-Xduk55EI,35993
2
2
  huggingface_hub/_commit_api.py,sha256=Y9eTaW4bYzxtrZsSniVtfeAuFafqx8x1ofMI5es8hvM,31057
3
3
  huggingface_hub/_commit_scheduler.py,sha256=nlJS_vnLb8i92NLrRwJX8Mg9QZ7f3kfLbLlQuEd5YjU,13647
4
4
  huggingface_hub/_inference_endpoints.py,sha256=wzjD8P68VpUDHzIDbXzFXsM2Y-aNVSAap7BXsZFuthk,16750
@@ -79,7 +79,7 @@ huggingface_hub/inference/_generated/types/zero_shot_object_detection.py,sha256=
79
79
  huggingface_hub/serialization/__init__.py,sha256=z5MLxMqz0Y2qST-3Lj0PZHUONL-SGRlc0g4Z6MdL6rw,988
80
80
  huggingface_hub/serialization/_base.py,sha256=JZneES-HgcRH9C2SQehIGRDtT7nS7emu-RRV4ZjB6xo,8124
81
81
  huggingface_hub/serialization/_tensorflow.py,sha256=zHOvEMg-JHC55Fm4roDT3LUCDO5zB9qtXZffG065RAM,3625
82
- huggingface_hub/serialization/_torch.py,sha256=KlCRgLarzegkbfUmb73h82p2vDvgKrWw03ltQ7klI2Q,28685
82
+ huggingface_hub/serialization/_torch.py,sha256=HbbB_Mzi_gLVMF7kaOxEev1tNFCX79x6gt396RQbqqQ,27876
83
83
  huggingface_hub/templates/datasetcard_template.md,sha256=W-EMqR6wndbrnZorkVv56URWPG49l7MATGeI015kTvs,5503
84
84
  huggingface_hub/templates/modelcard_template.md,sha256=4AqArS3cqdtbit5Bo-DhjcnDFR-pza5hErLLTPM4Yuc,6870
85
85
  huggingface_hub/utils/__init__.py,sha256=aMEsiXGi93z-dXz1W7FFma71tAMeKw0SoKVZSQUeE_4,3525
@@ -109,9 +109,9 @@ huggingface_hub/utils/insecure_hashlib.py,sha256=OjxlvtSQHpbLp9PWSrXBDJ0wHjxCBU-
109
109
  huggingface_hub/utils/logging.py,sha256=Cp03s0uEl3kDM9XHQW9a8GAoExODQ-e7kEtgMt-_To8,4728
110
110
  huggingface_hub/utils/sha.py,sha256=OFnNGCba0sNcT2gUwaVCJnldxlltrHHe0DS_PCpV3C4,2134
111
111
  huggingface_hub/utils/tqdm.py,sha256=jQiVYwRG78HK4_54u0vTtz6Kt9IMGiHy3ixbIn3h2TU,9368
112
- huggingface_hub-0.26.4.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
113
- huggingface_hub-0.26.4.dist-info/METADATA,sha256=PqF3HduxB5xJmjEI0-bMVfg2z72wgsioKo-ZHyH226g,13091
114
- huggingface_hub-0.26.4.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
115
- huggingface_hub-0.26.4.dist-info/entry_points.txt,sha256=Y3Z2L02rBG7va_iE6RPXolIgwOdwUFONyRN3kXMxZ0g,131
116
- huggingface_hub-0.26.4.dist-info/top_level.txt,sha256=8KzlQJAY4miUvjAssOAJodqKOw3harNzuiwGQ9qLSSk,16
117
- huggingface_hub-0.26.4.dist-info/RECORD,,
112
+ huggingface_hub-0.26.5.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
113
+ huggingface_hub-0.26.5.dist-info/METADATA,sha256=vwuzPrQU945uSrY4_Q29Jm3e2lvx_EpneRyj2OZELpk,13091
114
+ huggingface_hub-0.26.5.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
115
+ huggingface_hub-0.26.5.dist-info/entry_points.txt,sha256=Y3Z2L02rBG7va_iE6RPXolIgwOdwUFONyRN3kXMxZ0g,131
116
+ huggingface_hub-0.26.5.dist-info/top_level.txt,sha256=8KzlQJAY4miUvjAssOAJodqKOw3harNzuiwGQ9qLSSk,16
117
+ huggingface_hub-0.26.5.dist-info/RECORD,,