Skip to content

Commit 22adea8

Browse files
authored
chore(deps): update transformers and dependencies in dataflow/run-inference (#14608)
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.
1 parent eb682de commit 22adea8

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

‎dataflow/run-inference/noxfile_config.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
TEST_CONFIG_OVERRIDE = {
2424
# You can opt out from the test for specific Python versions.
25-
"ignored_versions": ["3.8", "3.9", "3.11", "3.12", "3.13"],
25+
"ignored_versions": ["3.8", "3.9", "3.11", "3.12", "3.14"],
2626
# Old samples are opted out of enforcing Python type hints
2727
# All new samples should feature them
2828
"enforce_type_hints": True,
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
google-cloud-aiplatform==1.158.0
2-
google-cloud-dataflow-client==0.8.14
3-
google-cloud-storage==2.10.0
4-
pytest==9.0.3; python_version >= "3.10"
1+
google-cloud-aiplatform==2.2.0
2+
google-cloud-dataflow-client==0.14.0
3+
google-cloud-storage==3.14.1
4+
pytest==9.1.1
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
apache-beam[gcp]==2.49.0
1+
apache-beam[gcp]==2.76.0
22
torch==2.12.1
3-
transformers==5.0.0rc3
3+
transformers==5.17.0

0 commit comments

Comments
 (0)