-
Notifications
You must be signed in to change notification settings - Fork 348
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
feat: Added the PipelineJob.from_pipeline_func method #1415
Merged
gcf-merge-on-green
merged 17 commits into
googleapis:main
from
Ark-kun:feat--Added-the-PipelineJob.submit_from_pipeline_func-method
Jul 15, 2022
Merged
feat: Added the PipelineJob.from_pipeline_func method #1415
gcf-merge-on-green
merged 17 commits into
googleapis:main
from
Ark-kun:feat--Added-the-PipelineJob.submit_from_pipeline_func-method
Jul 15, 2022
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
product-auto-label
bot
added
size: m
Pull request size is medium.
api: vertex-ai
Issues related to the googleapis/python-aiplatform API.
labels
Jun 8, 2022
Ark-kun
force-pushed
the
feat--Added-the-PipelineJob.submit_from_pipeline_func-method
branch
from
June 8, 2022 19:38
62b4c4c
to
50ff4fd
Compare
sasha-gitg
added
do not merge
Indicates a pull request not ready for merge, due to either quality or timing.
and removed
do not merge
Indicates a pull request not ready for merge, due to either quality or timing.
labels
Jun 9, 2022
sasha-gitg
requested changes
Jun 16, 2022
Ark-kun
force-pushed
the
feat--Added-the-PipelineJob.submit_from_pipeline_func-method
branch
from
June 24, 2022 04:41
1dff02e
to
901d857
Compare
…is called It's advised to not perform any complex operations (especially making external changes) as part of constructors of factory methods.
Ark-kun
force-pushed
the
feat--Added-the-PipelineJob.submit_from_pipeline_func-method
branch
from
June 28, 2022 09:31
0b0842b
to
5498f42
Compare
product-auto-label
bot
added
size: l
Pull request size is large.
and removed
size: m
Pull request size is medium.
labels
Jun 28, 2022
Ark-kun
changed the title
feat: Added the PipelineJob.submit_from_pipeline_func method
feat: Added the PipelineJob.from_pipeline_func method
Jun 28, 2022
sasha-gitg
added
do not merge
Indicates a pull request not ready for merge, due to either quality or timing.
and removed
do not merge
Indicates a pull request not ready for merge, due to either quality or timing.
labels
Jun 29, 2022
…ith PipelineJob Unfortunately, the parameter_values parameter name itself was chosen inconsistently with the KFP SDK and ComponentSpec that both use the "arguments" naming.
Ark-kun
force-pushed
the
feat--Added-the-PipelineJob.submit_from_pipeline_func-method
branch
from
July 2, 2022 08:38
9aecbaf
to
85909e8
Compare
Hello. I think I've implemented and resolved all feedback. I've also added the new method to the integration tests and unit tests. (I'm not sure the integration tests are checked during the presubmit). |
sasha-gitg
approved these changes
Jul 7, 2022
sasha-gitg
added
the
automerge
Merge the pull request once unit tests and other checks pass.
label
Jul 15, 2022
gcf-merge-on-green
bot
removed
the
automerge
Merge the pull request once unit tests and other checks pass.
label
Jul 15, 2022
abcdefgs0324
pushed a commit
to abcdefgs0324/python-aiplatform
that referenced
this pull request
Jul 20, 2022
The new factory method reduces the pipeline submission boilerplate to absolute minimum. ```python aiplatform.PipelineJob.from_pipeline_func(training_pipeline).submit() ``` What it does: 1. Compiles pipeline 2. Provides sensible default values for the pipeline display name, job_id, context etc. 3. Generates GCS directory for the pipeline output artifacts if needed 4. Creates the GCS bucket for the artifacts if it does not exist. (And gives the Pipelines service account the required permissions) Example usage: ```python def training_pipeline(number_of_epochs: int = 10): train_op( number_of_epochs=number_of_epochs, learning_rate="0.1", ) job = aiplatform.PipelineJob.from_pipeline_func(training_pipeline) job.submit() ``` --- Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly: - [ ] Make sure to open an issue as a [bug/issue](https://github.com/googleapis/python-aiplatform/issues/new/choose) before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea - [x] Ensure the tests and linter pass - [x] Code coverage does not decrease (if any source code was changed) - [ ] Appropriate docs were updated (if necessary) Fixes #<issue_number_goes_here> 🦕
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
api: vertex-ai
Issues related to the googleapis/python-aiplatform API.
size: l
Pull request size is large.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The new factory method reduces the pipeline submission boilerplate to absolute minimum.
What it does:
Example usage:
Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:
Fixes #<issue_number_goes_here> 🦕