# Copying run from a project to another and adding the right hyperparameter

**URL:** <https://community.wandb.ai/t/copying-run-from-a-project-to-another-and-adding-the-right-hyperparameter/1049>\
**Category:** W&B Help\
**Created:** [October 20, 2021, 1:54pm UTC](https://community.wandb.ai/t/copying-run-from-a-project-to-another-and-adding-the-right-hyperparameter/1049 "2021-10-20T13:54:12Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![barthelemymp](https://avatars.discourse-cdn.com/v4/letter/b/9d8465/32.png) [@barthelemymp](https://community.wandb.ai/u/barthelemymp)\
**Post date:** [October 20, 2021, 1:54pm UTC](https://community.wandb.ai/t/copying-run-from-a-project-to-another-and-adding-the-right-hyperparameter/1049/1 "2021-10-20T13:54:12Z")

</div>

Hello,

I have been running several test on differents on different projects and I am struggling for doing something pretty simple I think.  
I have run a sweep in a project:“project 1” for testing for hyperparameter.  
A bit later I modified a bit my architecture and run another test and send it to another project: “project 2”.  
Now I want to compare some of the run of project 1 with the one of project 2. I tried to use the option move, however the runs I moved disappeared from project1… and I don’t want that… How can I copy the run from one project to another one (Q1)  
Moreover I did not logged my hyperparameter for project 2. Can I add them manually from wandb interface ? (Q2)

Finally I don’t understand why some hyperparameters of my run for project 2 were not logged I did the following:

```auto

import wandb
wandb.login()

import stuff
define model and dataloaders

wandb.init(project="Structural encoder", entity="barthelemymp")
wandb.config = {
  "num_layers": 6,
  "forward_expansion": 2048,
  "batch_size": 10,
  "Encoder": "Structural"
}

for epoch in range(num_epochs):
      ...
      ...
      ...
      wandb.log({"Train loss": mean_lossTrain, "Val Loss":mean_lossVal, "epoch":epoch})

```

In the end on wandb website for this run I see only the trainloss valloss and epoch but not the config. What have I done wrong ? (Q3)

Lot’s of Question in one post, but any help will be appreciated,

Best

Barth

---

<div class="post-metadata">

**Author:** ![aidanjd](https://sea2.discourse-cdn.com/flex020/user_avatar/community.wandb.ai/aidanjd/32/258_2.png) [@aidanjd](https://community.wandb.ai/u/aidanjd)\
**Post date:** [October 20, 2021, 9:47pm UTC](https://community.wandb.ai/t/copying-run-from-a-project-to-another-and-adding-the-right-hyperparameter/1049/2 "2021-10-20T21:47:11Z")

</div>

Hi Barth,

(q1)  
That is the intended behaviour for the way projects, sweeps, and runs are structured. For your use case, I would recommend keeping everything you want to compare in the same project. There are various ways to keep things organized with tags and notes.

(q2)  
As for the config, you’ll need to call `wandb.config.update(config_dict)` to persist changes. You can read more about config [here](https://docs.wandb.ai/guides/track/config#efficient-initialization)

All the best,

Aidan

---

<div class="post-metadata">

**Author:** ![sydholl](https://avatars.discourse-cdn.com/v4/letter/s/eb8c5e/32.png) [@sydholl](https://community.wandb.ai/u/sydholl)\
**Post date:** [October 20, 2021, 9:47pm UTC](https://community.wandb.ai/t/copying-run-from-a-project-to-another-and-adding-the-right-hyperparameter/1049/3 "2021-10-20T21:47:24Z")

</div>

Hi Barth,

(q1)  
That is the intended behaviour for the way projects, sweeps, and runs are structured. For your use case, I would recommend keeping everything you want to compare in the same project. There are various ways to keep things organized with tags and notes.

(q2)  
As for the config, you’ll need to call `wandb.config.update(config_dict)` to persist changes. You can read more about config here

All the best,

Aidan

[Discourse post]

---

<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:** [December 19, 2021, 9:48pm UTC](https://community.wandb.ai/t/copying-run-from-a-project-to-another-and-adding-the-right-hyperparameter/1049/4 "2021-12-19T21:48:08Z")

</div>

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