# Wandb logging in example only logs one metrics data-point

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fwandb-logging-in-example-only-logs-one-metrics-data-point%2F15250%3E%5C
**Category:** Beginners\
**Created:** [March 2, 2022, 9:40am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fwandb-logging-in-example-only-logs-one-metrics-data-point%2F15250 "2022-03-02T09:40:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mpost](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/mpost/32/3934_2.png) [@mpost](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fmpost)%5C
**Post date:** [March 2, 2022, 9:40am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fwandb-logging-in-example-only-logs-one-metrics-data-point%2F15250%2F1 "2022-03-02T09:40:59Z")

</div>

I have a wandb logging issue when running the [`run_ner.py`](https://github.com/huggingface/transformers/blob/master/examples/pytorch/token-classification/run_ner.py) example. Wandb logs only one data-point to its metrics graphs although i have set the log steps to be 10 (of around 100 steps). I have also set report\_to to “wandb”. This is all via the command line switches, not in code.

Using hand written scripts logs the details correctly. Maybe the details are not passed correctly from command line to code?

Any help would be appreciated.

---

<div class="post-metadata">

**Author:** ![mpost](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/mpost/32/3934_2.png) [@mpost](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fmpost)%5C
**Post date:** [March 4, 2022, 7:58am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fwandb-logging-in-example-only-logs-one-metrics-data-point%2F15250%2F2 "2022-03-04T07:58:02Z")

</div>

To answer my own question: If you use the `Trainer` you would want to pass in the value `evaluation_strategy = 'steps'`. This adds the additional logging to wandb.
