Skip to content

Conversation

@VVildVVolf
Copy link
Contributor

@VVildVVolf VVildVVolf commented May 7, 2023

Add batch_size param for Vertex AI BatchPredictionJob objects.

Vertex AI python sdk has BatchPredictionJob.create method, introduced with the 1.13.1 version. So the PR updates with passing batch_size param:

  • Reference to the SDK (locally on my machine the project from scratch takes 1.16, the update should be safe)
  • CreateBatchPredictionJobOperator
  • BatchPredictionJobHook
  • Unit tests

When the batch_size is introduced in 1.13, create_request_timeout had already been there, so this param is also added to avoid any confuse.

The change itself is pretty simple.


@boring-cyborg boring-cyborg bot added area:providers provider:google Google (including GCP) related issues labels May 7, 2023
@VVildVVolf VVildVVolf changed the title Add batch_size param for BatchPredictionJob objects Add batch_size param for Vertex AI BatchPredictionJob objects May 7, 2023
@VVildVVolf VVildVVolf marked this pull request as ready for review May 7, 2023 06:19
@pankajkoti pankajkoti requested a review from potiuk May 7, 2023 06:46
@VVildVVolf VVildVVolf changed the title Add batch_size param for Vertex AI BatchPredictionJob objects CreateBatchPredictionJobOperator Add batch_size param for Vertex AI BatchPredictionJob objects May 9, 2023
Copy link
Member

@potiuk potiuk left a comment

Choose a reason for hiding this comment

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

Fine - with the NIT for description.

VVildVVolf and others added 2 commits May 8, 2023 22:27
Copy link
Member

@hussein-awala hussein-awala left a comment

Choose a reason for hiding this comment

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

It looks good after the last change

@VVildVVolf
Copy link
Contributor Author

@potiuk, @hussein-awala, Is there anything else can be improved before merging? :)

@potiuk potiuk merged commit a66edcb into apache:main May 13, 2023
@potiuk
Copy link
Member

potiuk commented May 13, 2023

Nope. Merged :).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:providers provider:google Google (including GCP) related issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants