/v1/finetuning/finetuned-modelsLists fine-tuned models.Returns a list of fine-tuned models that the user has access to.
Parameters
page_sizeinteger · int32queryMaximum number of results to be returned by the server. If 0, defaults to 50.
page_tokenstringqueryRequest a specific page of the list results.
order_bystringqueryComma separated list of fields. For example: "created_at,name". The default sorting order is ascending. To specify descending order for a field, append " desc" to the field name. For example: "created_at desc,name". Supported sorting fields: - created_at (default)
X-Client-NamestringheaderThe name of the project that is making the request.
Responses
Response to a request to list fine-tuned models.
finetuned_modelsarray of objectList of fine-tuned models matching the request.
Show child attributes
Show array items
This resource represents a fine-tuned model.
completed_atstring · date-timeread-only. Timestamp for the completed fine-tuning.
created_atstring · date-timeread-only. Creation timestamp.
creator_idstringread-only. User ID of the creator.
idstringread-only. FinetunedModel ID.
last_usedstring · date-timeread-only. Deprecated: Timestamp for the latest request to this fine-tuned model.
namestringrequiredFinetunedModel name (e.g. `foobar`).
organization_idstringread-only. Organization ID.
settingsobjectrequiredThe configuration used for fine-tuning.
Show child attributes
base_modelobjectrequiredThe base model used for fine-tuning.
Show child attributes
base_typestringrequiredThe possible types of fine-tuned models. - BASE_TYPE_UNSPECIFIED: Unspecified model. - BASE_TYPE_GENERATIVE: Deprecated: Generative model. - BASE_TYPE_CLASSIFICATION: Classification model. - BASE_TYPE_RERANK: Rerank model. - BASE_TYPE_CHAT: Chat model.
namestringThe name of the base model.
strategystringThe possible strategy used to serve a fine-tuned models. - STRATEGY_UNSPECIFIED: Unspecified strategy. - STRATEGY_VANILLA: Deprecated: Serve the fine-tuned model on a dedicated GPU. - STRATEGY_TFEW: Deprecated: Serve the fine-tuned model on a shared GPU.
versionstringread-only. The version of the base model.
dataset_idstringrequiredThe data used for training and evaluating the fine-tuned model.
hyperparametersobjectThe fine-tuning hyperparameters.
Show child attributes
early_stopping_patienceinteger · int32Stops training if the loss metric does not improve beyond the value of `early_stopping_threshold` after this many times of evaluation.
early_stopping_thresholdnumber · doubleHow much the loss must improve to prevent early stopping.
learning_ratenumber · doubleThe learning rate to be used during training.
lora_alphainteger · int32Controls the scaling factor for LoRA updates. Higher values make the updates more impactful.
lora_rankinteger · int32Specifies the rank for low-rank matrices. Lower ranks reduce parameters but may limit model flexibility.
lora_target_modulesstringThe possible combinations of LoRA modules to target. - LORA_TARGET_MODULES_UNSPECIFIED: Unspecified LoRA target modules. - LORA_TARGET_MODULES_QV: LoRA adapts the query and value matrices in transformer attention layers. - LORA_TARGET_MODULES_QKVO: LoRA adapts query, key, value, and output matrices in attention layers. - LORA_TARGET_MODULES_QKVO_FFN: LoRA adapts attention projection matrices and feed-forward networks (FFN).
train_batch_sizeinteger · int32The batch size is the number of training examples included in a single training pass.
train_epochsinteger · int32The number of epochs to train for.
multi_labelbooleanread-only. Whether the model is single-label or multi-label (only for classification).
wandbobjectThe Weights & Biases configuration.
Show child attributes
api_keystringrequiredThe WandB API key to be used during training.
entitystringThe WandB entity name to be used during training.
projectstringrequiredThe WandB project name to be used during training.
statusstringThe possible stages of a fine-tuned model life-cycle. - STATUS_UNSPECIFIED: Unspecified status. - STATUS_FINETUNING: The fine-tuned model is being fine-tuned. - STATUS_DEPLOYING_API: Deprecated: The fine-tuned model is being deployed. - STATUS_READY: The fine-tuned model is ready to receive requests. - STATUS_FAILED: The fine-tuned model failed. - STATUS_DELETED: The fine-tuned model was deleted. - STATUS_TEMPORARILY_OFFLINE: Deprecated: The fine-tuned model is temporarily unavailable. - STATUS_PAUSED: Deprecated: The fine-tuned model is paused (Vanilla only). - STATUS_QUEUED: The fine-tuned model is queued for training.
updated_atstring · date-timeread-only. Latest update timestamp.
next_page_tokenstringPagination token to retrieve the next page of results. If the value is "", it means no further results for the request.
total_sizeinteger · int32Total count of results.
{
"finetuned_models": [
{
"completed_at": "2024-01-17T20:31:05.047066Z",
"created_at": "2024-01-17T20:11:42.907112Z",
"creator_id": "7a317d97-4d05-427d-9396-f31b9fb92c55",
"id": "fee37446-7fc7-42f9-a026-c6ba2fcc422d",
"name": "chat-ft",
"organization_id": "6bdca3d5-3eae-4de0-ac34-786d8063b7ee",
"settings": {
"base_model": {
"base_type": "BASE_TYPE_CHAT",
"name": "medium",
"strategy": "STRATEGY_TFEW",
"version": "14.2.0"
},
"dataset_id": "my-dataset-d701tr",
"hyperparameters": {
"early_stopping_patience": 6,
"early_stopping_threshold": 0.01,
"learning_rate": 0.01,
"train_batch_size": 16,
"train_epochs": 1
}
},
"status": "STATUS_READY",
"updated_at": "2024-01-17T20:31:06.464015Z"
},
{
"completed_at": "2024-01-17T20:42:55.821051Z",
"created_at": "2024-01-17T20:17:16.997608Z",
"creator_id": "7a317d97-4d05-427d-9396-f31b9fb92c55",
"id": "9d927c5e-7598-4772-98b7-cdf2014e8874",
"name": "rerank-ft",
"organization_id": "6bdca3d5-3eae-4de0-ac34-786d8063b7ee",
"settings": {
"base_model": {
"base_type": "BASE_TYPE_RERANK",
"name": "english",
"strategy": "STRATEGY_VANILLA",
"version": "2.0.0"
},
"dataset_id": "rerank-dataset-d820xf"
},
"status": "STATUS_READY",
"updated_at": "2024-01-17T20:50:11.148769Z"
}
]
}Error is the response for any unsuccessful event.
messagestringA developer-facing error message.
{
"message": "string"
}Error is the response for any unsuccessful event.
messagestringA developer-facing error message.
{
"message": "string"
}Error is the response for any unsuccessful event.
messagestringA developer-facing error message.
{
"message": "string"
}Error is the response for any unsuccessful event.
messagestringA developer-facing error message.
{
"message": "string"
}Error is the response for any unsuccessful event.
messagestringA developer-facing error message.
{
"message": "string"
}Error is the response for any unsuccessful event.
messagestringA developer-facing error message.
{
"message": "string"
}