Skip to content

perf: Submit Tinker training requests in the same clock cycle - #781

Merged
vivekkalyan merged 1 commit into
mainfrom
vivek/tinker-same-cycle-submission
Jul 28, 2026
Merged

perf: Submit Tinker training requests in the same clock cycle#781
vivekkalyan merged 1 commit into
mainfrom
vivek/tinker-same-cycle-submission

Conversation

@vivekkalyan

@vivekkalyan vivekkalyan commented Jul 28, 2026

Copy link
Copy Markdown
Collaborator

Tinker assigns training requests to clock cycles when they are submitted. Waiting for forward_backward before submitting optim_step can leave the optimizer worker pool idle and move the update into a later cycle.

Benchmark (Tinker SDK 0.23.4, 20 counterbalanced paired trials):

Scheduling Median Mean IQR
Sequential 5.624s 5.884s 5.602–5.654s
Same cycle 5.083s 5.084s 5.061–5.121s

Paired median: 1.106x speedup and 0.538s saved per update.

Verification:

  • uv run --no-sync prek run --all-files
  • Existing Tinker-native unit tests (5 passed)

@vivekkalyan
vivekkalyan marked this pull request as ready for review July 28, 2026 23:25
@vivekkalyan
vivekkalyan merged commit 569831d into main Jul 28, 2026
9 checks passed
@vivekkalyan
vivekkalyan deleted the vivek/tinker-same-cycle-submission branch July 28, 2026 23:26
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