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:
The W&B sweep agent behaves as expected in a SageMaker job only if your SageMaker integration is turned off. Turn off the SageMaker integration by modifying your invocation of
wandb.init
: