Skip to content
SupportLogin

Best fine-tune launch config for re-launch parity

GET/api/v1/datasets/{dataset_id}/finetune/best-launch-config

Returns the persisted launch snapshot for the winning AutoScientist job (terminal experiment with best_finetune_job_id) or the newest succeeded most recent succeeded standalone job when no experiment exists. Matches the launch payload plus original_model_name and persisted trained_model_name (output label / suffix). Use it to prefill a re-launch instead of reading config from GET /datasets/{dataset_id} or the list.

Path ParametersExpand Collapse
dataset_id: string
ReturnsExpand Collapse
best_job_config: object { finetune_job_id, training_experiment_id, original_model_name, 5 more }

Launch-parity snapshot for the experiment best job (terminal experiment with best_finetune_job_id) or, when no experiment exists, the newest succeeded standalone job (training_experiment_id null). Null while an experiment is non-terminal, when no best job was chosen yet, or when no qualifying job exists.

finetune_job_id: string

Fine-tune job whose config is shown (experiment best or standalone).

formatuuid
training_experiment_id: unknown

Training experiment when this snapshot is the AutoScientist best job; null for a standalone job.

formatuuid
original_model_name: string

Base model id the job was launched with.

trained_model_name: string

Output label / suffix for the trained model. Taken from the value recorded at launch when present; otherwise derived from the current dataset name, in which case it can differ from the label the job was submitted with if the dataset was renamed. Null only when no label was recorded and the dataset is unavailable.

training_method: "sft" or "dpo"
One of the following:
"sft"
"dpo"
training_type: "lora" or "full"
One of the following:
"lora"
"full"
data_format: "chat" or "instruction" or "preference"
One of the following:
"chat"
"instruction"
"preference"
hyperparams: map[unknown]

Hyperparameters the job was launched with.

Best fine-tune launch config for re-launch parity

curl https://api.prod.adaptionlabs.ai/api/v1/datasets/$DATASET_ID/finetune/best-launch-config \
    -H "Authorization: Bearer $ADAPTION_API_KEY"
{
  "best_job_config": {
    "finetune_job_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
    "training_experiment_id": {},
    "original_model_name": "original_model_name",
    "trained_model_name": "trained_model_name",
    "training_method": "sft",
    "training_type": "lora",
    "data_format": "chat",
    "hyperparams": {
      "foo": "bar"
    }
  }
}
Returns Examples
{
  "best_job_config": {
    "finetune_job_id": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
    "training_experiment_id": {},
    "original_model_name": "original_model_name",
    "trained_model_name": "trained_model_name",
    "training_method": "sft",
    "training_type": "lora",
    "data_format": "chat",
    "hyperparams": {
      "foo": "bar"
    }
  }
}