# Loading config values of a previous run to reproduce it

**URL:** <https://community.wandb.ai/t/loading-config-values-of-a-previous-run-to-reproduce-it/1955>\
**Category:** W&B Help\
**Created:** [February 20, 2022, 6:25pm UTC](https://community.wandb.ai/t/loading-config-values-of-a-previous-run-to-reproduce-it/1955 "2022-02-20T18:25:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![cstein06](https://avatars.discourse-cdn.com/v4/letter/c/7ab992/32.png) [@cstein06](https://community.wandb.ai/u/cstein06)\
**Post date:** [February 20, 2022, 6:25pm UTC](https://community.wandb.ai/t/loading-config-values-of-a-previous-run-to-reproduce-it/1955/1 "2022-02-20T18:25:22Z")

</div>

Hi all,

Say I have a run that had a good result, and I want to re-run it. What would be the recommended way to do this? How can I download a previous run’s config values to create a new run with the same config?

Thanks, Carlos

---

<div class="post-metadata">

**Author:** ![armanharutyunyan](https://avatars.discourse-cdn.com/v4/letter/a/a6a055/32.png) [@armanharutyunyan](https://community.wandb.ai/u/armanharutyunyan)\
**Post date:** [February 22, 2022, 2:39pm UTC](https://community.wandb.ai/t/loading-config-values-of-a-previous-run-to-reproduce-it/1955/2 "2022-02-22T14:39:05Z")

</div>

Hey Carlos, you can get the config by using our Public API. Here is a code snippet you can use:

import wandb  
api = wandb.Api()

run = api.run("//\<run\_id\>")  
run.file(“config.yaml”).download()

You can also use the W&B Launch feature which is in beta at the moment. Here is a [link](https://docs.wandb.ai/guides/launch) to the documentation.

Best,  
Arman

---

<div class="post-metadata">

**Author:** ![cstein06](https://avatars.discourse-cdn.com/v4/letter/c/7ab992/32.png) [@cstein06](https://community.wandb.ai/u/cstein06)\
**Post date:** [March 4, 2022, 9:59pm UTC](https://community.wandb.ai/t/loading-config-values-of-a-previous-run-to-reproduce-it/1955/3 "2022-03-04T21:59:34Z")

</div>

Great, that helps.

Thanks Arman

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/wandb/original/1X/366b649231631dbab896843020da0056074ac79d.png) [@system](https://community.wandb.ai/u/system)\
**Post date:** [May 3, 2022, 9:59pm UTC](https://community.wandb.ai/t/loading-config-values-of-a-previous-run-to-reproduce-it/1955/4 "2022-05-03T21:59:58Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
