Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

delete CCL env var setting #2927

Merged
merged 2 commits into from
Jul 18, 2024
Merged

delete CCL env var setting #2927

merged 2 commits into from
Jul 18, 2024

Conversation

Liangliang-Ma
Copy link
Contributor

This PR deletes some CCL environment variable setting. With versions updating of software stack, current torch-CCL don't recommend manually setting these CCL env vars like 'CCL_LOCAL_SIZE', 'CCL_LOCAL_RANK' or 'CCL_PROCESS_LAUNCHER'.

And os.environ.get("LOCAL_WORLD_SIZE", "1") os.environ.get("LOCAL_RANK", "0")
may not get the correct value. For example, when run fine-tuning with deepspeed on multiple gpus, it will get wrong value and pass them to torchCCL comm backend, which will result in crash.

@Liangliang-Ma
Copy link
Contributor Author

@muellerzr @faaany pls help to review. Thanks!

@faaany
Copy link
Contributor

faaany commented Jul 11, 2024

yes, I can verify that multi-card fine-tuning works without these CCL environment variables using the latest torch-ccl&ipex. They were added at a time when users had to handle them manually. But now we can remove them. Pls have a review, thx! @muellerzr

@faaany
Copy link
Contributor

faaany commented Jul 11, 2024

@yao-matrix

Copy link
Collaborator

@muellerzr muellerzr left a comment

Choose a reason for hiding this comment

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

Thanks for the cleanup!

@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

@muellerzr
Copy link
Collaborator

Can you run make style; make quality? (Don't worry about the import test)

@Liangliang-Ma
Copy link
Contributor Author

@muellerzr Thanks. Format fixed.

@muellerzr muellerzr merged commit 0af1d8b into huggingface:main Jul 18, 2024
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants