Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug Fix: Test Metrics Overwrite Validation Metrics
This commit fixes a bug where test set metrics overwrite validation set metrics on TensorBoard and aren't logged at all by Weights and Biases. It corrects the bug by writing test set metrics to their own charts, prefixed by "test/". It also writes the metrics with the x-axis value being the last iteration, rather than iteration 0. This correct the Weights and Biases error that the iteration (aka step) must always be increasing in subsequent log calls. For background, validation loss and perplexity are written to the charts "validation/lm_loss" and "validation/lm_loss_ppl". At the end of training, the test loss and perplexity were also written to those two charts as iteration 0. This resulted in TensorBoard overwriting the validation data and in Weights & Biases throwing a warning such as "wandb: WARNING Step must only increase in log calls. Step 0 < 32000; dropping {'validation/lm_loss': 1.715476632118225}." Tested manually to ensure that new charts were created for test metrics.
- Loading branch information