/v1/finetuning/finetuned-models/{id}Returns a fine-tuned model by ID.Retrieve a fine-tuned model by its ID.
Parameters
idstringpathrequiredThe fine-tuned model ID.
X-Client-NamestringheaderThe name of the project that is making the request.
Responses
Response to a request to get a fine-tuned model.
finetuned_modelobjectThis resource represents a fine-tuned model.
Show child attributes
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.
{
"finetuned_model": {
"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"
}
}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"
}