curl --request POST \
--url https://api.together.xyz/v1/fine-tunes \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"training_file": "<string>",
"model": "<string>",
"n_epochs": 1,
"n_checkpoints": 1,
"batch_size": 32,
"learning_rate": 0.00001,
"suffix": "<string>",
"wandb_api_key": "<string>"
}'
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"training_file": "<string>",
"validation_file": "<string>",
"model": "<string>",
"model_output_name": "<string>",
"model_output_path": "<string>",
"TrainingFileNumLines": 123,
"TrainingFileSize": 123,
"created_at": "<string>",
"updated_at": "<string>",
"n_epochs": 123,
"n_checkpoints": 123,
"batch_size": 123,
"learning_rate": 123,
"eval_steps": 123,
"lora": true,
"lora_r": 123,
"lora_alpha": 123,
"lora_dropout": 123,
"status": "pending",
"job_id": "<string>",
"events": [
{
"object": "FinetuneEvent",
"created_at": "<string>",
"level": "info",
"message": "<string>",
"type": "job_pending",
"param_count": 123,
"token_count": 123,
"wandb_url": "<string>",
"hash": "<string>"
}
],
"token_count": 123,
"param_count": 123,
"total_price": 123,
"epochs_completed": 123,
"queue_depth": 123,
"wandb_project_name": "<string>",
"wandb_url": "<string>"
}
Use a model to create a fine-tuning job.
curl --request POST \
--url https://api.together.xyz/v1/fine-tunes \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"training_file": "<string>",
"model": "<string>",
"n_epochs": 1,
"n_checkpoints": 1,
"batch_size": 32,
"learning_rate": 0.00001,
"suffix": "<string>",
"wandb_api_key": "<string>"
}'
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"training_file": "<string>",
"validation_file": "<string>",
"model": "<string>",
"model_output_name": "<string>",
"model_output_path": "<string>",
"TrainingFileNumLines": 123,
"TrainingFileSize": 123,
"created_at": "<string>",
"updated_at": "<string>",
"n_epochs": 123,
"n_checkpoints": 123,
"batch_size": 123,
"learning_rate": 123,
"eval_steps": 123,
"lora": true,
"lora_r": 123,
"lora_alpha": 123,
"lora_dropout": 123,
"status": "pending",
"job_id": "<string>",
"events": [
{
"object": "FinetuneEvent",
"created_at": "<string>",
"level": "info",
"message": "<string>",
"type": "job_pending",
"param_count": 123,
"token_count": 123,
"wandb_url": "<string>",
"hash": "<string>"
}
],
"token_count": 123,
"param_count": 123,
"total_price": 123,
"epochs_completed": 123,
"queue_depth": 123,
"wandb_project_name": "<string>",
"wandb_url": "<string>"
}
Fine-tuning job initiated successfully
The response is of type object
.