fix(training): retry with backoff on 429 when creating RLOR trainer job#331
Open
fix(training): retry with backoff on 429 when creating RLOR trainer job#331
Conversation
SFT jobs fail immediately when the trainer creation POST gets a 429 Too Many Requests response (e.g. due to concurrent trainer jobs or rate limits). Add exponential backoff retry (up to 5 attempts, 10s–120s delays) around rlor_mgr.create() so transient rate limits don't kill the entire job. Configurable via FW_TRAINER_CREATE_MAX_RETRIES env var. Made-with: Cursor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
rlor_mgr.create()increate_trainer_job()so that HTTP 429 (Too Many Requests) errors during RLOR trainer creation don't immediately fail the entire SFT job.FW_TRAINER_CREATE_MAX_RETRIESenv var (default: 5).Context
accounts/youfychenbc5000-70d70d/supervisedFineTuningJobs/prcvvaflfailed because the trainer creation POST got a 429 while B300 capacity was occupied by another job. The entire SFT job died instead of waiting and retrying.Test plan
Made with Cursor