camall3n / onager

Lightweight python library for launching experiments and tuning hyperparameters, either locally or on a cluster
MIT License
20 stars 4 forks source link

Add support for named launch profiles to quickly switch between settings #16

Open camall3n opened 4 years ago

camall3n commented 4 years ago

These would be separate from configs. We could call them "profiles" or something similar and then add a --profile option to the launch subcommand.

camall3n commented 3 years ago

Possible workflow:

$ onager profile add myprofile1 --gpus 1 --cpus 4 --mem 16 --duration 02:30:00
$ onager profile add myprofile2 --cpus 2 --mem 64 --duration 01:00:00
$ onager profile list
     profile  options
------------  ----------------------------------------------
  myprofile1  --gpus 1 --cpus 4 --mem 16 --duration 02:30:00
  myprofile2  --cpus 2 --mem 64 --duration 01:00:00
onager launch --profile myprofile1 --jobname some-job