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

No documentation on how to use multiple cores with XLA #1004

Open
greg-8090 opened this issue Oct 7, 2024 · 3 comments
Open

No documentation on how to use multiple cores with XLA #1004

greg-8090 opened this issue Oct 7, 2024 · 3 comments
Labels
documentation Improvements or additions to documentation

Comments

@greg-8090
Copy link

This is the XLA documentation:

https://awsdocs-neuron.readthedocs-hosted.com/en/latest/frameworks/torch/torch-neuronx/programming-guide/training/pytorch-neuron-programming-guide.html#neuron-xla-device

And here is the relevant line:
"With PyTorch NeuronX the default XLA device is mapped to a NeuronCore. By default, one NeuronCore is configured."

However, there is no guidance on how to use multiple cores.

@AWSNB
Copy link
Contributor

AWSNB commented Oct 7, 2024

@greg-8090 ack and we'll fix the documentation

the guide was writen before we released NxD library that is recommended as default for distributed training
https://awsdocs-neuron.readthedocs-hosted.com/en/latest/libraries/nxd-training/index.html

will follow up with more explicit examples in next couple of hours

@greg-8090
Copy link
Author

Could you please point me to where the new examples are? Also, I notice NxD applies only to training, but I am trying to use XLA when running inference, and I want to know how to use multiple Neuron cores when doing that. Thanks in advance!

@aws-amerrez
Copy link
Contributor

@greg-8090
Here is the guide to NxD Inference. The code examples show how to use multi-cores with Neuron.
https://awsdocs-neuron.readthedocs-hosted.com/en/latest/libraries/neuronx-distributed/neuronx_distributed_inference_developer_guide.html

@aws-taylor aws-taylor added the documentation Improvements or additions to documentation label Nov 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

4 participants