chore(multiple samples): update torch dependencies across samples#14378
Open
XrossFox wants to merge 1 commit into
Open
chore(multiple samples): update torch dependencies across samples#14378XrossFox wants to merge 1 commit into
XrossFox wants to merge 1 commit into
Conversation
- 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
Contributor
There was a problem hiding this comment.
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.
Kef131
approved these changes
Jul 3, 2026
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description
To fix dependabot alerts:
torchto 2.12.1 indataflow/run-inference/requirements.txtpeople-and-planet-ai/weather-forecasting/notebooks/3-training.ipynbtorchto 2.4.0 inpeople-and-planet-ai/weather-forecasting/serving/weather-model/pyproject.tomlbecause this notebook uses a pre-built container that only has access to torch 2.4.0Note: 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
Compliance & Style
Post-Approval Actions