429 Rate limit exceeded error when calling wandb.log(), you are exceeding the rate limit quota for your project. W&B applies rate limits per project, and paid plans have higher limits than free plans.
How to stay under the rate limit
-
Update your W&B SDK: The latest version includes optimized mechanisms for retrying requests and managing quota usage.
-
Reduce logging frequency: Log metrics less often. For example, log every N epochs instead of every epoch:
-
Sync data manually: If you are rate limited, W&B stores your run data locally. You can sync it later with:
Rate limit headers
When rate limited, the response includes these headers:| Header | Description |
|---|---|
RateLimit-Remaining | Quota remaining in the current window (0–1000 scale) |
RateLimit-Reset | Seconds until the current quota resets |
RateLimit-Remaining is 0, wait for the number of seconds in RateLimit-Reset before retrying.
For more information, see Experiments limits and performance.
Metrics Experiments