From da06f2ad6e25ac8e82b5d4cce403e8cbff187f84 Mon Sep 17 00:00:00 2001 From: Cemberk Date: Mon, 29 Jul 2024 20:57:08 +0000 Subject: [PATCH 1/2] mi250 new skip from update --- tests/models/depth_anything/test_modeling_depth_anything.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/models/depth_anything/test_modeling_depth_anything.py b/tests/models/depth_anything/test_modeling_depth_anything.py index d78671d559a9..7171a062bce0 100644 --- a/tests/models/depth_anything/test_modeling_depth_anything.py +++ b/tests/models/depth_anything/test_modeling_depth_anything.py @@ -18,7 +18,7 @@ from transformers import DepthAnythingConfig, Dinov2Config from transformers.file_utils import is_torch_available, is_vision_available -from transformers.testing_utils import require_torch, require_vision, slow, torch_device +from transformers.testing_utils import require_torch, require_vision, slow, torch_device, skipIfRocm from ...test_configuration_common import ConfigTester from ...test_modeling_common import ModelTesterMixin, floats_tensor, ids_tensor @@ -156,6 +156,10 @@ def setUp(self): common_properties=["patch_size"], ) + @skipIfRocm + def test_batching_equivalence(self): + super().test_batching_equivalence() + def test_config(self): self.config_tester.run_common_tests() From b1f5d4591545962ee812951796c08b5555f1bf29 Mon Sep 17 00:00:00 2001 From: Cemberk Date: Mon, 29 Jul 2024 16:04:03 -0500 Subject: [PATCH 2/2] revert change from main use_auth_token depricated --- examples/pytorch/translation/run_translation.py | 1 - 1 file changed, 1 deletion(-) diff --git a/examples/pytorch/translation/run_translation.py b/examples/pytorch/translation/run_translation.py index fbe94dda7c16..deda70df616d 100755 --- a/examples/pytorch/translation/run_translation.py +++ b/examples/pytorch/translation/run_translation.py @@ -381,7 +381,6 @@ def main(): model_args.config_name if model_args.config_name else model_args.model_name_or_path, cache_dir=model_args.cache_dir, revision=model_args.model_revision, - use_auth_token=True if model_args.use_auth_token else None, ort=True if training_args.ort else None, token=model_args.token, trust_remote_code=model_args.trust_remote_code,