SlowDocumentation Index
Fetch the complete documentation index at: https://wb-21fd5541-kb-refresh.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
wandb.init() or sluggish metric uploads are usually caused by one of four things: network latency, large media payloads, too many log calls per second, or the W&B service process starting up slowly.
Slow wandb.init()
wandb.init() contacts the W&B API to create the run and verify credentials. If it hangs for more than a few seconds:
- Check connectivity: Run
curl -I https://api.wandb.aito confirm your machine can reach the W&B API. Firewall rules or proxy configurations on clusters are a common cause. - Increase the init timeout: If the connection is intermittent, give
wandb.init()more time before it gives up: - Use offline mode during testing: If you are iterating quickly and do not need live syncing, run offline and sync later:
- You log too frequently: Calling
wandb.log()every step on a fast GPU can generate more data than the background threads can upload. Log every N steps instead: - You log large media on every step:
wandb.Image,wandb.Table, andwandb.Videoobjects are significantly larger than scalar metrics. Log rich media every epoch or every N steps rather than every step. - Rate limits: If you hit the
429 Rate limit exceedederror, see How do I fix rate limit exceeded errors?.
wandb.finish() (or exits), W&B flushes any remaining buffered data. This can take time if a large backlog built up during training. To prevent a long wait at the end, keep logging frequency reasonable throughout training rather than batching everything at the end.
The W&B service process
Recent SDK versions use a separate service process (wandb-service) to handle uploads. On some machines, starting this process for the first time can be slow due to Python startup overhead. Subsequent runs on the same machine are faster. If the service process is consistently slow, you can disable it (reverts to the older thread-based backend):
wandb/debug.log and wandb/debug-internal.log.
Runs Experiments Connectivity