CookbooksCursus Cookbooks
Track a Training Run
Log a complete training run to Cursus with metrics, config, and a clean finish.
- Initialize a run with project name and hyperparameters
- Log scalar metrics at each training step
- Mid-run config updates synced back to the server
- Clean finish with crash handling
Time to complete: ~5 minutes
Prerequisites
pip install sagea-cursusCURSUS_API_KEYandCURSUS_BASE_URLset in your environment- A Cursus server instance (hosted or self-hosted)
Step 1: Set up credentials
Step 2: Write the training script
Step 3: Run it
The script prints a dashboard URL. Open it to see metrics streaming in real time.
Step 4: Verify on the dashboard
After finish(), the dashboard shows:
- Metrics tab: loss and accuracy curves over 50 steps
- Config tab: initial config + the mid-run
lrupdate at step 25 - Overview: status
finished, projectmy-experiment, tagsv1,baseline
