Skip to content
Merged
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions pai/estimator.py
Original file line number Diff line number Diff line change
Expand Up @@ -724,6 +724,7 @@ def __init__(
experiment_config=experiment_config,
resource_id=resource_id,
session=session,
**kwargs,
)

def training_image_uri(self) -> str:
Expand Down
6 changes: 4 additions & 2 deletions pai/model/_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -2124,8 +2124,8 @@ def get_estimator(
ts.scheduler.max_running_time_in_seconds if ts.scheduler else None
)

resource_id = kwargs.get("resource_id")
instance_spec = kwargs.get("instance_spec")
resource_id = kwargs.pop("resource_id", None)
instance_spec = kwargs.pop("instance_spec", None)
compute_resource = ts.compute_resource
if resource_id:
if instance_type:
Expand All @@ -2146,6 +2146,7 @@ def get_estimator(
)
else:
if instance_spec:
instance_spec = None
logger.warning(
"The instance spec is ignored when resource_id is not provided."
)
Expand Down Expand Up @@ -2182,6 +2183,7 @@ def get_estimator(
instance_type=instance_type,
instance_count=instance_count,
instance_spec=instance_spec,
resource_id=resource_id,
output_path=output_path,
labels=labels,
**kwargs,
Expand Down