Skip to content

chore(deps): update transformers and dependencies in dataflow/run-inference - #14608

Merged
XrossFox merged 1 commit into
GoogleCloudPlatform:mainfrom
XrossFox:dependabot-update-transformers
Sep 29, 2026
Merged

XrossFox merged 1 commit into
GoogleCloudPlatform:mainfrom
XrossFox:dependabot-update-transformers

Conversation

@XrossFox

@XrossFox XrossFox commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

Description

Bumps transformers (to 5.17.0), apache-beam[gcp] (to 2.76.0), torch (to 2.12.1), and updates various test dependencies (google-cloud-aiplatform,
google-cloud-dataflow-client, google-cloud-storage, pytest) to resolve Dependabot security alerts. Also adjusts Python testing versions in noxfile_config.py.

Note on test failure and deprecation:
One test is currently failing due to obsolete usage of pre-built containers which only support up to torch 2.4. Rather than repairing this, the sample has been deemed
obsolete and is no longer feasible to maintain.

image

A new page in the documentation supersedes this sample:
https://docs.cloud.google.com/dataflow/docs/notebooks/run_inference_pytorch

The old doc (https://docs.cloud.google.com/dataflow/docs/tutorials/streaming-llm.md) and this sample should both be retired. This deprecation and removal process is being
tracked in b/565898242.

Fixes b/559808079

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

…erence

 Bumps `transformers` (to 5.17.0), `apache-beam[gcp]` (to 2.76.0), `torch` (to 2.12.1), and updates various test dependencies (`google-cloud-aiplatform`,
 `google-cloud-dataflow-client`, `google-cloud-storage`, `pytest`) to resolve Dependabot security alerts. Also adjusts Python testing versions in `noxfile_config.py`.

 Note on test failure and deprecation:
 One test is currently failing due to obsolete usage of pre-built containers which only support up to `torch 2.4`. Rather than repairing this, the sample has been deemed
 obsolete and is no longer feasible to maintain.

 A new page in the documentation supersedes this sample:
 https://docs.cloud.google.com/dataflow/docs/notebooks/run_inference_pytorch

 The old doc (https://docs.cloud.google.com/dataflow/docs/tutorials/streaming-llm.md) and this sample should both be retired. This deprecation and removal process is being
  tracked in b/565898242.
@product-auto-label product-auto-label Bot added the samples Issues that are directly related to samples. label Sep 24, 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 dependency versions in requirements.txt and requirements-test.txt, and modifies the ignored Python versions in noxfile_config.py. Feedback on the pull request suggests updating the ignored_versions list in noxfile_config.py to ensure only the oldest and newest supported Python versions (3.10 and 3.13) are tested, rather than ignoring 3.13 and adding 3.14.

Comment thread dataflow/run-inference/noxfile_config.py

@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 September 28, 2026 21:10
@XrossFox
XrossFox requested review from a team as code owners September 28, 2026 21:10
@XrossFox
XrossFox merged commit 22adea8 into GoogleCloudPlatform:main Sep 29, 2026
10 of 18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

samples Issues that are directly related to samples.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants