Authentication
W&B looks for a file namedsecrets.env relative to the training script and loads its contents into the environment when you call wandb.init(). To generate a secrets.env file, call wandb.sagemaker_auth(path="source_dir") in the script you use to launch your experiments. Add this file to your .gitignore.
Existing estimators
If you’re using one of SageMaker’s preconfigured estimators, add arequirements.txt file to your source directory that includes wandb:
psutil from this wheel before you install wandb: