Skip to main content
PATCH
Update a training session

Authorizations

Authorization
string
header
default:default
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

session_id
string
required

ID of the training session

Body

application/json

Fields to update on a training session

display_name
string

Display name to update. An empty string clears the existing display name.

Maximum string length: 128
metadata
object

Metadata fields to update. Omitted fields remain unchanged, and empty strings clear existing values.

Response

Updated training session details

A training session and its current state

id
string
required

ID of the training session

Example:

"123e4567-e89b-12d3-a456-426614174000"

metadata
object
required

Auxiliary metadata associated with the training session

status
enum<string>
default:TRAINING_SESSION_STATUS_UNSPECIFIED
required

Status of the training session

Available options:
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
Example:

"TRAINING_SESSION_STATUS_RUNNING"

inference_checkpoints
object[]
required

List of saved inference checkpoints for this session

training_checkpoints
object[]
required

List of saved training checkpoints for this session

step
default:0
required

Current training step

Example:

"100"

created_at
string<date-time>
required

Timestamp when the training session was created

Example:

"2026-01-02T00:00:00Z"

updated_at
string<date-time>
required

Timestamp when the training session was last updated

Example:

"2026-01-02T00:00:05Z"

model_resources_id
string
required

ID of the model resource used by this training session.

Example:

"123e4567-e89b-12d3-a456-426614174000"

base_model
string
required

Base model the session trains, taken from the model resource it is attached to

Example:

"Qwen/Qwen3.5-4B"

created_by
string
required

ID of the user who created the training session

Example:

"user_123"

policy_state
object
required

Session-scoped policy and weight versions for this session

display_name
string

Display name used to identify the training session

Maximum string length: 128
Example:

"gsm8k-experiment-2"

error
object

Structured detail for the training session's current error. Set when the session is in an error state.

resume_from_checkpoint_id
string

Checkpoint ID this session was resumed from

Example:

"123e4567-e89b-12d3-a456-426614174000"

lora_config
object

LoRA adapter configuration. Present only for sessions running on a LoRA-enabled model resource.