Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions prompting/utils/logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,10 @@ def init_wandb(reinit=False, neuron: Literal["validator", "miner"] = "validator"

tags += custom_tags

# wandb_config = {key: copy.deepcopy(self.config.get(key, None)) for key in ("neuron", "reward", "netuid", "wandb")}
# wandb_config["neuron"].pop("full_path", None)
wandb_config = {
"HOTKEY_SS58": settings.WALLET.hotkey.ss58_address,
"NETUID": settings.NETUID,
}
wandb.login(anonymous="allow", key=settings.WANDB_API_KEY, verify=True)
logger.info(
f"Logging in to wandb on entity: {settings.WANDB_ENTITY} and project: {settings.WANDB_PROJECT_NAME}"
Expand All @@ -99,7 +101,11 @@ def init_wandb(reinit=False, neuron: Literal["validator", "miner"] = "validator"
dir=settings.SAVE_PATH,
tags=tags,
notes=settings.WANDB_NOTES,
config=wandb_config
)
signature = settings.WALLET.hotkey.sign(WANDB.id.encode()).hex()
wandb_config["SIGNATURE"] = signature
WANDB.config.update(wandb_config)
logger.success(f"Started a new wandb run <blue> {WANDB.name} </blue>")


Expand Down