# Plot Loss Curve with Trainer()

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fplot-loss-curve-with-trainer%2F9767%3E%5C
**Category:** Beginners\
**Created:** [September 7, 2021, 8:28am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fplot-loss-curve-with-trainer%2F9767 "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](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fscottire)%5C
**Post date:** [September 11, 2021, 7:58pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fplot-loss-curve-with-trainer%2F9767%2F2 "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](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Flogging-experiment-tracking-with-w-b%2F498)

---

_[View the full topic](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fplot-loss-curve-with-trainer%2F9767)._
