Your code sends prompts from the current batch. Tinker’s sampling GPUs generate responses using the current sampling snapshot and return them to your loop.
Your code evaluates the responses and computes rewards, then sends the training batch to Tinker. Its training GPUs compute and accumulate gradients without changing the weights.
On Tinker’s training GPUs, the optimizer applies accumulated gradients to your trainable weights.
When you choose to checkpoint, Tinker stores weights and optimizer state so you can resume later. You choose how often to save.
Your code refreshes Tinker’s sampling GPUs with a snapshot of the updated weights, selects the next batch, and repeats. Later training leaves the snapshot unchanged. This is one example loop; you choose when to save and refresh weights.
If a training GPU at Tinker stops responding during a request, Tinker handles the infrastructure failure while your code waits for the result.
Tinker restores training state on healthy resources and retries the work. Your code does not need to manage the GPU replacement.
Once the request succeeds, results return to your loop.
From your computer, your loop submits more training data and sampling requests through the same API.
Tinker schedules the work across many more GPUs in its shared pools.
Tinker manages the compute. Results return to your computer through the same calls, and your loop keeps running.