# Plot Loss Curve with Trainer()

**URL:** <https://discuss.huggingface.co/t/plot-loss-curve-with-trainer/9767>\
**Category:** Beginners\
**Created:** [September 7, 2021, 8:28am UTC](https://discuss.huggingface.co/t/plot-loss-curve-with-trainer/9767 "2021-09-07T08:28:04Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![scottire](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/scottire/32/2685_2.png) [@scottire](https://discuss.huggingface.co/u/scottire)\
**Post date:** [September 11, 2021, 7:58pm UTC](https://discuss.huggingface.co/t/plot-loss-curve-with-trainer/9767/2 "2021-09-11T19:58:36Z")

</div>

Scott from Weights & Biases here. Don’t want to be spammy so will delete this if it’s not helpful. You can plot losses to W&B by passing `report_to` to TrainingArguments.

```auto
from transformers import TrainingArguments, Trainer

args = TrainingArguments(... , report_to="wandb")
trainer = Trainer(... , args=args)

```

More info here: [Logging & Experiment tracking with W&B](https://discuss.huggingface.co/t/logging-experiment-tracking-with-w-b/498)

---

_[View the full topic](https://discuss.huggingface.co/t/plot-loss-curve-with-trainer/9767)._
