Repository navigation
[Train / Release] Fix Huggingface TRL release test - #63188
Merged
ArturNiederfahrenhorst merged 5 commits intoMay 12, 2026
Merged
ArturNiederfahrenhorst merged 5 commits into
ArturNiederfahrenhorst merged 5 commits into
Conversation
Signed-off-by: Mark Towers <[email protected]>
Contributor
There was a problem hiding this comment.
Code Review
This pull request updates the byod_huggingface_trl.sh script to uninstall tensorflow and tf_keras to resolve gRPC symbol collisions with Ray. The reviewer suggests retaining the previous documentation explaining the removal of wandb and comet_ml to ensure the reasoning for those specific packages remains clear.
Comment on lines
+12
to
+13
| # `transformers` auto-imports TF when present and TF's bundled grpc collides with Ray's grpc on the `grpc_experiments` absl flag | ||
| pip3 uninstall -y wandb comet_ml tensorflow tf_keras |
Contributor
There was a problem hiding this comment.
The previous comment explaining why wandb and comet_ml are being uninstalled has been removed. It is better to preserve this context for future maintainers, as the reasons for uninstalling these packages (API key issues) are distinct from the reason for uninstalling tensorflow (gRPC symbol collision).
Suggested change
| # `transformers` auto-imports TF when present and TF's bundled grpc collides with Ray's grpc on the `grpc_experiments` absl flag | |
| pip3 uninstall -y wandb comet_ml tensorflow tf_keras | |
| # wandb and comet were installed but didn't have API keys which raised errors and warnings | |
| # transformers auto-imports TF when present and TF's bundled grpc collides with Ray's grpc on the grpc_experiments absl flag | |
| pip3 uninstall -y wandb comet_ml tensorflow tf_keras |
Signed-off-by: Mark Towers <[email protected]>
matthewdeng
approved these changes
May 11, 2026
added 2 commits
May 11, 2026 17:47
Signed-off-by: Mark Towers <[email protected]>
Signed-off-by: Mark Towers <[email protected]>
Lucas61000
pushed a commit
to Lucas61000/ray
that referenced
this pull request
May 15, 2026
## Description The HuggingFace Transformer Reinforcement Learning release test is failing from `(RayTrainWorker pid=3665, ip=10.0.159.246) ERROR: Flag ‘grpc_experiments' was defined more than once but with differing types. Defined in files 'external/com_github_grpc_grpc/src/core/config/config_vars.cc' and 'workspace/grpc/src/core/config/config_vars.cc'. [repeated 3x across cluster]` This appears to be due to a crash in ray's grpc and tensorflow's grpc that HF transformers will import. To address this issue, this PR we just uninstall tensorflow as it isn't used in the release script --------- Signed-off-by: Mark Towers <[email protected]> Co-authored-by: Mark Towers <[email protected]>
alexandrplashchinsky
pushed a commit
to alexandrplashchinsky/ray-alex
that referenced
this pull request
May 29, 2026
## Description The HuggingFace Transformer Reinforcement Learning release test is failing from `(RayTrainWorker pid=3665, ip=10.0.159.246) ERROR: Flag ‘grpc_experiments' was defined more than once but with differing types. Defined in files 'external/com_github_grpc_grpc/src/core/config/config_vars.cc' and 'workspace/grpc/src/core/config/config_vars.cc'. [repeated 3x across cluster]` This appears to be due to a crash in ray's grpc and tensorflow's grpc that HF transformers will import. To address this issue, this PR we just uninstall tensorflow as it isn't used in the release script --------- Signed-off-by: Mark Towers <[email protected]> Co-authored-by: Mark Towers <[email protected]> Signed-off-by: Alexandr Plashchinsky <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
The HuggingFace Transformer Reinforcement Learning release test is failing from
(RayTrainWorker pid=3665, ip=10.0.159.246) ERROR: Flag ‘grpc_experiments' was defined more than once but with differing types. Defined in files 'external/com_github_grpc_grpc/src/core/config/config_vars.cc' and 'workspace/grpc/src/core/config/config_vars.cc'. [repeated 3x across cluster]This appears to be due to a crash in ray's grpc and tensorflow's grpc that HF transformers will import.
To address this issue, this PR we just uninstall tensorflow as it isn't used in the release script