# Trainer: How can I log model outputs besides loss?

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ftrainer-how-can-i-log-model-outputs-besides-loss%2F66235%3E%5C
**Category:** 🤗Transformers\
**Created:** [December 18, 2023, 5:09pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ftrainer-how-can-i-log-model-outputs-besides-loss%2F66235 "2023-12-18T17:09:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![HaohuaLv](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/haohualv/32/22227_2.png) [@HaohuaLv](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FHaohuaLv)%5C
**Post date:** [December 18, 2023, 5:09pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Ftrainer-how-can-i-log-model-outputs-besides-loss%2F66235%2F1 "2023-12-18T17:09:23Z")

</div>

In my case, my custom model return “loss\_1”, “loss\_2” and “loss”, and loss = loss\_1 + loss\_2. But HF trainer only logs “loss” when training. I want to track all of them. How can I achieve this most easily?
