Job objects¶
pretrain(), finetune(), generate(), and evaluate() each return a job object. Submit it with
run(), then inspect, download, or cancel it.
| Member | Description |
|---|---|
run(wait=True, poll_interval=30) |
Submit the job; with wait=True, block until it finishes |
cancel() |
Cancel the job |
get_logs(tail=100) |
Recent log lines |
get_metrics() |
Training metrics |
export_metrics(path) |
Save metrics as .csv or .json |
download(local_dir, include=("final",)) |
Download outputs |
checkpoints() |
List saved checkpoints |
estimated_cost_usd() |
Maximum cost: time_limit at the price of the GPU the job would run on now |
job_id, status |
Job ID and current status |
Fine-tuning jobs also provide validate(). Pretraining jobs provide estimate().
Evaluate jobs provide get_results() and export_results(path).
See status for the values run() and
get_job_status() return.