-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Use RunInference to perform custom inference in custom_inference notebook #29304
Conversation
Stopping reviewer notifications for this pull request: review requested by someone other than the bot, ceding control |
The changes look good to me. Two suggestions:
|
I would vote against this. There are other examples of using a DoFn (e.g. beam/examples/notebooks/documentation/transforms/python/elementwise/pardo-py.ipynb Line 81 in e612060
|
The current ParDo example is too simple and quite useless. I even think we should not just keep the old way but also use it to show why they should switch to |
|
@@ -60,6 +60,7 @@ | |||
"To reduce the number of steps that you need to take, RunInference supports features like batching. For more infomation about the RunInference API, review the [RunInference API](https://beam.apache.org/releases/pydoc/current/apache_beam.ml.inference.html#apache_beam.ml.inference.RunInference),\n", | |||
"which demonstrates how to implement model inference in PyTorch, scikit-learn, and TensorFlow.\n", | |||
"\n", | |||
"There is [VertexAIModelHandlerJson](https://github.com/apache/beam/blob/1c24bc94c9ae5cf93dc129e657964858d4aafc67/sdks/python/apache_beam/ml/inference/vertex_ai_inference.py#L61) which is used to make remote inference calls to VertexAI. In this notebook, we will make custom `ModelHandler` to do remote inference calls using CloudVision API.\n", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we use master or a commit hash?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Modified it to master
Fixes: #29297
Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:
addresses #123
), if applicable. This will automatically add a link to the pull request in the issue. If you would like the issue to automatically close on merging the pull request, commentfixes #<ISSUE NUMBER>
instead.CHANGES.md
with noteworthy changes.See the Contributor Guide for more tips on how to make review process smoother.
To check the build health, please visit https://github.com/apache/beam/blob/master/.test-infra/BUILD_STATUS.md
GitHub Actions Tests Status (on master branch)
See CI.md for more information about GitHub Actions CI or the workflows README to see a list of phrases to trigger workflows.