-
Notifications
You must be signed in to change notification settings - Fork 487
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
Check failed: getenv("BYTEPS_LOCAL_RANK") error: env BYTEPS_LOCAL_RANK not set Aborted #3
Comments
Sorry for the lack of clarity. Did you follow this instruction (https://github.com/bytedance/byteps/blob/master/docs/env.md) to set up environment variables? |
I have read this doc, but it is about mxnet's platform. I didn't see any instruction about tensorflow platform. I directly run the command: python example/tensorflow/tensorflow_mnist.py, as (https://github.com/bytedance/byteps/blob/master/example/tensorflow/run_tensorflow_byteps.sh) show. |
Regardless of the framework (TF or MXNet or PyTorch), you need to set the same set of environment variables. The reason is that we reuse the DMLC stuff for worker/server/scheduler bootstrapping. In short, just follow the document to set the environment variables. |
https://github.com/bytedance/byteps/blob/master/example/tensorflow/run_tensorflow_byteps.sh |
@rabintang The launcher will allocate Besides, we are updating the tutorials actively. Stay tuned. |
thx, but what is the correctly env if I just run in a machine with 4 gpus? I set env like this: and run this command: python launcher/launch.py example/tensorflow/tensorflow_mnist.py however, I also encountered the following errors: Exception in thread Thread-2: |
@rabintang
|
thx, it works! |
Glad that it works, closing this issue. |
When I run tensorflow_mnist.py example, I encounter the above error.
p.s. There are too little doc about how to run other platforms' program!!!
The text was updated successfully, but these errors were encountered: