Skip to content

[Train / Release] Fix Huggingface TRL release test - #63188

Merged
ArturNiederfahrenhorst merged 5 commits into
ray-project:masterfrom
pseudo-rnd-thoughts:fix-trl-release
May 12, 2026
Merged

ArturNiederfahrenhorst merged 5 commits into
ray-project:masterfrom
pseudo-rnd-thoughts:fix-trl-release

Conversation

@pseudo-rnd-thoughts

Copy link
Copy Markdown
Member

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

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

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

Mark Towers added 2 commits May 11, 2026 17:47
Signed-off-by: Mark Towers <[email protected]>
Signed-off-by: Mark Towers <[email protected]>
@pseudo-rnd-thoughts pseudo-rnd-thoughts added the go add ONLY when ready to merge, run all tests label May 12, 2026
@ArturNiederfahrenhorst
ArturNiederfahrenhorst merged commit aeec1bf into ray-project:master May 12, 2026
4 checks passed
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

go add ONLY when ready to merge, run all tests release-test release test train Ray Train Related Issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants