[Feature Request] Add a `use_env` flag in the `deepspeed` launcher
See original GitHub issuePyTorch provides a --use_env
flag in its dsitributed launcher, and if it’s activated, does not pass --local_rank
to the children processes (it sets it as an environment variable). It would be great if the DeepSpeed launcher could provide the same option so we don’t have to manually add this local_rank
argument to the children processes in existing scripts.
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (5 by maintainers)
Top Results From Across the Web
Training Setup — DeepSpeed 0.8.0 documentation
The set of DeepSpeed arguments include the following: 1) –deepspeed: boolean flag to enable DeepSpeed 2) –deepspeed_config <json file path>: path of a...
Read more >Implement Your First Feature Flag Tutorial - Harness
Creating and executing a Feature Flag for the React app is pretty straightforward. Depending on the language, Feature Flags can require the use ......
Read more >Feature Flagging with LaunchDarkly and Visual Studio Code
All the awesome things you can do in code don't really matter unless you have a way to actually write it. Fortunately, VS...
Read more >Distributed communication package - torch.distributed - PyTorch
We are planning on adding InfiniBand support for Gloo in the upcoming releases. ... launch a separate copy of the main training script...
Read more >Determined: Deep Learning Training Platform - PythonRepo
Feature request : it would be really helpful to be able to specify one or ... bd576678e chore: update deepspeed launcher to work...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks @jeffra. Just tested locally and it works great with this flag, so closing the issue.
Thanks for bringing this back up @stas00,
--use_env
would be great. I think we actually added support for this in a slightly different flag via this PR: https://github.com/microsoft/DeepSpeed/pull/1690. It adds a few options to our launcher--no_local_rank
i think would work in your case though.Side note, I think we need to add launcher documentation to our read-the-docs page (https://deepspeed.readthedocs.io/en/latest/). Currently the only way to discover this flag would be via
deepspeed --help
.