Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
66fd3a8d62 | ||
|
|
8f9f1efaf8 | ||
|
|
497d66740b |
2
setup.py
2
setup.py
@@ -428,7 +428,7 @@ install_requires = [
|
||||
|
||||
setup(
|
||||
name="transformers",
|
||||
version="4.30.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.30.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",
|
||||
|
||||
@@ -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.30.1"
|
||||
__version__ = "4.30.2"
|
||||
|
||||
from typing import TYPE_CHECKING
|
||||
|
||||
|
||||
@@ -712,7 +712,6 @@ class PushToHubMixin:
|
||||
operations = []
|
||||
# upload standalone files
|
||||
for file in modified_files:
|
||||
operations.append(CommitOperationAdd(path_or_fileobj=os.path.join(working_dir, file), path_in_repo=file))
|
||||
if os.path.isdir(os.path.join(working_dir, file)):
|
||||
# go over individual files of folder
|
||||
for f in os.listdir(os.path.join(working_dir, file)):
|
||||
|
||||
@@ -146,7 +146,9 @@ if FORCE_TF_AVAILABLE in ENV_VARS_TRUE_VALUES:
|
||||
_tf_available = True
|
||||
else:
|
||||
if USE_TF in ENV_VARS_TRUE_AND_AUTO_VALUES and USE_TORCH not in ENV_VARS_TRUE_VALUES:
|
||||
_tf_available = _is_package_available("tensorflow")
|
||||
# Note: _is_package_available("tensorflow") fails for tensorflow-cpu. Please test any changes to the line below
|
||||
# with tensorflow-cpu to make sure it still works!
|
||||
_tf_available = importlib.util.find_spec("tensorflow") is not None
|
||||
if _tf_available:
|
||||
candidates = (
|
||||
"tensorflow",
|
||||
|
||||
Reference in New Issue
Block a user