-
Notifications
You must be signed in to change notification settings - Fork 615
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
[HANDS-ON BUG] #560
Comments
I have same problem |
Hi, I think the solution for now provided by @RubSevian is the best (thanks 🤗 ) I'm going to check with MLAgents team to see where this error comes from. |
@RubSevian @simoninithomas Thank you a lot. It worked for me too. |
Hi, I also meet the same problem in unit5 SnowballTarget, I tried the same solution by @RubSevian but still can't fix it (it worked when I tried to fix Unit1 problem) Here is the screenshot of an execution of the cell after I applied @RubSevian solution: "RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cuda:0 and cpu! (when checking argument for argument mat1 in method wrapper_CUDA_addmm)" |
@iyaijuil Based on your mistake, I can make an assumption that the problem is in choosing a device, perhaps you need to specify what specifically to use the cpu or video card (CUDA) |
I've encountered same problem with 5th unit |
Thanks for your reply. I used google colab to train the model. I followed the tutorial to use T4 GPU as my runtime type, and I used Macbook pro M3. Is it because there is any conflict within this set up? |
I'm encountering the same issue on Unit 5 of Deep RL Course of |
Same for me. Don't know how to explicitly set device. I've even tried to add a |
Actually, you don't need to train using a GPU. It took me 12 minutes to train the model with a cpu on colab. Thereby, you won't encounter errors. |
Thank you so much! This worked! |
Looks like the proposed fix (changing But to me, it also doesn't work. I experienced the same as @iyaijuil described. I finally just run experiment on cpu by adding env variable.
To me, it took around
|
### Bonus Unit 1 Notebook Error
Hello. I have a problem with executing my code in Bonus Unit 1 and it arises from this line, where, honestly talking, I have not manipulated anything:
!mlagents-learn ./config/ppo/Huggy.yaml --env=./trained-envs-executables/linux/Huggy/Huggy --run-id="Huggy2" --no-graphics
Below is a screetshot of an execution of the cell:
Actually I have copied the Bonus Unit 1 notebook to my google drive and ran there.
The text was updated successfully, but these errors were encountered: