# WandB does not log train loss

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fwandb-does-not-log-train-loss%2F116153%3E%5C
**Category:** Beginners\
**Created:** [November 7, 2024, 9:02am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fwandb-does-not-log-train-loss%2F116153 "2024-11-07T09:02:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![VS-0](https://avatars.discourse-cdn.com/v4/letter/v/b9bd4f/32.png) [@VS-0](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FVS-0)%5C
**Post date:** [November 7, 2024, 9:02am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fwandb-does-not-log-train-loss%2F116153%2F1 "2024-11-07T09:02:37Z")

</div>

Hi there!

I am using the Trainer to train Llama Models. When I use Comet as a logging backend, everything works well, but I wanted to test WandB, too, but here it does not log the train loss. It logs the global steps and also the epoch, and also all the evaluation metrics (eval/loss and others). But just not the train loss.

I set WANDB\_WATCH to all, report\_to in the Trainer to wandb and also disabled comet to see if there are interferences. But it just won’t log the train loss. Did anyone have a similar problem?

Thanks!  
Ver
