Immediately cancel a fine-tuning job
cURL
curl --request POST \ --url https://api.anyapi.ai/v1/fine_tuning/jobs/{fine_tuning_job_id}/cancel \ --header 'Authorization: Bearer <token>'
{ "id": "<string>", "object": "fine_tuning.job", "created_at": 123, "error": { "code": "<string>", "message": "<string>", "param": "<string>" }, "fine_tuned_model": "<string>", "finished_at": 123, "hyperparameters": { "batch_size": "auto", "learning_rate_multiplier": "auto", "n_epochs": "auto" }, "model": "<string>", "organization_id": "<string>", "result_files": [ "<string>" ], "status": "validating_files", "trained_tokens": 123, "training_file": "<string>", "validation_file": "<string>", "integrations": [ { "type": "wandb", "wandb": { "project": "<string>", "name": "<string>", "entity": "<string>", "tags": [ "<string>" ] } } ], "seed": 123, "estimated_finish": 123 }
Bearer token authentication. Get your API key from the dashboard.
The ID of the fine-tuning job to cancel
Successful response
The response is of type object.
object