curl --request POST \
--url http://localhost:8080/v1/repo/{repo_name}/bakes \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"template": "<string>",
"bake_name": "<string>",
"overrides": {
"model_name": "<string>",
"total_trajectories": 123,
"seed": 123,
"datasets": [
{
"target": "<string>",
"weight": 1
}
],
"type": "<string>",
"micro_batch_size": 123,
"gradient_accumulation_steps": 123,
"epochs": 123,
"model": {
"type": "<string>",
"parent_model_name": "<string>",
"baked_adapter_config": {
"r": 123,
"lora_alpha": 123,
"target_modules": "<string>",
"lora_dropout": 123,
"bias": "<string>"
},
"dtype": "<string>",
"save_name": "<string>",
"attn_implementation": "<string>",
"disable_activation_checkpoint": false,
"peft_config": {},
"student_model_path": "<string>"
},
"data": {
"type": "<string>",
"sources": [
{
"type": "<string>",
"name_or_path": "<string>",
"split": "<string>",
"max_samples": 123,
"sample_ratio": 123,
"sample_count": 123,
"sample_seed": 42,
"process": true
}
],
"eval_sources": [
{
"type": "<string>",
"name_or_path": "<string>",
"split": "<string>",
"max_samples": 123,
"sample_ratio": 123,
"sample_count": 123,
"sample_seed": 42,
"process": true
}
],
"beta": 123,
"temperature": 123,
"max_length": 123,
"train_eval_split": [
123
],
"cache_dir": "<string>",
"dl_num_workers": 123,
"num_proc": 123,
"seed": 123,
"use_data_cache": true,
"cache_fs_type": "<string>"
},
"optimizer": {
"type": "<string>",
"learning_rate": 123,
"weight_decay": 1,
"betas": {
"[0]": 123,
"[1]": 123
}
},
"scheduler": {
"type": "<string>",
"lr": 123
},
"wandb": {
"enable": true,
"project": "<string>",
"name": "<string>",
"entity": "<string>"
},
"deepspeed": {
"zero_optimization": {
"stage": 123
}
},
"checkpoint": [
{
"type": "<string>",
"output_dir": "<string>",
"enabled": true,
"auto_resume": false,
"save_every_n_steps": 1,
"save_every_n_epochs": 1,
"save_end_of_training": false
}
],
"train_log_iter_interval": 123,
"eval_interval": 123,
"activation_checkpoint_cpu_offload": true
}
}
'