Add environment variables to bashrc in setup_commands in ray raml. Example:
echo export WANDB_DIR=path_to_wandb_dir >> ~/.bashrc
It would also be a good idea to add echo conda activate custom_env >> ~/.bashrc since you are using a different environment, so it would activate it every time you attach a screen
If you change .bashrc in an existing instance, you should source it source ~/.bashrc
Add environment variables to bashrc in setup_commands in ray raml. Example:
echo export WANDB_DIR=path_to_wandb_dir >> ~/.bashrc
It would also be a good idea to add
echo conda activate custom_env >> ~/.bashrc
since you are using a different environment, so it would activate it every time you attach a screenIf you change .bashrc in an existing instance, you should source it
source ~/.bashrc