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

Improper device setting when using neuron.device=cuda:<id> #63

Open
ifrit98 opened this issue Jun 22, 2023 · 0 comments
Open

Improper device setting when using neuron.device=cuda:<id> #63

ifrit98 opened this issue Jun 22, 2023 · 0 comments

Comments

@ifrit98
Copy link
Contributor

ifrit98 commented Jun 22, 2023

Using --neuron.device cuda:N fails with device placement mismatches.

e.g. When starting with
pm2 start run.sh --name openvalidators_autoupdate -- --wallet.name <your-wallet-name> --wallet.hotkey <your-wallet-hot-key> --neuron.device cuda:1

eventually fails with cuda:0 vs cuda:1 mismatch in forward() See: https://github.com/opentensor/validators/blob/main/openvalidators/forward.py#L297

Gets 1 tensor on cuda:0 and the other on cuda:1 set from the command line.

Suggestion is to simply recommend away from this arg until we find a fix.

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

1 participant