diff --git a/sdks/python/apache_beam/examples/inference/anomaly_detection/anomaly_detection_pipeline/setup.py b/sdks/python/apache_beam/examples/inference/anomaly_detection/anomaly_detection_pipeline/setup.py index a415648cdf99..c75f3feadccd 100644 --- a/sdks/python/apache_beam/examples/inference/anomaly_detection/anomaly_detection_pipeline/setup.py +++ b/sdks/python/apache_beam/examples/inference/anomaly_detection/anomaly_detection_pipeline/setup.py @@ -32,7 +32,7 @@ "apache-beam[gcp]==2.41.0", "hdbscan==0.8.28", "scikit-learn==1.7.1", - "transformers==4.36.0", + "transformers==5.3.0", "torch==1.13.1", "pandas==1.3.5", "yagmail==0.15.283", diff --git a/sdks/python/apache_beam/examples/inference/large_language_modeling/requirements.txt b/sdks/python/apache_beam/examples/inference/large_language_modeling/requirements.txt index 2f57e7d1e6a8..73a4072a8653 100644 --- a/sdks/python/apache_beam/examples/inference/large_language_modeling/requirements.txt +++ b/sdks/python/apache_beam/examples/inference/large_language_modeling/requirements.txt @@ -17,5 +17,5 @@ # under the License torch==2.7.1 -transformers==4.53.0 +transformers==5.3.0 sentencepiece==0.2.1 diff --git a/sdks/python/apache_beam/examples/inference/online_clustering/clustering_pipeline/setup.py b/sdks/python/apache_beam/examples/inference/online_clustering/clustering_pipeline/setup.py index 572763492f41..02e7c0457a1a 100644 --- a/sdks/python/apache_beam/examples/inference/online_clustering/clustering_pipeline/setup.py +++ b/sdks/python/apache_beam/examples/inference/online_clustering/clustering_pipeline/setup.py @@ -28,7 +28,7 @@ REQUIREMENTS = [ "apache-beam[gcp]==2.40.0", - "transformers==4.38.0", + "transformers==5.3.0", "torch==1.13.1", "scikit-learn==1.0.2", ] diff --git a/sdks/python/apache_beam/examples/inference/runinference_metrics/setup.py b/sdks/python/apache_beam/examples/inference/runinference_metrics/setup.py index fd2c07cc4e1b..14cc70065f10 100644 --- a/sdks/python/apache_beam/examples/inference/runinference_metrics/setup.py +++ b/sdks/python/apache_beam/examples/inference/runinference_metrics/setup.py @@ -29,7 +29,7 @@ from setuptools import find_packages REQUIREMENTS = [ - "apache-beam[gcp]==2.41.0", "transformers==4.38.0", "torch==1.13.1" + "apache-beam[gcp]==2.41.0", "transformers==5.3.0", "torch==1.13.1" ] setuptools.setup( diff --git a/sdks/python/apache_beam/ml/inference/huggingface_tests_requirements.txt b/sdks/python/apache_beam/ml/inference/huggingface_tests_requirements.txt index 9b9e9bdd55f1..21ca12987093 100644 --- a/sdks/python/apache_beam/ml/inference/huggingface_tests_requirements.txt +++ b/sdks/python/apache_beam/ml/inference/huggingface_tests_requirements.txt @@ -16,5 +16,5 @@ # torch>=1.7.1 -transformers==4.53.0 +transformers==5.3.0 tensorflow>=2.12.0 \ No newline at end of file diff --git a/sdks/python/apache_beam/ml/inference/torch_tests_requirements.txt b/sdks/python/apache_beam/ml/inference/torch_tests_requirements.txt index df6273038f1a..940f68c01375 100644 --- a/sdks/python/apache_beam/ml/inference/torch_tests_requirements.txt +++ b/sdks/python/apache_beam/ml/inference/torch_tests_requirements.txt @@ -18,5 +18,5 @@ torch>=1.7.1 torchvision>=0.8.2 pillow>=8.0.0 -transformers>=4.18.0 +transformers>=5.3.0 google-cloud-monitoring>=2.27.0 \ No newline at end of file diff --git a/sdks/python/apache_beam/ml/inference/vllm_tests_requirements.txt b/sdks/python/apache_beam/ml/inference/vllm_tests_requirements.txt index ad5877edbec5..16195a6810bb 100644 --- a/sdks/python/apache_beam/ml/inference/vllm_tests_requirements.txt +++ b/sdks/python/apache_beam/ml/inference/vllm_tests_requirements.txt @@ -17,7 +17,7 @@ torch>=1.7.1 torchvision>=0.8.2 pillow>=8.0.0 -transformers==4.57.1 +transformers==5.3.0 sentencepiece==0.2.1 google-cloud-monitoring>=2.27.0 openai>=1.52.2 diff --git a/sdks/python/container/ml/py310/base_image_requirements.txt b/sdks/python/container/ml/py310/base_image_requirements.txt index 7ad86d13b506..1168acd42c62 100644 --- a/sdks/python/container/ml/py310/base_image_requirements.txt +++ b/sdks/python/container/ml/py310/base_image_requirements.txt @@ -24,7 +24,7 @@ absl-py==2.4.0 aiofiles==25.1.0 aiohappyeyeballs==2.6.1 -aiohttp==3.13.4 +aiohttp==3.14.1 aiosignal==1.4.0 annotated-types==0.7.0 anyio==4.13.0 @@ -45,7 +45,7 @@ charset-normalizer==3.4.6 click==8.3.1 cloud-sql-python-connector==1.20.1 crcmod==1.7 -cryptography==46.0.6 +cryptography==48.0.1 Cython==3.2.4 dill==0.3.1.1 distro==1.9.0 @@ -216,7 +216,7 @@ tokenizers==0.21.4 tomli==2.4.1 torch==2.8.0+cpu tqdm==4.67.3 -transformers==4.55.4 +transformers==5.3.0 typing-inspection==0.4.2 typing_extensions==4.15.0 tzdata==2025.3 diff --git a/sdks/python/container/ml/py310/gpu_image_requirements.txt b/sdks/python/container/ml/py310/gpu_image_requirements.txt index dbad9196b561..7aa60af41683 100644 --- a/sdks/python/container/ml/py310/gpu_image_requirements.txt +++ b/sdks/python/container/ml/py310/gpu_image_requirements.txt @@ -24,7 +24,7 @@ absl-py==2.4.0 aiofiles==25.1.0 aiohappyeyeballs==2.6.1 -aiohttp==3.13.3 +aiohttp==3.14.1 aiosignal==1.4.0 annotated-doc==0.0.4 annotated-types==0.7.0 @@ -51,7 +51,7 @@ cloud-sql-python-connector==1.20.0 cloudpickle==3.1.2 compressed-tensors==0.10.2 crcmod==1.7 -cryptography==46.0.5 +cryptography==48.0.1 cuda-bindings==12.9.4 cuda-pathfinder==1.4.2 cupy-cuda12x==14.0.1 @@ -163,13 +163,13 @@ mmh3==5.2.1 mock==5.2.0 more-itertools==10.8.0 mpmath==1.3.0 -msgpack==1.1.2 +msgpack==1.2.1 msgspec==0.20.0 multidict==6.7.1 namex==0.1.0 networkx==3.4.2 ninja==1.13.0 -nltk==3.9.3 +nltk==3.9.4 numba==0.61.2 numpy==2.2.6 nvidia-cublas-cu12==12.6.4.1 @@ -226,7 +226,7 @@ pycountry==26.2.16 pycparser==3.0 pydantic==2.12.5 pydantic-extra-types==2.11.0 -pydantic-settings==2.13.1 +pydantic-settings==2.14.2 pydantic_core==2.41.5 Pygments==2.19.2 PyHamcrest==2.1.0 @@ -291,7 +291,7 @@ torch==2.7.1 torchaudio==2.7.1 torchvision==0.22.1 tqdm==4.67.3 -transformers==4.55.4 +transformers==5.3.0 triton==3.3.1 typer==0.24.1 typing-inspection==0.4.2 @@ -302,7 +302,7 @@ urllib3==2.6.3 uvicorn==0.41.0 uvloop==0.22.1 virtualenv-clone==0.5.7 -vllm==0.10.1.1 +vllm==0.24.0 watchfiles==1.1.1 websockets==16.0 Werkzeug==3.1.6 diff --git a/sdks/python/container/ml/py311/base_image_requirements.txt b/sdks/python/container/ml/py311/base_image_requirements.txt index 4fe9cd55aaff..eb23080ec83c 100644 --- a/sdks/python/container/ml/py311/base_image_requirements.txt +++ b/sdks/python/container/ml/py311/base_image_requirements.txt @@ -24,7 +24,7 @@ absl-py==2.4.0 aiofiles==25.1.0 aiohappyeyeballs==2.6.1 -aiohttp==3.13.4 +aiohttp==3.14.1 aiosignal==1.4.0 annotated-types==0.7.0 anyio==4.13.0 @@ -44,7 +44,7 @@ charset-normalizer==3.4.6 click==8.3.1 cloud-sql-python-connector==1.20.1 crcmod==1.7 -cryptography==46.0.6 +cryptography==48.0.1 Cython==3.2.4 dill==0.3.1.1 distro==1.9.0 @@ -214,7 +214,7 @@ threadpoolctl==3.6.0 tokenizers==0.21.4 torch==2.8.0+cpu tqdm==4.67.3 -transformers==4.55.4 +transformers==5.3.0 typing-inspection==0.4.2 typing_extensions==4.15.0 tzdata==2025.3 diff --git a/sdks/python/container/ml/py311/gpu_image_requirements.txt b/sdks/python/container/ml/py311/gpu_image_requirements.txt index 17fe5025f09b..55d6c8690ad3 100644 --- a/sdks/python/container/ml/py311/gpu_image_requirements.txt +++ b/sdks/python/container/ml/py311/gpu_image_requirements.txt @@ -24,7 +24,7 @@ absl-py==2.4.0 aiofiles==25.1.0 aiohappyeyeballs==2.6.1 -aiohttp==3.13.3 +aiohttp==3.14.1 aiosignal==1.4.0 annotated-doc==0.0.4 annotated-types==0.7.0 @@ -50,7 +50,7 @@ cloud-sql-python-connector==1.20.0 cloudpickle==3.1.2 compressed-tensors==0.10.2 crcmod==1.7 -cryptography==46.0.5 +cryptography==48.0.1 cuda-bindings==12.9.4 cuda-pathfinder==1.4.2 cupy-cuda12x==14.0.1 @@ -162,13 +162,13 @@ mmh3==5.2.1 mock==5.2.0 more-itertools==10.8.0 mpmath==1.3.0 -msgpack==1.1.2 +msgpack==1.2.1 msgspec==0.20.0 multidict==6.7.1 namex==0.1.0 networkx==3.6.1 ninja==1.13.0 -nltk==3.9.3 +nltk==3.9.4 numba==0.61.2 numpy==2.2.6 nvidia-cublas-cu12==12.6.4.1 @@ -225,7 +225,7 @@ pycountry==26.2.16 pycparser==3.0 pydantic==2.12.5 pydantic-extra-types==2.11.0 -pydantic-settings==2.13.1 +pydantic-settings==2.14.2 pydantic_core==2.41.5 Pygments==2.19.2 PyHamcrest==2.1.0 @@ -289,7 +289,7 @@ torch==2.7.1 torchaudio==2.7.1 torchvision==0.22.1 tqdm==4.67.3 -transformers==4.55.4 +transformers==5.3.0 triton==3.3.1 typer==0.24.1 typing-inspection==0.4.2 @@ -300,7 +300,7 @@ urllib3==2.6.3 uvicorn==0.41.0 uvloop==0.22.1 virtualenv-clone==0.5.7 -vllm==0.10.1.1 +vllm==0.24.0 watchfiles==1.1.1 websockets==16.0 Werkzeug==3.1.6 diff --git a/sdks/python/container/ml/py312/base_image_requirements.txt b/sdks/python/container/ml/py312/base_image_requirements.txt index c72558f8acd9..84f45b6e6237 100644 --- a/sdks/python/container/ml/py312/base_image_requirements.txt +++ b/sdks/python/container/ml/py312/base_image_requirements.txt @@ -24,7 +24,7 @@ absl-py==2.4.0 aiofiles==25.1.0 aiohappyeyeballs==2.6.1 -aiohttp==3.13.4 +aiohttp==3.14.1 aiosignal==1.4.0 annotated-types==0.7.0 anyio==4.13.0 @@ -43,7 +43,7 @@ charset-normalizer==3.4.6 click==8.3.1 cloud-sql-python-connector==1.20.1 crcmod==1.7 -cryptography==46.0.6 +cryptography==48.0.1 Cython==3.2.4 dill==0.3.1.1 distro==1.9.0 @@ -211,7 +211,7 @@ threadpoolctl==3.6.0 tokenizers==0.21.4 torch==2.8.0+cpu tqdm==4.67.3 -transformers==4.55.4 +transformers==5.3.0 typing-inspection==0.4.2 typing_extensions==4.15.0 tzdata==2025.3 diff --git a/sdks/python/container/ml/py312/gpu_image_requirements.txt b/sdks/python/container/ml/py312/gpu_image_requirements.txt index 632ba689e3ee..3be57ff318ea 100644 --- a/sdks/python/container/ml/py312/gpu_image_requirements.txt +++ b/sdks/python/container/ml/py312/gpu_image_requirements.txt @@ -24,7 +24,7 @@ absl-py==2.4.0 aiofiles==25.1.0 aiohappyeyeballs==2.6.1 -aiohttp==3.13.3 +aiohttp==3.14.1 aiosignal==1.4.0 annotated-doc==0.0.4 annotated-types==0.7.0 @@ -49,7 +49,7 @@ cloud-sql-python-connector==1.20.0 cloudpickle==3.1.2 compressed-tensors==0.10.2 crcmod==1.7 -cryptography==46.0.5 +cryptography==48.0.1 cuda-bindings==12.9.4 cuda-pathfinder==1.4.2 cupy-cuda12x==14.0.1 @@ -161,7 +161,7 @@ mmh3==5.2.1 mock==5.2.0 more-itertools==10.8.0 mpmath==1.3.0 -msgpack==1.1.2 +msgpack==1.2.1 msgspec==0.20.0 multidict==6.7.1 namex==0.1.0 @@ -224,7 +224,7 @@ pycountry==26.2.16 pycparser==3.0 pydantic==2.12.5 pydantic-extra-types==2.11.0 -pydantic-settings==2.13.1 +pydantic-settings==2.14.2 pydantic_core==2.41.5 Pygments==2.19.2 PyHamcrest==2.1.0 @@ -288,7 +288,7 @@ torch==2.7.1 torchaudio==2.7.1 torchvision==0.22.1 tqdm==4.67.3 -transformers==4.55.4 +transformers==5.3.0 triton==3.3.1 typer==0.24.1 typing-inspection==0.4.2 @@ -299,7 +299,7 @@ urllib3==2.6.3 uvicorn==0.41.0 uvloop==0.22.1 virtualenv-clone==0.5.7 -vllm==0.10.1.1 +vllm==0.24.0 watchfiles==1.1.1 websockets==16.0 Werkzeug==3.1.6 diff --git a/sdks/python/container/ml/py313/base_image_requirements.txt b/sdks/python/container/ml/py313/base_image_requirements.txt index b92d500a4339..47adb9e81585 100644 --- a/sdks/python/container/ml/py313/base_image_requirements.txt +++ b/sdks/python/container/ml/py313/base_image_requirements.txt @@ -24,7 +24,7 @@ absl-py==2.4.0 aiofiles==25.1.0 aiohappyeyeballs==2.6.1 -aiohttp==3.13.4 +aiohttp==3.14.1 aiosignal==1.4.0 annotated-types==0.7.0 anyio==4.13.0 @@ -43,7 +43,7 @@ charset-normalizer==3.4.6 click==8.3.1 cloud-sql-python-connector==1.20.1 crcmod==1.7 -cryptography==46.0.6 +cryptography==48.0.1 Cython==3.2.4 dill==0.3.1.1 distro==1.9.0 @@ -210,7 +210,7 @@ threadpoolctl==3.6.0 tokenizers==0.21.4 torch==2.8.0+cpu tqdm==4.67.3 -transformers==4.55.4 +transformers==5.3.0 typing-inspection==0.4.2 typing_extensions==4.15.0 tzdata==2025.3 diff --git a/sdks/python/container/py310/base_image_requirements.txt b/sdks/python/container/py310/base_image_requirements.txt index 1712f0f36806..358e59108a32 100644 --- a/sdks/python/container/py310/base_image_requirements.txt +++ b/sdks/python/container/py310/base_image_requirements.txt @@ -23,7 +23,7 @@ aiofiles==25.1.0 aiohappyeyeballs==2.6.1 -aiohttp==3.13.4 +aiohttp==3.14.1 aiosignal==1.4.0 annotated-types==0.7.0 anyio==4.13.0 @@ -43,7 +43,7 @@ charset-normalizer==3.4.6 click==8.3.1 cloud-sql-python-connector==1.20.1 crcmod==1.7 -cryptography==46.0.6 +cryptography==48.0.1 Cython==3.2.4 dill==0.3.1.1 distro==1.9.0 diff --git a/sdks/python/container/py311/base_image_requirements.txt b/sdks/python/container/py311/base_image_requirements.txt index bfc365e80dc8..e29baf736270 100644 --- a/sdks/python/container/py311/base_image_requirements.txt +++ b/sdks/python/container/py311/base_image_requirements.txt @@ -23,7 +23,7 @@ aiofiles==25.1.0 aiohappyeyeballs==2.6.1 -aiohttp==3.13.4 +aiohttp==3.14.1 aiosignal==1.4.0 annotated-types==0.7.0 anyio==4.13.0 @@ -42,7 +42,7 @@ charset-normalizer==3.4.6 click==8.3.1 cloud-sql-python-connector==1.20.1 crcmod==1.7 -cryptography==46.0.6 +cryptography==48.0.1 Cython==3.2.4 dill==0.3.1.1 distro==1.9.0 diff --git a/sdks/python/container/py312/base_image_requirements.txt b/sdks/python/container/py312/base_image_requirements.txt index 356392c82b56..15d16ab331f4 100644 --- a/sdks/python/container/py312/base_image_requirements.txt +++ b/sdks/python/container/py312/base_image_requirements.txt @@ -23,7 +23,7 @@ aiofiles==25.1.0 aiohappyeyeballs==2.6.1 -aiohttp==3.13.4 +aiohttp==3.14.1 aiosignal==1.4.0 annotated-types==0.7.0 anyio==4.13.0 @@ -41,7 +41,7 @@ charset-normalizer==3.4.6 click==8.3.1 cloud-sql-python-connector==1.20.1 crcmod==1.7 -cryptography==46.0.6 +cryptography==48.0.1 Cython==3.2.4 dill==0.3.1.1 distro==1.9.0 diff --git a/sdks/python/container/py313/base_image_requirements.txt b/sdks/python/container/py313/base_image_requirements.txt index 7859cc82569d..cc44c20c86cc 100644 --- a/sdks/python/container/py313/base_image_requirements.txt +++ b/sdks/python/container/py313/base_image_requirements.txt @@ -23,7 +23,7 @@ aiofiles==25.1.0 aiohappyeyeballs==2.6.1 -aiohttp==3.13.4 +aiohttp==3.14.1 aiosignal==1.4.0 annotated-types==0.7.0 anyio==4.13.0 @@ -41,7 +41,7 @@ charset-normalizer==3.4.6 click==8.3.1 cloud-sql-python-connector==1.20.1 crcmod==1.7 -cryptography==46.0.6 +cryptography==48.0.1 Cython==3.2.4 dill==0.3.1.1 distro==1.9.0 diff --git a/sdks/python/container/py314/base_image_requirements.txt b/sdks/python/container/py314/base_image_requirements.txt index 63d26a6b15e3..e50a19bb70ac 100644 --- a/sdks/python/container/py314/base_image_requirements.txt +++ b/sdks/python/container/py314/base_image_requirements.txt @@ -23,7 +23,7 @@ aiofiles==25.1.0 aiohappyeyeballs==2.6.1 -aiohttp==3.13.4 +aiohttp==3.14.1 aiosignal==1.4.0 annotated-types==0.7.0 anyio==4.13.0 @@ -41,7 +41,7 @@ charset-normalizer==3.4.6 click==8.3.1 cloud-sql-python-connector==1.20.1 crcmod==1.7 -cryptography==46.0.6 +cryptography==48.0.1 Cython==3.2.4 dill==0.3.1.1 distro==1.9.0