deepspeedai / deepspeedai/DeepSpeed
[Question]How to training on different node with specific gpu in each node
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 43.1k
- Forks
- 5k
- Avg merge
- 4d 15h
- Merged PRs (30d)
- 112
Description
Hi, I try to training the BingBertSquad on 2 nodes (each has 4 gpus) with specific gpus (2 gpus, another 2 gpus are occupied by others), and my hostfile's content is:
work1 slots=2
work2 slots=2
and part of my launch script on one node is
deepspeed --hostfile hostfile --include=work1:2,3 training.py .... ,
but it reports the error
No slot 2 specificied on host work1.
what is correct way to train in this situation?
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.
Research direction
Start with the deepspeed launcher entry point and review how it combines hostfile slots with --include=work1:2,3. Reproduce the command using the shown hostfile and training.py; done means identifying a valid configuration for two nodes with two selected GPUs per node and documenting it clearly.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- distributed-systems, machine-learning
- Issue type
- Documentation
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100