Skip to main content
Cohere

Search documentation

Type to search this documentation.

Retrieve training metrics for fine-tuned models.

GET/v1/finetuning/finetuned-models/{finetuned_model_id}/training-step-metricsRetrieve training metrics for fine-tuned models.

Returns a list of metrics measured during the training of a fine-tuned model. The metrics are ordered by step number, with the most recent step first. The list can be paginated using page_size and page_token parameters.

Parameters

finetuned_model_idstringpathrequired

The parent fine-tuned model ID.

page_sizeinteger · int32query

Maximum number of results to be returned by the server. If 0, defaults to 50.

page_tokenstringquery

Request a specific page of the list results.

X-Client-Namestringheader

The name of the project that is making the request.

Responses

200A successful response.application/json
objectdeprecatedListTrainingStepMetricsResponse

Response to a request to list training-step metrics of a fine-tuned model.

next_page_tokenstring

Pagination token to retrieve the next page of results. If the value is "", it means no further results for the request.

step_metricsarray of object

The metrics for each step the evaluation was run on.

Show child attributes
Show array items

The evaluation metrics at a given step of the training of a fine-tuned model.

created_atstring · date-time

Creation timestamp.

metricsobject

Map of names and values for each evaluation metrics.

step_numberinteger · int32

Step number.

Example response
{
  "step_metrics": [
    {
      "created_at": "2024-01-17T20:24:26.952802658Z",
      "metrics": {
        "accuracy": 0.4557601809501648,
        "cross_entropy": 4.264331340789795,
        "generation_accuracy": 0.4557601809501648,
        "generation_cross_entropy": 4.264331340789795,
        "step": 0
      }
    },
    {
      "created_at": "2024-01-17T20:25:19.331940174Z",
      "metrics": {
        "accuracy": 0.7393720149993896,
        "cross_entropy": 0.7702581286430359,
        "generation_accuracy": 0.7393720149993896,
        "generation_cross_entropy": 0.7702581286430359,
        "step": 9
      },
      "step_number": 9
    }
  ]
}
400Bad Requestapplication/json
objectdeprecatedError

Error is the response for any unsuccessful event.

messagestring

A developer-facing error message.

Example response
{
  "message": "string"
}
401Unauthorizedapplication/json
objectdeprecatedError

Error is the response for any unsuccessful event.

messagestring

A developer-facing error message.

Example response
{
  "message": "string"
}
403Forbiddenapplication/json
objectdeprecatedError

Error is the response for any unsuccessful event.

messagestring

A developer-facing error message.

Example response
{
  "message": "string"
}
404Not Foundapplication/json
objectdeprecatedError

Error is the response for any unsuccessful event.

messagestring

A developer-facing error message.

Example response
{
  "message": "string"
}
500Internal Server Errorapplication/json
objectdeprecatedError

Error is the response for any unsuccessful event.

messagestring

A developer-facing error message.

Example response
{
  "message": "string"
}
503Status Service Unavailableapplication/json
objectdeprecatedError

Error is the response for any unsuccessful event.

messagestring

A developer-facing error message.

Example response
{
  "message": "string"
}
Documentation menu