github-actions[bot] commented on code in PR #41566: URL: https://github.com/apache/beam/pull/41566#discussion_r4658908961
########## sdks/python/container/ml/py313/base_image_requirements.txt: ########## @@ -219,7 +219,7 @@ threadpoolctl==3.8.0 tokenizers==0.21.4 torch==2.8.0+cpu tqdm==4.70.1 -transformers==4.55.4 +transformers==5.10.1 Review Comment: **🔴 Critical**: Bumping `transformers` to `5.10.1` directly in this autogenerated requirements file breaks dependency resolution and container builds: 1. **Incompatible pinned dependencies in this lockfile**: `transformers==5.10.1` requires `huggingface-hub>=1.5.0,<2.0` (currently pinned to `huggingface_hub==0.36.2` on line 106), `tokenizers>=0.22.0,<=0.23.0` (currently pinned to `tokenizers==0.21.4` on line 219), and `typer` (not present in this file). 2. **Conflict with `sdks/python/setup.py`**: Both `ml_cpu` and `ml_base_core` in `sdks/python/setup.py` specify `transformers>=4.28.0,<4.56.0` and `tokenizers>=0.13.3,<0.22.0`. To upgrade `transformers` in the ML containers, update the bounds in `sdks/python/setup.py` first and regenerate the container requirements files using `./gradlew :sdks:python:container:generatePythonRequirementsAll`. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
