Authentication
W&B looks for a file namedsecrets.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!
Existing estimators
If you’re using one of SageMakers preconfigured estimators you need to add arequirements.txt to your source directory that includes wandb
psutil directly from this wheel before installing wandb: