Experiment Tracking with Weights & Biases
Introduction
In this tutorial, we show how to set up experiment tracking via Weights & Biases on Neuro Platform using Neuro Project Template.
Creating a Neuro Project
First, make sure that you have the Neu.ro CLI client and cookiecutter installed and configured:
Then, initialize an empty project:
Connecting Weights & Biases
Now, connect your project with Weights & Biases:
Find your API key (it is also called a token) on W&B’s settings page(section “API keys”). It should be a sequence like
cf23df2207d99a74fbe169e3eba035e633b65d94
.Save your API key (token) to a file in your local home directory
~
and protect it by setting appropriate permissions to make W&B available on Neu.ro platform:
After that, create a Neu.ro secret:
Open .neuro/live.yaml
, find remote_debug
section within jobs
in it and add the following lines at the end of remote_debug
:
Now, you can start using W&B API in your code.
Testing
Change default preset to cpu-small
in .neuro/live.yaml
to avoid consuming GPU for this test:
Run a development job and connect to the job's shell:
In your job's shell, try to use wandb
:
You should see something like the following:
You can also find more examples on how to use experiment tracking and other features of W&B in the official W&B's examples repo.
To close the remote terminal session, press ^D
or type exit
.
Please don't forget to terminate your job when you don't need it anymore:
Last updated