secrets.env
relative to the training script and loads them into the environment when wandb.init()
is called. You can generate a secrets.env
file by calling wandb.sagemaker_auth(path="source_dir")
in the script you use to launch your experiments. Be sure to add this file to your .gitignore
!requirements.txt
to your source directory that includes wandbwandb.init
as follows: