Skip to content
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

fix: remove model_display_name requirement for training jobs #324

Conversation

morgandu
Copy link
Contributor

@morgandu morgandu commented Apr 15, 2021

Fixes #<b/184155454> 🦕

@product-auto-label product-auto-label bot added the api: aiplatform Issues related to the AI Platform API. label Apr 15, 2021
@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Apr 15, 2021
@morgandu morgandu requested review from sasha-gitg and vinnysenthil and removed request for sasha-gitg April 16, 2021 05:44
Copy link
Member

@sasha-gitg sasha-gitg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks Morgan!

@@ -1491,6 +1491,9 @@ def _prepare_and_validate_run(
"""
)

if self._managed_model.container_spec.image_uri:
model_display_name = model_display_name or self._display_name
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
model_display_name = model_display_name or self._display_name
model_display_name = model_display_name or self._display_name + '-model'

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also can you update the docstring to capture this behavior.

@morgandu morgandu force-pushed the mor--remove-model-display-name-requirement-for-training-jobs branch 2 times, most recently from 6720044 to 9c7f1e9 Compare April 20, 2021 03:37
@sasha-gitg
Copy link
Member

Please open this PR into the main branch instead of dev.

@morgandu morgandu changed the base branch from dev to master April 20, 2021 14:29
@morgandu morgandu force-pushed the mor--remove-model-display-name-requirement-for-training-jobs branch from 9c7f1e9 to 6cf7b83 Compare April 20, 2021 16:58
…en model_serving_container_image_uri is provided
@morgandu morgandu force-pushed the mor--remove-model-display-name-requirement-for-training-jobs branch from 6cf7b83 to 72caf45 Compare April 20, 2021 18:42
@morgandu morgandu merged commit a5fa7a2 into googleapis:master Apr 20, 2021
@morgandu morgandu deleted the mor--remove-model-display-name-requirement-for-training-jobs branch April 20, 2021 21:22
ivanmkc pushed a commit to ivanmkc/python-aiplatform that referenced this pull request Apr 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: aiplatform Issues related to the AI Platform API. cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants