The Training API is currently in private preview. Request access before running this guide.
How dedicated training runs
1 · Local
Controls data, losses, rewards, and experiment logic.
2 · Provisioned
Runs remote model and optimizer operations on the selected shape.
3 · Persistent
Stores sampler snapshots or resumable training state.
4 · Optional
Loads sampler weights for rollouts and evaluation.
5 · Explicit
Register the selected model, then release billable compute.
What you can run
SFT, DPO, and ORPO
Use cookbook recipes with LoRA or full-parameter configurations supported by the selected training shape.
RL and RFT
Run synchronous or asynchronous rollouts with custom rewards, losses, environments, and deployment sampling.
Distillation
Provision student and teacher resources for sampled reverse KL, top-k forward KL, and related workflows.
Custom loops
Use the Tinker-compatible training client directly when a maintained recipe does not express the required behavior.
Dedicated training quickstart
Step 1: Install the SDK and cookbook
Step 2: Choose the closest recipe
Smoke test (bounded SFT):
Step 3: Pick model and shape
Choose a shape from Models. Pass the full shared shape ID astraining_shape_id; the SDK resolves the validated version and linked deployment shape.
Step 4–10: Train, checkpoint, promote, deploy, tear down
Follow the forked recipe. Record trainer and deployment IDs, checkpoint cadence, and cleanup flags before launch.Training and sampling lifecycle
Dedicated recipes use two independently billed resources:- Create or reconnect to a trainer from the selected training shape.
- Create an inference deployment when the loop needs rollouts or evaluation.
- Run one or more forward/backward calls, then apply one optimizer step.
- Save sampler weights and refresh the deployment before collecting new rollouts.
- Save resumable state on the approved cadence, promote the selected checkpoint, then delete or scale down billable resources.
Loss functions
Call forward/backward multiple times before one
optim_step() for gradient accumulation. Validate datum fields, token masks, and normalization locally. Detailed loss and datum routing lives in the Training API losses skill reference.
Saving and loading
Dedicated training has three distinct checkpoint purposes:
Do not pass a sampler snapshot to a resumable-state API. Keep the same trainer ID and log path for exact continuation; use the recipe’s explicit initialization option for a new job. See the checkpoint skill reference.
Deep dives (cookbook skill)
Config class reference (short): Cookbook Reference.
Compare infrastructure
See Serverless vs dedicated.Next steps
Cookbook overview
Recipe entry points
Training Shapes
What a shape pins
Models
Per-model shape catalog
Cleanup
Teardown contract