Create training session
Creates a training session and returns its details.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
ID of the model resource to use for this training session.
"123e4567-e89b-12d3-a456-426614174000"
Checkpoint ID to resume from. LoRA training checkpoints may resume on another model resource with compatible base-model weights. Full-weight training checkpoints require the original base model.
"123e4567-e89b-12d3-a456-426614174000"
LoRA adapter configuration for the session
Optional display name used to identify the training session
128"gsm8k-experiment-2"
Optional auxiliary metadata to associate with the training session
Whether to restore optimizer state and step from a training checkpoint. Omitted or true restores them; false loads weights only with a fresh optimizer and step 0. Not valid for inference checkpoints, which have no optimizer state.
true
Response
Training session details
A training session and its current state
ID of the training session
"123e4567-e89b-12d3-a456-426614174000"
Auxiliary metadata associated with the training session
Status of the training session
TRAINING_SESSION_STATUS_UNSPECIFIED, TRAINING_SESSION_STATUS_CREATING, TRAINING_SESSION_STATUS_RUNNING, TRAINING_SESSION_STATUS_STOPPED, TRAINING_SESSION_STATUS_STOPPING, TRAINING_SESSION_STATUS_ERROR, TRAINING_SESSION_STATUS_EXPIRED "TRAINING_SESSION_STATUS_RUNNING"
List of saved inference checkpoints for this session
List of saved training checkpoints for this session
Current training step
"100"
Timestamp when the training session was created
"2026-01-02T00:00:00Z"
Timestamp when the training session was last updated
"2026-01-02T00:00:05Z"
ID of the model resource used by this training session.
"123e4567-e89b-12d3-a456-426614174000"
Base model the session trains, taken from the model resource it is attached to
"Qwen/Qwen3.5-4B"
ID of the user who created the training session
"user_123"
Session-scoped policy and weight versions for this session
Display name used to identify the training session
128"gsm8k-experiment-2"
Structured detail for the training session's current error. Set when the session is in an error state.
Checkpoint ID this session was resumed from
"123e4567-e89b-12d3-a456-426614174000"
LoRA adapter configuration. Present only for sessions running on a LoRA-enabled model resource.