Best fine-tune launch config for re-launch parity
datasets.get_best_launch_config(strdataset_id) -> DatasetGetBestLaunchConfigResponse
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.
Best fine-tune launch config for re-launch parity
import os
from adaption import Adaption
client = Adaption(
api_key=os.environ.get("ADAPTION_API_KEY"), # This is the default and can be omitted
)
response = client.datasets.get_best_launch_config(
"dataset_id",
)
print(response.best_job_config){
"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"
}
}
}