Puntos de control interactivos
Muestrear desde un trabajo interactivo
Encola un muestreo desde un punto de control sampler o su ruta tinker:// y obtén un future_id. El muestreo funciona incluso tras detener el trabajo.
POST
POST /v1/training/jobs/{job_id}/sample
Generates continuations of a tokenized prompt with one of the job’s sampler
checkpoints. Sampling also works after the job is stopped. Read the generated
tokens from the completed future’s result.sequences.
Request
string
requerido
Your Fastino API key.
string
requerido
Interactive job ID.
string
requerido
The name of a sampler checkpoint saved by this job, or its
tinker://<job_id>/sampler_weights/<name> path.integer[]
requerido
Prompt token IDs from the base model’s tokenizer. At least one token.
integer
predeterminado:"1"
Number of continuations.
object
Decoding settings.
boolean
predeterminado:"false"
Also return the log probability of each prompt token.
integer
predeterminado:"0"
Return the top-k alternatives at each prompt position.
integer
predeterminado:"0"
Return the top-k alternatives at each generated position.
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.

