Skip to content

Commit e0580b5

Browse files
committed
fix: update test and version compatibility
1 parent 6688892 commit e0580b5

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

tests/unit/sagemaker/training_compiler/test_huggingface_pytorch_compiler.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -359,6 +359,8 @@ def test_pytorchxla_distribution(
359359
huggingface_training_compiler_pytorch_version,
360360
instance_class,
361361
):
362+
if Version(huggingface_training_compiler_pytorch_version) < Version("1.11"):
363+
pytest.skip("This test is intended for PyTorch 1.11 and above")
362364
compiler_config = TrainingCompilerConfig()
363365
instance_type = f"ml.{instance_class}.xlarge"
364366

tests/unit/sagemaker/training_compiler/test_huggingface_tensorflow_compiler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
ROLE = "Dummy"
4242
REGION = "us-east-1"
4343
GPU = "ml.p3.2xlarge"
44-
SUPPORTED_GPU_INSTANCE_CLASSES = {"p3", "p3dn", "g4dn", "p4dn"}
44+
SUPPORTED_GPU_INSTANCE_CLASSES = {"p3", "p3dn", "g4dn", "p4d", "g5"}
4545
UNSUPPORTED_GPU_INSTANCE_CLASSES = EC2_GPU_INSTANCE_CLASSES - SUPPORTED_GPU_INSTANCE_CLASSES
4646

4747
LIST_TAGS_RESULT = {"Tags": [{"Key": "TagtestKey", "Value": "TagtestValue"}]}

0 commit comments

Comments
 (0)