-
Notifications
You must be signed in to change notification settings - Fork 54
Stable Baselines won't run in conda environment #29
Comments
Hi @mark-hoffmann! Just wanted to confirm that we're looking at this. In the mean time, can you confirm which MPI you're using for the above? The Spectrum MPI that ships with PowerAI / Watson Machine Learning Community Edition (WML CE) on Power has a license that restricts its use only to the WML CE-provided frameworks. We don't think that's the problem you're seeing above, but might be an issue once you're past that. |
I believe we are trying this with |
OK; good. OpenMPI is what we'd likely recommend for this use case. We're trying to build Stable Baselines locally to see if we can reproduce. |
Great! Thank you for helping look into this! This might be a good package to pre-build and put into your powerai distribution as well since the setup is difficult if it is possible. I know Google Colab has this in their default installations as well. |
Hi,
One thing to note, if you are trying to run inside a conda environment that previously had It would probably be better to run in a fresh conda environment by following the instructions above. |
Thanks for the quick response! I'm unfortunately still having trouble. I tried to recreate the exact steps you did, but still end up with the error: Also, Is there any way to install torch in this same environment as well? I can't find any distribution when I try to do a normal installation of torch. I was usually just doing the command: |
Regarding the PowerAI / WML CE pytorch package and spectrum-mpi... Yes, our Our WML CE In the future we expect to release a CPU-only pytorch package that will forgo MPI support altogether (and so wouldn't clash with OpenMPI). But as the description suggests, that would lack GPU support, and so likely isn't a good choice for model training. (We think CPU-only make more sense for inference only, and that's the rationale for omitting MPI support there: we expect there will be less call for pytorch's distribution for inference.) |
I am trying to use the conda environments with powerai packages and am trying to install
stable-baslines
(https://github.com/hill-a/stable-baselines). I have run into issues that I think are relating tompi4py
?Because it seems like there isn't a distribution for
mpi4py
on a conda channel, we installed it on our power machine. I then added the appropriate.pth
file so that the location it is installed is sourced properly. This allows me to do the example import such as:from mpi4py import MPI
. However, when doing so, we recognize the following warnings:Going ahead, I was going to see if
stable-baslines
would still work. There isn't a conda channel for the package so I was going to try to install from source. I cloned the repo and had to comment outopencv-python
in thesetup.py
file because in order to get opencv installed properly I had to do:conda install -c conda-forge opencv
. I then install viapip install -e .
.Now if I try to either
import stable_baselines
or the same command from before:from mpi4py import MPI
, instead of just getting the warning messages from above, we end up with the following errors:Do you guys have any insight as to what could be going on with powerpc and mpi4py?
The text was updated successfully, but these errors were encountered: