FINETUNE ('DESCRIBE') (SNOWFLAKE.CORTEX)¶
Describes the properties of a fine-tuning job. If the job completes successfully, additional details about the job are returned, including the final model name. Use this name when using the COMPLETE (SNOWFLAKE.CORTEX) function to make an inference on your fine-tuned model.
Syntax¶
SNOWFLAKE.CORTEX.FINETUNE(
'DESCRIBE',
'<finetune_job_id>'
)
Parameters¶
'DESCRIBE'
Specifies that you want to get the properties of the provided fine-tuning job.
finetune_job_id
The ID of the fine-tuning job that was generated when you created the job.
Output¶
Column |
Type |
Description |
---|---|---|
SNOWFLAKE.CORTEX.FINETUNE |
An object containing the job status, progress and the tuning job ID. If the job status is
|
Access control requirements¶
For access requirements, see Access control requirements.
Examples¶
SELECT SNOWFLAKE.CORTEX.FINETUNE(
'DESCRIBE',
'ft_6556e15c-8f12-4d94-8cb0-87e6f2fd2299'
);
An example output for a successful job:
{
"base_model":"mistral-7b",
"created_on":1717004388348,
"finished_on":1717004691577,
"id":"ft_6556e15c-8f12-4d94-8cb0-87e6f2fd2299",
"model":"mydb.myschema.my_tuned_model",
"progress":1.0,
"status":"SUCCESS",
"training_data":"SELECT prompt, completion FROM train",
"trained_tokens":2670734,
"training_result":{"validation_loss":1.0138969421386719,"training_loss":0.6477728401547047},
"validation_data":"SELECT prompt, completion FROM validation",
"options":{"max_epochs":3}
}