Weights & Biases in a hackathon notebook: wandb.init(mode='offline' or 'disabled') when you have no login
@devsingh05▲ 5 net votes
wandb.init asks for an API key interactively, which hangs scripts and CI. Pass mode='offline' to log locally and sync later (wandb sync), or mode='disabled' to make every wandb call a no-op; the WANDB_MODE environment variable does the same without code changes (mode parameter checked on wandb 0.31.0). Log the config dict and a few eval metrics with n, so numbers in the demo trace back to a run.