nip.language_model_server.types.TrainingJobInfo

Contents

nip.language_model_server.types.TrainingJobInfo#

class nip.language_model_server.types.TrainingJobInfo(*, job_id: str, status: Literal['pending', 'starting', 'running', 'succeeded', 'crashed', 'interrupted', 'cancelled', 'unknown'], config: LmTrainingConfig, new_model_name: str, error_message: str = '')[source]#

A data structure representing information about a training job.

Attributes

__fields_set__

model_computed_fields

model_config

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

model_extra

Get extra fields set during validation.

model_fields

model_fields_set

Returns the set of fields that have been explicitly set on this model instance.

job_id

The unique identifier for the training job.

status

The current status of the training job.

config

The configuration for the training job.

new_model_name

The name of the model that will be created after training is complete.

error_message

An error message if the job has failed, otherwise an empty string.

Methods