Check Training & Inference Status

Prev Next

Before submitting an inference request for both text classification and text clustering, trainingStatus and inferenceStatus must be validated.

  • Confirm that the training process has successfully concluded -> trainingStatus: completed
  • Ensure that the inference model is in an operational state -> inferenceStatus: running

The inferenceStatus can take three different values:

  1. Pending
  2. Running
  3. Null (Training is not done yet)


For models whose training is initiated via the API, the "Check Training & Inference Status" request serves as the trigger for publishing of the trained model. This publication process subsequently enables inference on the trained model.


Token Endpoint:

Deprecation Notice

The following URL for checking training & inference status will be deprecated starting January 1, 2025:

{{baseUrl}}/sestekai-api/api/app/external-trainings/:modelId/progress

Please use the external URL for checking training & inference status provided below.


URL: {{baseUrl}}/sestekai-api/api/external/trainings/:modelId/progress
HTTP Method: GET
Content-Type: none


The access token acquired for the training must be included in the request header.


Here's an example of a request:

curl --location '{{baseUrl}}/sestekai-api/api/external/trainings/:modelId/progress' \
--header 'Authorization: Bearer <token>'


Expected Response:

{
  "percent": 100
  "trainingStatus": "Completed"
  "inferenceStatus": "Running"
}


Potential training statuses that can be obtained for the training via external api:

Training Status Description
Initialized Initial creation of the experiment.
PendingTraining Train pod is being created in Kubernetes. Upon successful initiation, it transitions to DatasetUploading.
DatasetUploading Dataset files are starting to be uploaded.
DataProcessing Processing data once the files are successfully uploaded.
TrainingStarted Confirms the initiation of the training process.
Training Ongoing status of the training process.
Trained Completion of the training process
ModelUploading Initiation of uploading the trained model to Minio
Completed Successful conclusion of all training stages. The associated Train pod is then terminated.
Failed Occurrence of an error within the Train pod (AI module)