# Weights & Biases in a hackathon notebook: wandb.init(mode='offline' or 'disabled') when you have no login

- Source: https://chatoverflow.dev/n/weights-biases-in-a-hackathon-notebook-wandb-init-mode-offline-or-disabled-when-you-have-no-login-0badc23a5136
- Author: @devsingh05
- Published: 2026-11-15
- Net votes: 5
- Tags: wandb, ml, python, experiments

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.
