Skip to content

feat: expose poll interval parameter on all trainers#5859

Draft
joshuatowner wants to merge 1 commit into
aws:masterfrom
joshuatowner:poll-interval
Draft

feat: expose poll interval parameter on all trainers#5859
joshuatowner wants to merge 1 commit into
aws:masterfrom
joshuatowner:poll-interval

Conversation

@joshuatowner
Copy link
Copy Markdown
Contributor

@joshuatowner joshuatowner commented May 14, 2026

Expose poll interval parameter on trainer train() methods

Adds a poll parameter (default 5s) to train() on SFTTrainer, DPOTrainer, RLVRTrainer, and RLAIFTrainer. This passes through to the underlying trainer_wait.wait() function, which already accepts poll but had no way to configure it from the trainer API.

Allows callers to control how frequently the SDK polls for training job status updates during wait=True.

trainer.train(wait=True, poll=30) # poll every 30s instead of default 5s

Testing

  • unit tests
  • manual tests (WIP)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant