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