Recommend hyperparameters
POST/api/v1/autoscientist/recommend-hyperparams
Returns platform-default hyperparameters sized to a specific model and your dataset's effective training size (rows + any augmentation you plan to add). Pure computation — nothing is launched. POST /autoscientist applies these optimized values automatically when hyperparams is omitted; only pass overrides when strictly necessary.
Body ParametersJSON
dataset_id: string
The dataset the hyperparameters are sized for. Must be a dataset you own that has finished processing.
model: string
Base model id from GET /training-models to tune for. Required — the recommendation is sized to this model and your dataset.
Recommend hyperparameters
curl https://api.prod.adaptionlabs.ai/api/v1/autoscientist/recommend-hyperparams \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer $ADAPTION_API_KEY" \
-d '{
"dataset_id": "dataset_id",
"model": "model"
}'{
"hyperparams": {
"base_model_size": "8B",
"batch_size": "max",
"learning_rate": 0.00005,
"lora_alpha": 0,
"lora_dropout": 0,
"lora_r": 8,
"lora_trainable_modules": "q_proj,v_proj",
"lr_scheduler_type": "linear",
"max_grad_norm": 2,
"min_lr_ratio": 0.1,
"n_epochs": 1,
"n_evals": 5,
"scheduler_num_cycles": 0.5,
"train_on_inputs": true,
"training_type": "lora",
"warmup_ratio": 0.03,
"weight_decay": 0
}
}Returns Examples
{
"hyperparams": {
"base_model_size": "8B",
"batch_size": "max",
"learning_rate": 0.00005,
"lora_alpha": 0,
"lora_dropout": 0,
"lora_r": 8,
"lora_trainable_modules": "q_proj,v_proj",
"lr_scheduler_type": "linear",
"max_grad_norm": 2,
"min_lr_ratio": 0.1,
"n_epochs": 1,
"n_evals": 5,
"scheduler_num_cycles": 0.5,
"train_on_inputs": true,
"training_type": "lora",
"warmup_ratio": 0.03,
"weight_decay": 0
}
}