Fine tuning
Cancel job
Cancel a currently running fine-tuning job. Returns a FinetuneResponseTruncated object.
Authorization
bearerAuth AuthorizationBearer <token>
In: header
Path Parameters
id*string
Fine-tune ID to cancel. A string that starts with ft-.
Response Body
application/json
curl -X POST "https://example.com/fine-tunes/string/cancel"{ "id": "string", "status": "pending", "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z", "started_at": "2019-08-24T14:15:22Z", "user_id": "string", "owner_address": "string", "total_price": 0, "token_count": 0, "events": [ { "object": "fine-tune-event", "created_at": "string", "level": null, "message": "string", "type": "job_pending", "param_count": 0, "token_count": 0, "total_steps": 0, "wandb_url": "string", "step": 0, "checkpoint_path": "string", "model_path": "string", "tokenized_dataset_path": "string", "early_stopping_best_step": 0, "early_stopping_best_metric_value": 0 } ], "training_file": "string", "validation_file": "string", "packing": true, "max_seq_length": 0, "model": "string", "model_output_name": "string", "suffix": "string", "n_epochs": 0, "n_evals": 0, "n_checkpoints": 0, "batch_size": 0, "training_type": { "type": "Full" }, "training_method": { "method": "sft", "train_on_inputs": "auto" }, "learning_rate": 0, "lr_scheduler": { "lr_scheduler_type": "linear", "lr_scheduler_args": { "min_lr_ratio": 0 } }, "warmup_ratio": 0, "max_grad_norm": 0, "weight_decay": 0, "random_seed": 0, "wandb_project_name": "string", "wandb_name": "string", "from_checkpoint": "string", "from_hf_model": "string", "hf_model_revision": "string", "progress": { "estimate_available": true, "seconds_remaining": 0 }, "early_stopped": true, "early_stopping_best_step": 0, "early_stopping_best_metric": 0}