# Changing global\_step manually

**URL:** <https://community.wandb.ai/t/changing-global-step-manually/5788>\
**Category:** W&B Help\
**Tags:** wandb\
**Created:** [January 25, 2024, 5:51pm UTC](https://community.wandb.ai/t/changing-global-step-manually/5788 "2024-01-25T17:51:25Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![modanesh](https://avatars.discourse-cdn.com/v4/letter/m/13edae/32.png) [@modanesh](https://community.wandb.ai/u/modanesh)\
**Post date:** [January 25, 2024, 5:51pm UTC](https://community.wandb.ai/t/changing-global-step-manually/5788/1 "2024-01-25T17:51:25Z")

</div>

I just started using wandb and really liked it so far. I have a question about resetting global\_step. I went through the asked questions but didn’t find something useful.

In my code, I train an RL agent and plot loss and mean reward values during training. Once the training is over, I run the agent over the environment for a number of test episodes. I need to plot the mean reward for test episodes as well. However, since there’s this global step, in the plots, the mean reward for test runs doesn’t start at zero which is annoying. How can I address this issue?

---

<div class="post-metadata">

**Author:** ![artsiom](https://sea2.discourse-cdn.com/flex020/user_avatar/community.wandb.ai/artsiom/32/1001_2.png) [@artsiom](https://community.wandb.ai/u/artsiom)\
**Post date:** [January 29, 2024, 4:25pm UTC](https://community.wandb.ai/t/changing-global-step-manually/5788/2 "2024-01-29T16:25:20Z")

</div>

Hi @modanesh!

Thank you for writing in! Could you please point me to your wandb workspace where you are experinencing this behavior?

---

<div class="post-metadata">

**Author:** ![modanesh](https://avatars.discourse-cdn.com/v4/letter/m/13edae/32.png) [@modanesh](https://community.wandb.ai/u/modanesh)\
**Post date:** [January 29, 2024, 5:15pm UTC](https://community.wandb.ai/t/changing-global-step-manually/5788/3 "2024-01-29T17:15:52Z")

</div>

Here is a simple report containing the issue: [Report for the WandB issue](https://api.wandb.ai/links/modanesh/3agw2bnh)

---

<div class="post-metadata">

**Author:** ![artsiom](https://sea2.discourse-cdn.com/flex020/user_avatar/community.wandb.ai/artsiom/32/1001_2.png) [@artsiom](https://community.wandb.ai/u/artsiom)\
**Post date:** [January 30, 2024, 4:02pm UTC](https://community.wandb.ai/t/changing-global-step-manually/5788/4 "2024-01-30T16:02:06Z")

</div>

Thank you for sending it over! Does it start at 100k for you instead of 0?

---

<div class="post-metadata">

**Author:** ![modanesh](https://avatars.discourse-cdn.com/v4/letter/m/13edae/32.png) [@modanesh](https://community.wandb.ai/u/modanesh)\
**Post date:** [January 30, 2024, 4:38pm UTC](https://community.wandb.ai/t/changing-global-step-manually/5788/5 "2024-01-30T16:38:33Z")

</div>

Yes, exactly that’s the problem I have.

---

<div class="post-metadata">

**Author:** ![artsiom](https://sea2.discourse-cdn.com/flex020/user_avatar/community.wandb.ai/artsiom/32/1001_2.png) [@artsiom](https://community.wandb.ai/u/artsiom)\
**Post date:** [February 1, 2024, 4:56pm UTC](https://community.wandb.ai/t/changing-global-step-manually/5788/6 "2024-02-01T16:56:04Z")

</div>

Thank you for elaborating. When you are logging those metrics, do you start from the step 100k, or is there some data that you have before the 100k that just doesn’t get displayed?

---

<div class="post-metadata">

**Author:** ![modanesh](https://avatars.discourse-cdn.com/v4/letter/m/13edae/32.png) [@modanesh](https://community.wandb.ai/u/modanesh)\
**Post date:** [February 1, 2024, 5:09pm UTC](https://community.wandb.ai/t/changing-global-step-manually/5788/7 "2024-02-01T17:09:16Z")

</div>

initially, I log the training stuff for 100k and it’s perfect. Once the training is done, I run the policy for evaluation and want to log evaluation stuff, but since the global step cannot be reset, it starts from 100k which is annoying.

---

<div class="post-metadata">

**Author:** ![artsiom](https://sea2.discourse-cdn.com/flex020/user_avatar/community.wandb.ai/artsiom/32/1001_2.png) [@artsiom](https://community.wandb.ai/u/artsiom)\
**Post date:** [February 1, 2024, 6:39pm UTC](https://community.wandb.ai/t/changing-global-step-manually/5788/8 "2024-02-01T18:39:10Z")

</div>

Thank you for elaborating. When you start logging your data at 100k, unfortunately there isn’t a way to get the 0-99,999 for you. I think the only potential solution here would be logging your data into a table instead of the regular wandb.log, and then graphing that table using custom charts.

Otherwise, unfortunately, it is not possible to change your global\_step manually in the UI.

---

<div class="post-metadata">

**Author:** ![artsiom](https://sea2.discourse-cdn.com/flex020/user_avatar/community.wandb.ai/artsiom/32/1001_2.png) [@artsiom](https://community.wandb.ai/u/artsiom)\
**Post date:** [February 5, 2024, 9:04pm UTC](https://community.wandb.ai/t/changing-global-step-manually/5788/9 "2024-02-05T21:04:24Z")

</div>

Hi @modanesh! Wanted to follow up with you regarding this concern!

---

<div class="post-metadata">

**Author:** ![modanesh](https://avatars.discourse-cdn.com/v4/letter/m/13edae/32.png) [@modanesh](https://community.wandb.ai/u/modanesh)\
**Post date:** [February 5, 2024, 9:19pm UTC](https://community.wandb.ai/t/changing-global-step-manually/5788/10 "2024-02-05T21:19:07Z")

</div>

Thanks for the info. I understand the limitation. If you could support this type of logging it would have been very helpful.

---

<div class="post-metadata">

**Author:** ![artsiom](https://sea2.discourse-cdn.com/flex020/user_avatar/community.wandb.ai/artsiom/32/1001_2.png) [@artsiom](https://community.wandb.ai/u/artsiom)\
**Post date:** [February 5, 2024, 10:13pm UTC](https://community.wandb.ai/t/changing-global-step-manually/5788/11 "2024-02-05T22:13:22Z")

</div>

I can submit a feature request for you if you’d like 🙂

---

<div class="post-metadata">

**Author:** ![modanesh](https://avatars.discourse-cdn.com/v4/letter/m/13edae/32.png) [@modanesh](https://community.wandb.ai/u/modanesh)\
**Post date:** [February 5, 2024, 10:26pm UTC](https://community.wandb.ai/t/changing-global-step-manually/5788/12 "2024-02-05T22:26:40Z")

</div>

That would be great. Thanks.

---

<div class="post-metadata">

**Author:** ![artsiom](https://sea2.discourse-cdn.com/flex020/user_avatar/community.wandb.ai/artsiom/32/1001_2.png) [@artsiom](https://community.wandb.ai/u/artsiom)\
**Post date:** [February 6, 2024, 6:19pm UTC](https://community.wandb.ai/t/changing-global-step-manually/5788/13 "2024-02-06T18:19:32Z")

</div>

No Problem! Your feature request has been submitted.
