Create training job
Authorizations
API key with the vk_ prefix. Create one from the dashboard.
Body
Dataset reference: a dataset id or name, optionally pinned to a
snapshot — ds_…@snap-3 trains on that snapshot, ds_…@latest cuts
(or reuses) a snapshot at the current head and pins it. A plain
reference to a stream dataset behaves like @latest; a plain
reference to a one-shot upload trains on it as before.
The BYO-script payload. Persisted verbatim as TrainingJob.script_config_json and read back by the worker launch path (forward contract).
Inline reward source (Python text, TRL signature). Attached to the job at submit and stored job-scoped; there is no stored reward resource.
Push the trained artifact to your Hugging Face account when the job completes. Requires a connected HF integration (PUT /v1/settings/integrations/huggingface). Validated at submit: managed grpo/grpo_harness/sft_text/dpo jobs only, and artifact="adapter" needs hyperparameters.lora_rank. On success the job carries hf_repo_url.
Response
The created training job
queued, provisioning, configuring, running, completed, failed, cancelled The dataset snapshot this job was pinned to at submit
("<dataset_id>@snap-N"); set when dataset_id was given as …@snap-N
or …@latest (or names a stream dataset). Null for legacy submits.
How many inline reward sources the job was submitted with (null for reward-free methods). Sources are viewable per job via the dashboard.
Harness-in-the-loop GRPO (VS-372): the user's own agent harness (Claude
Agent SDK / LangChain / OpenAI Agents SDK) drives multi-turn rollouts
against the in-training policy. Shares GRPO's core knobs; the
harness-specific ones tune rollout execution and the colocated vLLM
policy server. The harness code itself arrives via the job's script
payload (same shape as custom_script).
- Option 1
- Option 2
- Option 3
- Option 4
- Option 5
- Option 6
Pydantic GPUInfo (with type field). Rust uses gpu_type internally
but serializes as "type" for JSON parity.
Pydantic GPUInfo (with type field). Rust uses gpu_type internally
but serializes as "type" for JSON parity.
The hf_push request echoed back (null when the job didn't opt in).
Set after a successful end-of-training push to Hugging Face; the pushed repo's URL (mirrors wandb_run_url).

