Create fine-tuning job

POST {{baseUrl}}/fine_tuning/jobs

Creates a job that fine-tunes a specified model from a given dataset.

Models eligble for fine tuning are: ada, babbage, curie, or davinci

The dataset (training file) should be formatted like below (JSONL)

{"prompt": "<prompt>", "completion": "<ideal generated text>"}
{"prompt": "<prompt>", "completion": "<ideal generated text>"}
{"prompt": "<prompt>", "completion": "<ideal generated text>"}

For example:

{"prompt": "Why did the chicken cross the road?", "completion": "Why not?"}
{"prompt": "Why did the chicken use AI?", "completion": "To get to the other side"}

Note that after a job completes it may take several minutes for your model to become ready to handle requests.

Request Body

{"training_file"=>"file_smgsypc2qkdury8i6bt3tevg6x", "validation_file"=>"file_ilxk82ff822x2zxfalkxffkyzb", "model"=>"meta-llama/Llama-2-13b-chat-hf"}

RESPONSES

status: Created

{&quot;result_files&quot;:[],&quot;trained_tokens&quot;:null,&quot;hyperparameters&quot;:{&quot;n_epochs&quot;:null,&quot;context_length&quot;:null},&quot;training_file&quot;:&quot;file_smgsypc2qkdury8i6bt3tevg6x&quot;,&quot;validation_file&quot;:&quot;file_ilxk82ff822x2zxfalkxffkyzb&quot;,&quot;model&quot;:&quot;meta-llama/Llama-2-13b-chat-hf&quot;,&quot;id&quot;:&quot;eftjob_zsab8ywdtku5ybraglvl1rb1nl&quot;,&quot;created_at&quot;:&quot;2024-03-17T03:37:48.468655+00:00&quot;,&quot;finished_at&quot;:null,&quot;fine_tuned_model&quot;:&quot;meta-llama/Llama-2-13b-chat-hf:bernd:Q3hyGGI&quot;,&quot;status&quot;:&quot;pending&quot;,&quot;error&quot;:null,&quot;creator_id&quot;:&quot;euser_865vj8lnbm1d3yb67wzhsc8z8n&quot;}