Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: module 'torch.distributed' has no attribute 'init_process_group' #467

Closed
minar09 opened this issue Dec 11, 2018 · 7 comments

Comments

@minar09
Copy link

minar09 commented Dec 11, 2018

AttributeError: module 'torch.distributed' has no attribute 'init_process_group'

Still getting this error after installing latest pytorch-nightly and other stuff, when I tried to run the imagenet example script.

@TimZaman
Copy link

Same here; MacOS, Python 3.7 through pip. pytorch version 1.0.0.

> dir(torch.distributed)
['__builtins__', '__cached__', '__doc__', '__file__', '__loader__', '__name__', '__package__', '__path__', '__spec__', 'deprecated', 'is_available', 'torch']

@soumith
Copy link
Member

soumith commented Dec 31, 2018

the OSX binary of PyTorch does not ship with distributed support. You can check this with: torch.distributed.is_available() and it returns False

@TimZaman
Copy link

TimZaman commented Dec 31, 2018

Thanks @soumith . I tried that indeed, but I was just wondering if it was documented anywhere, looked all over the place (e.g. maybe another backend would work?). Any tips on using MacOS anyway? It's mostly for convenience, dev testing.
[I am assuming the author of this issue was on MacOS too, so i guess the issue can be closed]
I also noticed TCP has been deprecated, but the docs seem full with it. Am i correct in thinking the docs need updating? I'd be glad to help out.

@soumith
Copy link
Member

soumith commented Dec 31, 2018

Do you have multiple GPUs on your OSX machine? :O :O :O

Right now, we dont support CUDA or multi-GPU or a few of the distributed backends (such as gloo) on OSX, but if you are inclined, compile on OSX from source and it should have torch.distributed.deprecated working (i.e. the old distributed backend).

@TimZaman
Copy link

TimZaman commented Jan 5, 2019

I think we can close this issue.

@TimZaman
Copy link

Ran into this again on lazy sunday, looks like Pieter added this! pytorch/pytorch#20380

@Undead-Joe
Copy link

if i have cuda but i don't want use it.how should i do?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants