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

Can't train using GPU? The torch version for this environment is '1.10.0cpu', that is, CPU one. #213

Open
1 task done
SunilaAkbar opened this issue Nov 11, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@SunilaAkbar
Copy link

Search before asking

  • I have searched the MuZero issues and found no similar feature requests.

Description

Hi,

I will appreciate if someone would suggest me that how to train using GPU, the cuda availability check turns out to be 'False' as the torch version for this environment is '1.10.0cpu', that is, the one using CPU (that's my understanding). Please correct me if I am wrong and direct me to the solution.

Thanks and Regards!

Additional context

No response

@SunilaAkbar SunilaAkbar added the enhancement New feature or request label Nov 11, 2022
@dillonmsandhu
Copy link

Which Cuda version do you have? Updating pytorch may work for you.

@SunilaAkbar
Copy link
Author

Hi Dillon,

Thanks for your feedback. I am using my base environment now and it is using GPU now. But now I have another error as follows:

"RuntimeError: module must have its parameters and buffers on device cuda:0 (device_ids[0]) but found one of them on device: cpu"

To overcome this I did the change "self.selfplay_on_gpu = torch.cuda.is_available()" as suggested in one of the same "Issues". By this, the self plays are now far less than the training steps. So no learning!

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

No branches or pull requests

2 participants