deepspeedai / deepspeedai/DeepSpeed
[BUG] unable to use a hostfile with a name that is not "hostfile"
@loadams is already working on this.
Since Apr 15, 2024.
- Dominant language
- Python
- Stars
- 43.1k
- Forks
- 5k
- Avg merge
- 4d 15h
- Merged PRs (30d)
- 112
Description
Describe the bug
I am trying to launch multiple Megatron-DeepSpeed jobs on a slurm based cluster. For each job, I want to create a different hostfile called hostfile_${SLURM_JOBID}. However, when I tried to do this along with deepspeed --hostfile=hostfile_${SLURM_JOBID}, I saw from the logs that deepspeed was unable to detect the hostfile and set the worldsize to 4 (which is the number of GPUs on a single node) erroneously. Interestingly, creating a hostfile with the name 'hostfile' does not lead to this error.
Screenshots
If applicable, add screenshots to help explain your problem.
System info (please complete the following information):
- Perlmutter supercomputer
Launcher context
- launching with the deepspeed launcher
Docker context
n/A
Additional context
Add any other context about the problem here.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.