NVIDIA / NVIDIA/apex

The pytorch program exits when execute after DistributedDataParallel

Open
#618 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
9k
Forks
1.5k
Avg merge
2d 4h
Merged PRs (30d)
3

Description

Hi all,

I am currently using apex for multi-gpu training with pytorch 1.01. I compile the apex successfully, however, the training program exit when it executes at this line without any information:

from apex.parallel import DistributedDataParallel, SyncBatchNorm

print('hello 93')
if engine.distributed:
    model = DistributedDataParallel(model) #the program exit at this line
print('hello 96')

I'm sure the model (network) is fine. I'd like to ask what's the possible problem and any suggestions?

Environment:
pytorch 1.01
apex 0.1
cuda 9 (I have also tried cuda 10)

Thanks.

Contributor guide

No contributing guide indexed for this repository

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 at apex.parallel.DistributedDataParallel and review how it is invoked in the reported multi-GPU setup, including the surrounding distributed initialization. Use the stated PyTorch 1.01, Apex 0.1, and CUDA environments when investigating; done means identifying a reproducible cause for the silent exit or documenting the missing information needed to diagnose it.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, pytorch
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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.