torchlight-phi4-mini-lora / mlx /adapter_config.json
samadpls's picture
Add the LoRA adapter in PEFT and mlx-lm formats
f4e45ca verified
Raw History Blame Contribute Delete
1.14 kB
{
"adapter_path": "data/train/phi4-mini/adapters",
"batch_size": 2,
"clear_cache_threshold": 0,
"config": "data/train/phi4-mini/lora.yaml",
"data": "data/train/phi4-mini/data",
"fine_tune_type": "lora",
"grad_accumulation_steps": 4,
"grad_checkpoint": true,
"iters": 3459,
"learning_rate": 0.0002,
"lora_parameters": {
"rank": 16,
"scale": 2.0,
"dropout": 0.0
},
"lr_schedule": {
"name": "cosine_decay",
"warmup": 43,
"arguments": [
0.0002,
821,
0.0
]
},
"mask_prompt": true,
"max_seq_length": 4096,
"model": "microsoft/Phi-4-mini-instruct",
"num_layers": 16,
"optimizer": "adamw",
"optimizer_config": {
"adamw": {
"weight_decay": 0.01
}
},
"project_name": null,
"report_to": null,
"resume_adapter_file": null,
"save_every": 1000,
"seed": 0,
"steps_per_eval": 1000,
"steps_per_report": 10,
"test": false,
"test_batches": 500,
"train": true,
"trust_remote_code": false,
"val_batches": -1
}