-
Notifications
You must be signed in to change notification settings - Fork 618
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Config gets overwritten on resume by id #912
Comments
Hey @stathius, are you calling |
No, I'm not calling anything other than wand.init(resume='id'). Isn't the expected behavior that the run keeps it's previous config values? |
Yep, that should be the case. Can you share a code snippet so we can reproduce? |
|
This should work if the run is launched in a new process, but there may be a bug when re-launched from the same process. We'll try to reproduce. |
I'm seeing something similar since I've updated to version 10.0:
leads to It seemed to work fine on version 9.8. Any idea what changed? (I experimented with the id and resume arguments, but can't seem to find any combination that works) |
We're tracking this and will cut a new release asap with a fix. It should go out in 10.0.1 within the next couple days. |
This issue is stale because it has been open 60 days with no activity. |
Hey folks CodeCreating a run id = wandb.util.generate_id()
print(f"[INFO] Generated ID: {id}")
config = {
"epochs":50,
"loss":"mse",
"opt":"adam"
}
run = wandb.init(entity="xxx", project="xxx", id=id, config=config)
w_c = run.config
print(w_c)
a = tf.keras.layers.Input(shape=(32,))
b = tf.keras.layers.Dense(10)(a)
model = tf.keras.models.Model(inputs=a,outputs=b)
model.compile(w_c["opt"], loss=w_c["loss"])
model.fit(np.random.rand(100, 32), np.random.rand(100, 10),
initial_epoch=wandb.run.step, epochs=w_c["epochs"],
callbacks=[WandbCallback(save_model=True, monitor="loss")])
run.finish() This gets me the config dictionary Resuming the previous run with a different config config = {
"epochs":100, #changed the epoch from 50 to 100
}
run = wandb.init(entity="xxx", project="xxx", resume=id, config=config)
w_c = run.config
print(w_c)
a = tf.keras.layers.Input(shape=(32,))
b = tf.keras.layers.Dense(10)(a)
model = tf.keras.models.Model(inputs=a,outputs=b)
model.compile(w_c["opt"], loss=w_c["loss"])
model.fit(np.random.rand(100, 32), np.random.rand(100, 10),
initial_epoch=wandb.run.step, epochs=w_c["epochs"],
callbacks=[WandbCallback(save_model=True, monitor="loss")])
run.finish() This runs and prints the following config dictionary Closing this ticket. Please feel free to comment in the thread for further assistance. |
wandb --version && python --version && uname
Description
I am trying to resume a run by using
wandb.init(resume='someid')
but this overwrites the config params.The text was updated successfully, but these errors were encountered: