gemini-code-assist[bot] commented on code in PR #38508:
URL: https://github.com/apache/beam/pull/38508#discussion_r3247521914
##########
sdks/python/setup.py:
##########
@@ -198,7 +198,8 @@ def cythonize(*args, **kwargs):
# Drop this cap once transformers updates the CLIP call site to
# `cls_token=` or tokenizers reinstates `cls=` as a deprecation alias.
'tokenizers<0.23',
- 'torch',
+ # Avoid torch 2.12.0+ which fails to run unit tests with segfault.
+ 'torch<2.12.0',
Review Comment:

The version `2.12.0` appears to be a typo for an existing version (such as
`2.1.2` or `2.2.0`), as PyTorch's current releases are in the `2.0` to `2.5`
range. Since `2.12.0` does not exist yet, this constraint (`<2.12.0`) will not
exclude any currently available versions and will likely fail to resolve the
segfault mentioned in the comment.
--
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]