github-actions[bot] commented on code in PR #41344:
URL: https://github.com/apache/beam/pull/41344#discussion_r4576764151


##########
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==5.10.1", "torch==1.13.1"
+    "apache-beam[gcp]==2.41.0", "transformers==5.10.1", "torch==2.13.0"

Review Comment:
   **🟠 High**: `torch==2.13.0` (as well as `transformers==5.10.1`) requires 
`Python >= 3.10`, whereas `apache-beam[gcp]==2.41.0` only provides wheels and 
support for `Python <= 3.9` (and pins `numpy<1.23.0` and `pyarrow<8.0.0`, which 
have no Python 3.10+ wheels for those ranges). As a result, this `REQUIREMENTS` 
list cannot be installed in any Python environment. Consider updating or 
relaxing the `apache-beam[gcp]` version constraint so the example remains 
installable.
   
   ```suggestion
       "apache-beam[gcp]>=2.60.0", "transformers==5.10.1", "torch==2.13.0"
   ```



-- 
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]

Reply via email to