Hi all,
I want to seperate the wandb.config from wandb.init in my training script. Howerever I cant seem to get around a circular import when trying to do this. I had a workaround where I use .init(mode=“offline”), so I can use wandb.config() afterwards and then call init() again in the training script. However this does not seem to work with sweeps.
In settings.py: Run wandb.config()
In training.py: From settings import config
Run wandb.init() in training.py
I feel like there is an obvious solution, but I cant seem to find it.
Thanks!
Hi @nime6,
I may need to know a little bit more about the use case here. My initial thought is to save config as a .yaml and then read that into your training.py where you could pass it into wandb.init(config=<your_yaml_converted_to_a_dict>)