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',
'CortexFineTuningWorkflow_f45b452d-1672-44fa-8516-d4cf772b16db'
);
Successful job output at various stages:
{"id":"CortexFineTuningWorkflow_6556e15c-8f12-4d94-8cb0-87e6f2fd2299","progress":0.0,"status":"IN_PROGRESS"}
{"id":"CortexFineTuningWorkflow_6556e15c-8f12-4d94-8cb0-87e6f2fd2299","progress":0.333,"status":"IN_PROGRESS"}
{
"base_model":"mistral-7b",
"created_on":1717004388348,
"finished_on":1717004691577,
"id":"CortexFineTuningWorkflow_6556e15c-8f12-4d94-8cb0-87e6f2fd2299",
"model":"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":""
}