Note
what is this code for? Logging vectors as the training progresses - e.g. final layer logits
uv sync
to download dependencies.
python3 main.py
- in the run workspace press add panels -> custom chart
- pick a random chart and edit it
- paste the schema from wandb-custom-chart/interactive-heatmap.json
- press on the 3 dots at the upper right corner and select save as new preset
- return to the custom chart window and select the new chart template
- on the right side of the window - write the query as such
query {
runSets
(runSets: "${runSets}", limit: 500 ) {
id
name
summaryTable
(tableKey: "heatmap-data" )
}
}
Important
It takes time for the table to show on the wandb dashboard - possibly until all rows are uploaded.
src/
├── main.py # run demo
└── utils/
└── utils_wandb.py # the custom logger
wandb-custom-chart/
└── interactive-heatmap.json # the custom wandb chart json
wandb/
In the implementation you'll notice that new vectors aren't being appended but the entire table being updated on wandb.
As of writing this, I am not aware of an ability to append rows to a table in wandb (instead of logging the table over and over which obviously is inefficient)
One can of course modify the code to save and update the table locally and sync it to the wandb remote once the run finished..