Compare commits

...

2 Commits

Author SHA1 Message Date
Sylvain Gugger
a1651b518e Release: v4.19.1
Some checks failed
Release - Conda / build_and_package (push) Has been cancelled
2022-05-13 14:15:20 -04:00
Sylvain Gugger
ca45659a07 Fix Trainer for Datasets that don't have dict items (#17239) 2022-05-13 14:13:13 -04:00
3 changed files with 4 additions and 2 deletions

View File

@@ -392,7 +392,7 @@ install_requires = [
setup(
name="transformers",
version="4.19.0", # 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.19.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)
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

@@ -22,7 +22,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.19.0"
__version__ = "4.19.1"
from typing import TYPE_CHECKING

View File

@@ -676,6 +676,8 @@ class RemoveColumnsCollator:
self.message_logged = False
def _remove_columns(self, feature: dict) -> dict:
if not isinstance(feature, dict):
return feature
if not self.message_logged and self.logger and self.model_name:
ignored_columns = list(set(feature.keys()) - set(self.signature_columns))
if len(ignored_columns) > 0: