Integrations
Shipping Metrics Outside Slai
Shipping metrics to a third party tool is fairly straightforward. In this example, we’ll log our training metrics to Weights and Biases (WandB) to track our experiments.
Add your WandB API key to Slai
You can add your WandB API key to the Slai Secrets Manager. If you don’t yet have a WandB account, you can signup for one here.
Import the API key in the sandbox
You can access stored secrets in your sandbox through the os.environ
object. We’ll login to WandB with our API key:
Logging metrics during training
To log metrics directly to WandB, you can add the following code to your training script. The wandb.log()
method will record whatever data you wish to pass in during your training process.