- Use the provided
setup.bashscript viasource setup.bash - Install environment
poetry install
- Make sure that the steps above have been completed on the current terminal.
- Go to the parent directory of the safe-learning repository:
cd .. - Activate the environment:
source .venv/bin/activate - Move out of
safe-learningto your home folder. git clone https://github.com/shacklettbp/madrona_mjx.git && git checkout c34f3cf6d95148dba50ffeb981aea033b8a4d225cd madrona_mjxgit submodule update --init --recursive- Load cmake
module load cmake/3.27.7 - Point to cuda CMAKE witout loading cuda
export CMAKE_PREFIX_PATH="/cluster/software/stacks/2024-06/spack/opt/spack/linux-ubuntu22.04-x86_64_v3/gcc-12.2.0/cuda-12.1.1-5znnrjb5x5xr26nojxp3yhh6v77il7ie/:${CMAKE_PREFIX_PATH}" mkdir build && cd build && cmake -DLOAD_VULKAN=OFF .. && cd ..- Compile on a compute node
srun --ntasks=1 --cpus-per-task=20 --gpus=rtx_4090:1 --time=0:30:00 --mem-per-cpu=10240 make -j - Change back to the root of the safe-learning repository:
cd .. && cd safe-learning poetry install --with madrona-mjx- Test
srun --ntasks=1 --cpus-per-task=20 --gpus=rtx_4090:1 --time=0:30:00 --mem-per-cpu=10240 python train_brax.py +experiment=cartpole_vision