Training locally (using the command line)
In this document we will go over how to use the command line to train instead of a notebook.
Running a single training
Create your configuration file (as shown in the examples). Then `python
Running a sweep
Running a sweep is a bit more complicated using the command line.
You will first need to create a configuration file base_config.json
and a sweep_config.yaml
. The entrypoint for the sweep should be run_flow.py
or whatever you name it in step 2.
You will then need to download the script located here and name it
run_flow.py
or whatever.Set
BASE_CONFIG_PATH
to the config pathCreate a sweep using the config you just created:
wandb sweep --project sweeps_demo sweep_config.yaml
copy the sweep_idwandb agent sweep_id
(using the sweep_id you just created).