交互式检查点
从交互式作业采样
从采样器检查点名称或此作业的 tinker:// 路径排队采样并获取 future_id。交互式作业停止后仍可采样。
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
必填
Your Fastino API key.
string
必填
Interactive job ID.
string
必填
The name of a sampler checkpoint saved by this job, or its
tinker://<job_id>/sampler_weights/<name> path.integer[]
必填
Prompt token IDs from the base model’s tokenizer. At least one token.
integer
默认值:"1"
Number of continuations.
object
Decoding settings.
boolean
默认值:"false"
Also return the log probability of each prompt token.
integer
默认值:"0"
Return the top-k alternatives at each prompt position.
integer
默认值:"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.

