Interactive checkpoints
Sample from an interactive job
Generate continuations of a tokenized prompt from a sampler checkpoint and read tokens from the completed future’s result.sequences, even after the job stops.
POST
POST /v1/training/jobs/{job_id}/sample
Pass a sampler checkpoint name for one of the job’s sampler checkpoints to
generate continuations of a tokenized prompt.
Sampling remains available after the interactive job is stopped.
Read the generated tokens from the completed future’s result.sequences.
Request
The name of a sampler checkpoint saved by this job, or its
tinker://<job_id>/sampler_weights/<name> path.base_model.
A team can have at most
2,048 sampling requests in flight. The API returns
429 when that limit is reached; wait for existing sample futures to finish
before retrying.Response
tokens, logprobs, stop_reason
(stop or length), and topk_logprobs. Decode tokens with the same
tokenizer. Cancel an unfinished sample with
POST /v1/training/jobs/{job_id}/futures/{future_id}/cancel.

