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_fieldsmodel_configConfiguration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
model_extraGet extra fields set during validation.
model_fieldsmodel_fields_setReturns the set of fields that have been explicitly set on this model instance.
job_idThe unique identifier for the training job.
statusThe current status of the training job.
configThe configuration for the training job.
new_model_nameThe name of the model that will be created after training is complete.
error_messageAn error message if the job has failed, otherwise an empty string.
Methods