deepspeedai / deepspeedai/DeepSpeed
ValueError: Only able to place 0 replicas, but 2 replicas were requested.
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 43.1k
- Forks
- 5k
- Avg merge
- 4d 15h
- Merged PRs (30d)
- 112
Description
Describe the bug
i want to use deepspeed-fastgen for mixtral-instruct 8*7b inference on multi-node,my deployments are as follows:
import mii
client = mii.serve("path of mixtral-instruct 8*7b",
tensor_parallel=16,
replica_num=2,
hostfile="tmp/hostfile"
)
response = client.generate(["Deepspeed is", "Seattle is"], max_new_tokens=128)
print(response)
my hostfile like this:
ip1 slots=8
ip2 slots=8
my bash code like this:
deepspeed --hostfile ${TMP_DIR}/hostfile --master_addr ${MASTER_ADDR} --master_port=${MASTER_PORT} ${WORKSPACE}/eval/eval1.py \
--deepspeed --deepspeed_config configs/ds_config_zero3.json
the config of bash is working for training
I encountered the following error
- ValueError: Only able to place 0 replicas, but 2 replicas were requested.
how can i fix this errors?
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
The payload names no repository files or tests. Start by reproducing the mii.serve call with the shown hostfile and tensor-parallel and replica settings, then trace the replica-placement error and compare the requested resources with the available slots. Done means two replicas start successfully and the generation call returns results across the multi-node deployment.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- distributed-systems, machine-learning
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100