[Bug] RuntimeError: [3] is setting up NCCL communicator and retrieving ncclUniqueId from [0] via c10d key-value store by key '0', but store->get('0') got error: Socket Timeout

Open
#285 0 comments 0 reactions 1 assignee View on GitHub

@sunpengsdu is already working on this.

Since Jul 25, 2024.

Assessment

This issue has not been assessed yet.

Description

bug
Describe the bug

It's a probabilistic occurrence, Socket Timeout when group.allreduce([tensor], opts)
if group in _world.pg_coalesce_state.keys():
# We are in coalescing context, do not issue single operation, just append a collective representation
coll = _CollOp(all_reduce, tensor, None, op, None)
_world.pg_coalesce_state[group].append(coll)
_world.pg_coalesce_state[group].append(coll)
_world.pg_coalesce_state[group].append(coll)
_world.pg_coalesce_state[group].append(coll)
if async_op:
return _IllegalWork()
else:
return None

  work = group.allreduce([tensor], opts)

E RuntimeError: [3] is setting up NCCL communicator and retrieving ncclUniqueId from [0] via c10d key-value store by key '0', but store->get('0') got error: Socket Timeout
E Exception raised from doWait at ../torch/csrc/distributed/c10d/TCPStore.cpp:445 (most recent call first):
More information: https://github.com/InternLM/InternEvo/actions/runs/10012995770/job/27889229378

Environment

python3.10
torch2.1

Other information

No response

Dominant language
Python
Stars
420
Forks
67
PR merge metrics
No merged PRs in 30d

Getting set up

  • No Dockerfile or Docker Compose file
  • Has a pull request template
  • No 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.

More from InternLM/InternEvo

All issues in InternLM/InternEvo

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.