交互式操作
获取交互式 future
轮询交互式 future 以获取其状态和结果。设置 wait=true 时,请求最多等待 25 秒,服务会将结果保留一小时。
GET
GET /v1/training/jobs/{job_id}/futures/{future_id}
Every interactive-job call that does work returns a future_id. Read the
future until its status is completed, failed, or cancelled.
Use wait=true to wait at most 25 seconds per request. Continue polling a nonterminal future. Use wait=true to wait at most 25 seconds per request. Continue polling a nonterminal future. Use wait=true to wait at most 25 seconds per request. Continue polling a nonterminal future. Use wait=true to wait at most 25 seconds per request. Continue polling a nonterminal future. Use wait=true to wait at most 25 seconds per request. Continue polling a nonterminal future. Results are kept for one hour.
Request
string
必填
Your Fastino API key.
string
必填
Interactive job ID.
string
必填
Future ID returned when the work was queued.
boolean
默认值:"false"
Wait up to 25 seconds for an unfinished future before answering. Repeat
the request until it finishes.
Response
string
The future.
string
The job.
string
create, load, forward, forward_backward, optim_step, save, or sample.string
pending, running, completed, failed, or cancelled.string | null
While unfinished:
active, or paused_capacity while GPU capacity warms up.any
Once
completed:forwardandforward_backward:loss_fn_outputs(one entry of tensors per datum, such aslogprobs) andmetrics.sample:sequences, each withtokens,logprobs, andstop_reason, plusprompt_logprobswhen requested.save: the checkpoint path.- Other types: an acknowledgement.
object | null
When
failed or cancelled: message, and category (user for a problem
with the request, server for a Fastino problem).
