Skip to content

Run Cheetah simulations for RL training on GPU#72

Open
RemiLehe wants to merge 12 commits into
mainfrom
gpu_acceleration
Open

Run Cheetah simulations for RL training on GPU#72
RemiLehe wants to merge 12 commits into
mainfrom
gpu_acceleration

Conversation

@RemiLehe

@RemiLehe RemiLehe commented Jul 15, 2025

Copy link
Copy Markdown
Contributor

This adds installation instructions and code changes to run RL training on NERSC

@ax3l

ax3l commented Jul 15, 2025

Copy link
Copy Markdown
Member

@RemiLehe I merged #71, ready for rebase on this PR.

- pip
- python
- python-build
- pytorch-cpu

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As discussed: looks splendid, feel free to rename this file (remove the -cpu) and also update in the REAMDE.md now.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Background: I had this initially because I wanted to avoid downloading huge cuda packages for CPU usage, but in the end that package did not work properly for compilation of torch code.

@ax3l ax3l self-assigned this Jul 15, 2025
@RemiLehe RemiLehe changed the title [WIP] Run Cheetah simulations for RL training on GPU Run Cheetah simulations for RL training on GPU Jul 16, 2025
@RemiLehe RemiLehe changed the title Run Cheetah simulations for RL training on GPU [WIP] Run Cheetah simulations for RL training on GPU Jul 16, 2025
@RemiLehe RemiLehe changed the title [WIP] Run Cheetah simulations for RL training on GPU Run Cheetah simulations for RL training on GPU Jul 16, 2025

channels:
- conda-forge
- nodefaults

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had to remove unused packages here, to fit within the memory quotas of the $HOME folder at NERSC

Comment thread RL_controller/README.md

2. Create and activate the environment:
```bash
conda clean --all -y ; pip cache purge

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I also modified my conda pkg_dir now, because it clutters up $HOME on PM while downloading all the CUDA stuff:

conda config --add pkgs_dirs $PSCRATCH/conda/pkgs

Comment thread RL_controller/README.md
```bash
conda clean --all -y ; pip cache purge
mkdir -p /global/cfs/cdirs/m558/$(whoami)/sw/perlmutter/rl_training_conda_env
conda env create --prefix /global/cfs/cdirs/m558/$(whoami)/sw/perlmutter/rl_training_conda_env -f rl-training-conda.yaml

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you also want to set the envs_dirs in the conda config.

What I did not instead of prefix is set a envs_dirs to CFS or PSCRATCH upfront and then just conda env create away - it will then pick that dir by default and conda activate and conda env ... will know where to find it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants