deepspeedai / deepspeedai/DeepSpeed

[PROBLEM] P2p recv waiting for data will cause other threads under the same process to be unable to perform any operations

Open
#4,054 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Python
Stars
43.1k
Forks
5k
Avg merge
4d 15h
Merged PRs (30d)
112

Description

Context: I want to speed up the InferenceSchedule(deepspeed/runtime/pipe/schedule.py) step function. So I launch two threads for SendActivation and RecvActivation for maximum GPU utilization. But I found that when RecvActivation waiting data(hangs in RecvActivation thread), any operations on this GPU card cannot be performed. Any operations hangs. for example, I want to print this variable, but stuck...however, GPU UTL 100% because waiting for recving future data....
图片

Problem: How to have a thread waiting for data to be received in this card and perform corresponding operations at the same time?(for example, forward/backward)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading deepspeed/runtime/pipe/schedule.py, especially InferenceSchedule.step and the SendActivation and RecvActivation paths. Reproduce the reported two-thread behavior and determine the supported concurrency limitation or required change. Done means a receive can wait for data while the same GPU process continues the intended forward or backward operation without hanging.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
distributed-systems, machine-learning
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.