Skip to main content

Documentation Index

Fetch the complete documentation index at: https://wb-21fd5541-style-guide-support-models-articles-20260527-00.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

If you receive an HTTP 429 Rate limit exceeded error when you call wandb.log(), you’re exceeding the rate limit quota for your project. W&B applies rate limits per project, and paid plans have higher limits than free plans. Use the following steps to reduce your logging load and recover any data that was throttled.

Stay under the rate limit

  1. Update your W&B SDK: The latest version includes optimized mechanisms for retrying requests and managing quota usage.
    pip install --upgrade wandb
    
  2. Reduce logging frequency: Log metrics less often. For example, log every N epochs instead of every epoch:
    for epoch in range(100):
        if epoch % 5 == 0:
            wandb.log({"acc": accuracy, "loss": loss})
    
  3. Sync data manually: If you’re rate limited, W&B stores your run data locally. To upload the local run directory at [RUN-FILE-PATH] after the rate limit clears:
    wandb sync [RUN-FILE-PATH]
    

Rate limit headers

To gauge how close you are to the quota and when you can resume logging, inspect the rate limit headers on the response. When you’re rate limited, the response includes these headers:
HeaderDescription
RateLimit-RemainingQuota remaining in the current window, on a scale from 0 to 1000
RateLimit-ResetSeconds until the current quota resets
If RateLimit-Remaining is 0, wait for the number of seconds in RateLimit-Reset before you retry. For more information, see Experiments limits and performance.
Metrics Experiments