设置两张卡,只使用了一张卡,导致显存溢出报错
Open
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 12.3k
- Forks
- 1.1k
- PR merge metrics
- No merged PRs in 30d
Description
一台双3090的服务器,moss_gui_demo.py中设置了os.environ['CUDA_VISIBLE_DEVICES']='0,1',但是通过nvidia-smi查看,只有一张卡被利用推理,导致显存不够,推理不出来,但实际还有一张卡没有利用,有遇到过类似问题吗
Contributor guide
No contributing guide indexed for this repository
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 moss_gui_demo.py and reproduce the two-GPU setup using CUDA_VISIBLE_DEVICES='0,1'. Compare inference behavior with nvidia-smi and inspect how the model is placed across devices. Done means inference uses both 3090 GPUs and no longer fails from insufficient memory.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- machine-learning
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100