File tree Expand file tree Collapse file tree 2 files changed +24
-3
lines changed
tests/integ/sagemaker/jumpstart Expand file tree Collapse file tree 2 files changed +24
-3
lines changed Original file line number Diff line number Diff line change 18
18
from sagemaker .jumpstart .constants import JUMPSTART_DEFAULT_REGION_NAME
19
19
20
20
from sagemaker .jumpstart .estimator import JumpStartEstimator
21
+ import tests
21
22
from tests .integ .sagemaker .jumpstart .constants import (
22
23
ENV_VAR_JUMPSTART_SDK_TEST_SUITE_ID ,
23
24
JUMPSTART_TAG ,
32
33
33
34
MAX_INIT_TIME_SECONDS = 5
34
35
36
+ GATED_TRAINING_MODEL_SUPPORTED_REGIONS = {
37
+ "us-west-2" ,
38
+ "us-east-1" ,
39
+ "eu-west-1" ,
40
+ "ap-southeast-1" ,
41
+ "us-east-2" ,
42
+ "ap-southeast-2" ,
43
+ }
44
+
35
45
36
46
def test_jumpstart_estimator (setup ):
37
47
@@ -67,6 +77,10 @@ def test_jumpstart_estimator(setup):
67
77
68
78
# instance capacity errors require retries
69
79
@pytest .mark .flaky (reruns = 5 , reruns_delay = 60 )
80
+ @pytest .mark .skipif (
81
+ tests .integ .test_region () not in GATED_TRAINING_MODEL_SUPPORTED_REGIONS ,
82
+ reason = f"JumpStart gated training models unavailable in { tests .integ .test_region ()} ." ,
83
+ )
70
84
def test_gated_model_training (setup ):
71
85
72
86
model_id , model_version = "meta-textgeneration-llama-2-7b" , "*"
Original file line number Diff line number Diff line change 33
33
34
34
MAX_INIT_TIME_SECONDS = 5
35
35
36
- MODEL_PACKAGE_ARN_SUPPORTED_REGIONS = {"us-west-2" , "us-east-1" }
36
+ GATED_INFERENCE_MODEL_SUPPORTED_REGIONS = {
37
+ "us-west-2" ,
38
+ "us-east-1" ,
39
+ "eu-west-1" ,
40
+ "ap-southeast-1" ,
41
+ "us-east-2" ,
42
+ "ap-southeast-2" ,
43
+ }
37
44
38
45
39
46
def test_non_prepacked_jumpstart_model (setup ):
@@ -80,8 +87,8 @@ def test_prepacked_jumpstart_model(setup):
80
87
81
88
82
89
@pytest .mark .skipif (
83
- tests .integ .test_region () not in MODEL_PACKAGE_ARN_SUPPORTED_REGIONS ,
84
- reason = f"JumpStart Model Package models unavailable in { tests .integ .test_region ()} ." ,
90
+ tests .integ .test_region () not in GATED_INFERENCE_MODEL_SUPPORTED_REGIONS ,
91
+ reason = f"JumpStart gated inference models unavailable in { tests .integ .test_region ()} ." ,
85
92
)
86
93
def test_model_package_arn_jumpstart_model (setup ):
87
94
You can’t perform that action at this time.
0 commit comments