-
Notifications
You must be signed in to change notification settings - Fork 237
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
Mac M1 conda env #30
base: main
Are you sure you want to change the base?
Mac M1 conda env #30
Conversation
really nice work! When I run the example.py, some error occurs: RuntimeError: Unknown backend: 'gpu' requested, but no platforms that are instances of gpu are present. Platforms any idea how to fix it? more details here: |
Hi, if you are on M1 mac, there is no GPU as the error message says. Just specify cpu instead of gpu in the config. |
2aba861
to
fc3a31d
Compare
36e3f70
to
6952abb
Compare
Hello,
I wanted to get this running on my M1 laptop for local development. The installation process deviated quite a bit from the README.
In particular, I had to setup tensorflow and jax differently than the README workflow. It went something like this:
conda create -n dreamerv3 python=3.8 conda activate dreamerv3 conda install -c apple tensorflow-deps conda install jax -c conda-forge pip install tensorflow-macos tensorflow_probability pip install -r requirements.txt # comment out tensorflow-cpu in requirements.txt first.
I verified this environment by running
example.py
and by repeating the whole process again (conda installation and runningexample.py
).To make things easier for future users, I exported the conda env file. Then they don't need to manually install the conda dependencies and edit the
requirements.txt
.Perhaps this will be useful for others?