Compare commits

...

3 Commits

Author SHA1 Message Date
Sylvain Gugger
bff1c71e84 Release: v4.9.1
Some checks failed
Release - Conda / build_and_package (push) Has been cancelled
2021-07-26 10:21:55 -04:00
Sylvain Gugger
8ee16d84ce Fix barrier for SM distributed (#12853) 2021-07-26 10:21:07 -04:00
Sylvain Gugger
6cab8b32e3 Add doc for v4.9.0 2021-07-26 10:20:51 -04:00
5 changed files with 11 additions and 5 deletions

View File

@@ -67,4 +67,5 @@ deploy_doc "25dee4a" v4.6.0
deploy_doc "7a6c9fa" v4.7.0 deploy_doc "7a6c9fa" v4.7.0
deploy_doc "9252a51" v4.8.0 deploy_doc "9252a51" v4.8.0
deploy_doc "1366172" v4.8.1 deploy_doc "1366172" v4.8.1
deploy_doc "96d1cfb" # v4.8.2 Latest stable release deploy_doc "96d1cfb" v4.8.2
deploy_doc "72aee83" # v4.9.0 Latest stable release

View File

@@ -1,10 +1,11 @@
// These two things need to be updated at each release for the version selector. // These two things need to be updated at each release for the version selector.
// Last stable version // Last stable version
const stableVersion = "v4.8.2" const stableVersion = "v4.9.0"
// Dictionary doc folder to label. The last stable version should have an empty key. // Dictionary doc folder to label. The last stable version should have an empty key.
const versionMapping = { const versionMapping = {
"master": "master", "master": "master",
"": "v4.8.0/v4.8.1/v4.8.2 (stable)", "": "v4.9.0 (stable)",
"v4.8.2": "v4.8.0/v4.8.1/v4.8.2",
"v4.7.0": "v4.7.0", "v4.7.0": "v4.7.0",
"v4.6.0": "v4.6.0", "v4.6.0": "v4.6.0",
"v4.5.1": "v4.5.0/v4.5.1", "v4.5.1": "v4.5.0/v4.5.1",

View File

@@ -337,7 +337,7 @@ install_requires = [
setup( setup(
name="transformers", name="transformers",
version="4.9.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.9.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="Thomas Wolf, Lysandre Debut, Victor Sanh, Julien Chaumond, Sam Shleifer, Patrick von Platen, Sylvain Gugger, Suraj Patil, Stas Bekman, Google AI Language Team Authors, Open AI team Authors, Facebook AI Authors, Carnegie Mellon University Authors", author="Thomas Wolf, Lysandre Debut, Victor Sanh, Julien Chaumond, Sam Shleifer, Patrick von Platen, Sylvain Gugger, Suraj Patil, Stas Bekman, Google AI Language Team Authors, Open AI team Authors, Facebook AI Authors, Carnegie Mellon University Authors",
author_email="thomas@huggingface.co", author_email="thomas@huggingface.co",
description="State-of-the-art Natural Language Processing for TensorFlow 2.0 and PyTorch", description="State-of-the-art Natural Language Processing for TensorFlow 2.0 and PyTorch",

View File

@@ -22,7 +22,7 @@
# to defer the actual importing for when the objects are requested. This way `import transformers` provides the names # 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). # in the namespace without actually importing anything (and especially none of the backends).
__version__ = "4.9.0" __version__ = "4.9.1"
# Work around to update TensorFlow's absl.logging threshold which alters the # Work around to update TensorFlow's absl.logging threshold which alters the
# default Python logging output behavior when present. # default Python logging output behavior when present.

View File

@@ -1052,6 +1052,8 @@ class TrainingArguments:
logger.debug(f"{self.process_index}: waiting for the {main_process_desc} to perform {desc}") logger.debug(f"{self.process_index}: waiting for the {main_process_desc} to perform {desc}")
if is_torch_tpu_available(): if is_torch_tpu_available():
xm.rendezvous(desc) xm.rendezvous(desc)
elif is_sagemaker_dp_enabled():
sm_dist.Barrier()
else: else:
torch.distributed.barrier() torch.distributed.barrier()
yield yield
@@ -1061,6 +1063,8 @@ class TrainingArguments:
logger.debug(f"{self.process_index}: {main_process_desc} completed {desc}, releasing all replicas") logger.debug(f"{self.process_index}: {main_process_desc} completed {desc}, releasing all replicas")
if is_torch_tpu_available(): if is_torch_tpu_available():
xm.rendezvous(desc) xm.rendezvous(desc)
elif is_sagemaker_dp_enabled():
sm_dist.Barrier()
else: else:
torch.distributed.barrier() torch.distributed.barrier()
else: else: