-
Notifications
You must be signed in to change notification settings - Fork 527
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
GPU Enabled: False on Chip Apple M1 Pro #267
Comments
probably related to DLR-RM/stable-baselines3#914 |
Oh thanks. I forced the device using: python train.py --algo dqn --device mps --env SpaceInvadersNoFrameskip-v4 -f logs/ ========== SpaceInvadersNoFrameskip-v4 ========== At launch log I see: Using mps device however I continue see in the logs: GPU Enabled:False unzip SpaceInvadersNoFrameskip-v4.zip |
Hi, Your training uses GPU acceleration. Actually, To solve this, we need to update Next time, please use the markdown code blocks for both code and stack traces. |
thanks a lot ! and got it for markdown code block. |
Closing in favor of DLR-RM/stable-baselines3#914 |
Hi there,
Well, I'm using rl-baseline on a:
System Info
MacBook Pro Chip Apple M1Pro
OS: macOS-12.4-arm64-arm-64bit Darwin Kernel Version 21.5.0: Tue Apr 26 21:08:37 PDT 2022; root:xnu-8020.121.3~4/RELEASE_ARM64_T6000
Python: 3.8.9
Stable-Baselines3: 1.5.1a8
PyTorch: 1.13.0.dev20220629
Numpy: 1.23.0
Gym: 0.21.0
I'm using the lon huggingface RL course,unit-3.
Here's the command that I'm using in order to launch the training:
python train.py --algo dqn --env SpaceInvadersNoFrameskip-v4 -f logs/
I go to the logs and I got:
OS: macOS-12.4-arm64-arm-64bit Darwin Kernel Version 21.5.0: Tue Apr 26 21:08:37 PDT 2022; root:xnu-8020.121.3~4/RELEASE_ARM64_T6000
Python: 3.8.9
Stable-Baselines3: 1.5.1a8
PyTorch: 1.13.0.dev20220629
GPU Enabled: False
Numpy: 1.23.0
Gym: 0.21.0
So, GPU Enabled: False. I installed the last version of pytorch using:
pip3 install -U --pre torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/nightly/cpu
I checked the installation status:
Python 3.8.9 (default, Apr 13 2022, 08:48:06)
[Clang 13.1.6 (clang-1316.0.21.2.5)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
import torch
I tested this too:
import torch
So, I don't understand why when I launch my training the GPU Enabled. continue saying False.
I'm looking forward to speed up my training using the GPU on my Apple M1 Pro. Could you please help me ?
Thanks !
The text was updated successfully, but these errors were encountered: