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

MASTER_ADDR setting for mnist example #603

Closed
song-william opened this issue Jun 14, 2024 · 2 comments
Closed

MASTER_ADDR setting for mnist example #603

song-william opened this issue Jun 14, 2024 · 2 comments

Comments

@song-william
Copy link
Contributor

song-william commented Jun 14, 2024

When launching the public pytorch examples for jobsets (doc link), I had to change the MASTER_ADDR value from pytorch-workers-0-0.pytorch-workers -> pytorch-workers-0-0.pytorch.train.svc.cluster.local for the pods to connect.

Is this something specific to my installation? Or do the examples need to be updated?

Exact error log from resnet.yaml

[W socket.cpp:558] [c10d] The IPv6 network addresses of (pytorch-workers-0-0.pytorch-workers, 3389) cannot be retrieved (gai error: -2 - Name or service not known).

Setup

I launched the jobset into specific namespace named train.
kubectl apply -f jobset.yaml -n train --server-side

We are using the v0.5.2 of jobset
kubectl apply --server-side -f https://github.com/kubernetes-sigs/jobset/releases/download/v0.5.2/manifests.yaml

I have verified that the the headless service resource exists on jobset creation. I have verified that that the jobset-controller-manager is in a healthy state.

@song-william
Copy link
Contributor Author

Oh it looks like the example docs might be out of date.

The public docs) have MASTER_ADDR=pytorch-workers-0-0.pytorch-workers, but the github example correctly has MASTER_ADDR=pytorch-workers-0-0.pytorch.

Setting MASTER_ADDR=pytorch-workers-0-0.pytorch now works.

@danielvegamyhre
Copy link
Contributor

Fixed in #604

Thanks @song-william!

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

2 participants