Skip to content

Commit 481641e

Browse files
authored
Replace single framework Neuron DLAMI with base Neuron DLAMI (#4629)
* Replace single framework Neuron DLAMI with base Neuron DLAMI * remove single framework AMI and revert toml
1 parent 3bb6ae8 commit 481641e

File tree

4 files changed

+10
-17
lines changed

4 files changed

+10
-17
lines changed

test/dlc_tests/ec2/pytorch/inference/test_pytorch_inference.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ def test_ec2_pytorch_inference_neuron(pytorch_inference_neuron, ec2_connection,
173173

174174
@pytest.mark.usefixtures("sagemaker")
175175
@pytest.mark.model("resnet")
176-
@pytest.mark.parametrize("ec2_instance_ami", [test_utils.UL20_PT_NEURON_US_WEST_2], indirect=True)
176+
@pytest.mark.parametrize("ec2_instance_ami", [test_utils.UL20_BASE_NEURON_US_WEST_2], indirect=True)
177177
@pytest.mark.team("neuron")
178178
@pytest.mark.parametrize(
179179
"ec2_instance_type",

test/dlc_tests/ec2/pytorch/training/test_pytorch_training.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def test_pytorch_train_mnist_cpu_deep_canary(pytorch_training, ec2_connection, c
116116
execute_ec2_training_test(ec2_connection, pytorch_training, PT_MNIST_CMD)
117117

118118

119-
@pytest.mark.parametrize("ec2_instance_ami", [test_utils.UL20_PT_NEURON_US_WEST_2], indirect=True)
119+
@pytest.mark.parametrize("ec2_instance_ami", [test_utils.UL20_BASE_NEURON_US_WEST_2], indirect=True)
120120
@pytest.mark.parametrize("ec2_instance_type", PT_EC2_NEURON_TRN1_INSTANCE_TYPE, indirect=True)
121121
@pytest.mark.integration("pytorch_neuronx_sanity_test")
122122
@pytest.mark.neuronx_test
@@ -126,7 +126,7 @@ def test_pytorch_allreduce_neuronx(pytorch_training_neuronx, ec2_connection):
126126
execute_ec2_training_test(ec2_connection, pytorch_training_neuronx, PT_NEURON_ALLREDUCE_CMD)
127127

128128

129-
@pytest.mark.parametrize("ec2_instance_ami", [test_utils.UL20_PT_NEURON_US_WEST_2], indirect=True)
129+
@pytest.mark.parametrize("ec2_instance_ami", [test_utils.UL20_BASE_NEURON_US_WEST_2], indirect=True)
130130
@pytest.mark.parametrize("ec2_instance_type", PT_EC2_NEURON_TRN1_INSTANCE_TYPE, indirect=True)
131131
@pytest.mark.integration("pytorch_neuronx_sanity_test")
132132
@pytest.mark.neuronx_test
@@ -136,7 +136,7 @@ def test_pytorch_train_mlp_neuronx(pytorch_training_neuronx, ec2_connection):
136136
execute_ec2_training_test(ec2_connection, pytorch_training_neuronx, PT_NEURON_MLP_CMD)
137137

138138

139-
@pytest.mark.parametrize("ec2_instance_ami", [test_utils.UL20_PT_NEURON_US_WEST_2], indirect=True)
139+
@pytest.mark.parametrize("ec2_instance_ami", [test_utils.UL20_BASE_NEURON_US_WEST_2], indirect=True)
140140
@pytest.mark.parametrize("ec2_instance_type", PT_EC2_NEURON_INF2_INSTANCE_TYPE, indirect=True)
141141
@pytest.mark.integration("pytorch_neuronx_sanity_test")
142142
@pytest.mark.neuronx_test
@@ -146,7 +146,7 @@ def test_pytorch_allreduce_neuronx_inf2(pytorch_training_neuronx, ec2_connection
146146
execute_ec2_training_test(ec2_connection, pytorch_training_neuronx, PT_NEURON_ALLREDUCE_CMD)
147147

148148

149-
@pytest.mark.parametrize("ec2_instance_ami", [test_utils.UL20_PT_NEURON_US_WEST_2], indirect=True)
149+
@pytest.mark.parametrize("ec2_instance_ami", [test_utils.UL20_BASE_NEURON_US_WEST_2], indirect=True)
150150
@pytest.mark.parametrize("ec2_instance_type", PT_EC2_NEURON_INF2_INSTANCE_TYPE, indirect=True)
151151
@pytest.mark.integration("pytorch_neuronx_sanity_test")
152152
@pytest.mark.neuronx_test

test/dlc_tests/ec2/tensorflow/inference/test_tensorflow_inference.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ def test_ec2_tensorflow_inference_arm64_cpu_deep_canary(
105105

106106
@pytest.mark.model("mnist")
107107
@pytest.mark.parametrize("ec2_instance_type", TF_EC2_NEURON_ACCELERATOR_TYPE, indirect=True)
108-
@pytest.mark.parametrize("ec2_instance_ami", [test_utils.UL20_TF_NEURON_US_WEST_2], indirect=True)
108+
@pytest.mark.parametrize("ec2_instance_ami", [test_utils.UL20_BASE_NEURON_US_WEST_2], indirect=True)
109109
@pytest.mark.team("neuron")
110110
def test_ec2_tensorflow_inference_neuron(tensorflow_inference_neuron, ec2_connection, region):
111111
run_ec2_tensorflow_inference(tensorflow_inference_neuron, ec2_connection, "8500", region)
@@ -118,7 +118,7 @@ def test_ec2_tensorflow_inference_neuron(tensorflow_inference_neuron, ec2_connec
118118
indirect=True,
119119
)
120120
@pytest.mark.team("neuron")
121-
@pytest.mark.parametrize("ec2_instance_ami", [test_utils.UL20_PT_NEURON_US_WEST_2], indirect=True)
121+
@pytest.mark.parametrize("ec2_instance_ami", [test_utils.UL20_BASE_NEURON_US_WEST_2], indirect=True)
122122
def test_ec2_tensorflow_inference_neuronx(tensorflow_inference_neuronx, ec2_connection, region):
123123
run_ec2_tensorflow_inference(tensorflow_inference_neuronx, ec2_connection, "8500", region)
124124

test/test_utils/__init__.py

+3-10
Original file line numberDiff line numberDiff line change
@@ -163,15 +163,9 @@ def get_ami_id_ssm(region_name, parameter_path):
163163
NEURON_UBUNTU_18_BASE_DLAMI_US_WEST_2 = get_ami_id_boto3(
164164
region_name="us-west-2", ami_name_pattern="Deep Learning Base AMI (Ubuntu 18.04) Version ??.?"
165165
)
166-
UL20_PT_NEURON_US_WEST_2 = get_ami_id_boto3(
166+
UL20_BASE_NEURON_US_WEST_2 = get_ami_id_boto3(
167167
region_name="us-west-2",
168-
ami_name_pattern="Deep Learning AMI Neuron PyTorch 1.11.0 (Ubuntu 20.04) ????????",
169-
IncludeDeprecated=True,
170-
)
171-
UL20_TF_NEURON_US_WEST_2 = get_ami_id_boto3(
172-
region_name="us-west-2",
173-
ami_name_pattern="Deep Learning AMI Neuron TensorFlow 2.10.? (Ubuntu 20.04) ????????",
174-
IncludeDeprecated=True,
168+
ami_name_pattern="Deep Learning Base Neuron AMI (Ubuntu 20.04) ????????",
175169
)
176170
# Since NEURON TRN1 DLAMI is not released yet use a custom AMI
177171
NEURON_INF1_AMI_US_WEST_2 = "ami-06a5a60d3801a57b7"
@@ -203,8 +197,7 @@ def get_ami_id_ssm(region_name, parameter_path):
203197
PT_GPU_PY3_BENCHMARK_IMAGENET_AMI_US_EAST_1,
204198
PT_GPU_PY3_BENCHMARK_IMAGENET_AMI_US_WEST_2,
205199
NEURON_UBUNTU_18_BASE_DLAMI_US_WEST_2,
206-
UL20_PT_NEURON_US_WEST_2,
207-
UL20_TF_NEURON_US_WEST_2,
200+
UL20_BASE_NEURON_US_WEST_2,
208201
NEURON_INF1_AMI_US_WEST_2,
209202
UL20_CPU_ARM64_US_EAST_1,
210203
UL20_CPU_ARM64_US_WEST_2,

0 commit comments

Comments
 (0)