Skip to content

chore: add p2 instances to integ tests #3852

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 16, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions tests/integ/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,15 @@
from tests.conftest import NO_P3_REGIONS, NO_M4_REGIONS
from sagemaker.exceptions import CapacityError

P2_INSTANCES = ["ml.p2.xlarge", "ml.p2.8xlarge", "ml.p2.16xlarge"]
P3_INSTANCES = ["ml.p3.2xlarge"]


def gpu_list(region):
if region in NO_P3_REGIONS:
return ["ml.p2.xlarge"]
return P2_INSTANCES
else:
return ["ml.p3.2xlarge", "ml.p2.xlarge"]
return [*P2_INSTANCES, *P3_INSTANCES]


def cpu_list(region):
Expand Down