Compare commits

...

2 Commits

Author SHA1 Message Date
ArthurZucker
573565e35a Release: v4.41.2
Some checks failed
Release - Conda / build_and_package (push) Has been cancelled
2024-05-24 05:03:17 -04:00
Lucain
12aa3167b4 Do not trigger autoconversion if local_files_only (#31004) 2024-05-24 05:02:39 -04:00
3 changed files with 3 additions and 3 deletions

View File

@@ -426,7 +426,7 @@ install_requires = [
setup(
name="transformers",
version="4.41.1", # expected format is one of x.y.z.dev0, or x.y.z.rc1 or x.y.z (no to dashes, yes to dots)
version="4.41.2", # expected format is one of x.y.z.dev0, or x.y.z.rc1 or x.y.z (no to dashes, yes to dots)
author="The Hugging Face team (past and future) with the help of all our contributors (https://github.com/huggingface/transformers/graphs/contributors)",
author_email="transformers@huggingface.co",
description="State-of-the-art Machine Learning for JAX, PyTorch and TensorFlow",

View File

@@ -18,7 +18,7 @@
# to defer the actual importing for when the objects are requested. This way `import transformers` provides the names
# in the namespace without actually importing anything (and especially none of the backends).
__version__ = "4.41.1"
__version__ = "4.41.2"
from typing import TYPE_CHECKING

View File

@@ -3390,7 +3390,7 @@ class PreTrainedModel(nn.Module, ModuleUtilsMixin, GenerationMixin, PushToHubMix
if resolved_archive_file is not None:
is_sharded = True
if resolved_archive_file is not None:
if not local_files_only and resolved_archive_file is not None:
if filename in [WEIGHTS_NAME, WEIGHTS_INDEX_NAME]:
# If the PyTorch file was found, check if there is a safetensors file on the repository
# If there is no safetensors file on the repositories, start an auto conversion