Skip to content

chore(multiple samples): update torch dependencies across samples#14378

Open
XrossFox wants to merge 1 commit into
GoogleCloudPlatform:mainfrom
XrossFox:package-update-pytorch
Open

chore(multiple samples): update torch dependencies across samples#14378
XrossFox wants to merge 1 commit into
GoogleCloudPlatform:mainfrom
XrossFox:package-update-pytorch

Conversation

@XrossFox

@XrossFox XrossFox commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

Description

To fix dependabot alerts:

  • Update torch to 2.12.1 in dataflow/run-inference/requirements.txt
  • Update Vertex AI training container URI in people-and-planet-ai/weather-forecasting/notebooks/3-training.ipynb
  • Downgrade torch to 2.4.0 in people-and-planet-ai/weather-forecasting/serving/weather-model/pyproject.toml because this notebook uses a pre-built container that only has access to torch 2.4.0

Note: for the downgraded sample, the dependabot probably has to me dismissed, but might as well check if the sample is still necessary, since appears that it hasnt worked for quite a while.

Fixes b/522402649

Checklist

Testing

  • I have tested this change on a live environment and verified it works as intended.

Compliance & Style


Post-Approval Actions

  • Please merge this PR for me once it is approved

 - Update `torch` to 2.12.1 in `dataflow/run-inference/requirements.txt`
 - Update Vertex AI training container URI in `people-and-planet-ai/weather-forecasting/notebooks/3-training.ipynb`
 - Downgrade `torch` to 2.4.0 in `people-and-planet-ai/weather-forecasting/serving/weather-model/pyproject.toml` because this notebook uses a pre-built container that only has
     access to torch 2.4.0
@product-auto-label product-auto-label Bot added samples Issues that are directly related to samples. api: people-and-planet-ai labels Jul 3, 2026

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request updates PyTorch dependency versions across several files, aligning the version in the weather forecasting training notebook's container URI with the pyproject.toml configuration (updating to PyTorch 2.4.0), while also bumping the PyTorch version in the Dataflow requirements. Additionally, it applies minor metadata and cell ID updates to the 3-training.ipynb notebook. No review comments were provided, and I have no additional feedback to offer.

@angelcaamal angelcaamal left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM!

@XrossFox XrossFox marked this pull request as ready for review July 3, 2026 22:08
@XrossFox XrossFox requested review from a team as code owners July 3, 2026 22:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: people-and-planet-ai samples Issues that are directly related to samples.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants