torchlight-phi4-mini-lora / adapter_config.json
samadpls's picture
Add the LoRA adapter in PEFT and mlx-lm formats
f4e45ca verified
Raw History Blame Contribute Delete
2.81 kB
{
"peft_type": "LORA",
"task_type": "CAUSAL_LM",
"base_model_name_or_path": "microsoft/Phi-4-mini-instruct",
"r": 16,
"lora_alpha": 32.0,
"lora_dropout": 0.0,
"bias": "none",
"fan_in_fan_out": false,
"inference_mode": true,
"target_modules": [
"model.layers.16.mlp.down_proj",
"model.layers.16.mlp.gate_up_proj",
"model.layers.16.self_attn.o_proj",
"model.layers.16.self_attn.qkv_proj",
"model.layers.17.mlp.down_proj",
"model.layers.17.mlp.gate_up_proj",
"model.layers.17.self_attn.o_proj",
"model.layers.17.self_attn.qkv_proj",
"model.layers.18.mlp.down_proj",
"model.layers.18.mlp.gate_up_proj",
"model.layers.18.self_attn.o_proj",
"model.layers.18.self_attn.qkv_proj",
"model.layers.19.mlp.down_proj",
"model.layers.19.mlp.gate_up_proj",
"model.layers.19.self_attn.o_proj",
"model.layers.19.self_attn.qkv_proj",
"model.layers.20.mlp.down_proj",
"model.layers.20.mlp.gate_up_proj",
"model.layers.20.self_attn.o_proj",
"model.layers.20.self_attn.qkv_proj",
"model.layers.21.mlp.down_proj",
"model.layers.21.mlp.gate_up_proj",
"model.layers.21.self_attn.o_proj",
"model.layers.21.self_attn.qkv_proj",
"model.layers.22.mlp.down_proj",
"model.layers.22.mlp.gate_up_proj",
"model.layers.22.self_attn.o_proj",
"model.layers.22.self_attn.qkv_proj",
"model.layers.23.mlp.down_proj",
"model.layers.23.mlp.gate_up_proj",
"model.layers.23.self_attn.o_proj",
"model.layers.23.self_attn.qkv_proj",
"model.layers.24.mlp.down_proj",
"model.layers.24.mlp.gate_up_proj",
"model.layers.24.self_attn.o_proj",
"model.layers.24.self_attn.qkv_proj",
"model.layers.25.mlp.down_proj",
"model.layers.25.mlp.gate_up_proj",
"model.layers.25.self_attn.o_proj",
"model.layers.25.self_attn.qkv_proj",
"model.layers.26.mlp.down_proj",
"model.layers.26.mlp.gate_up_proj",
"model.layers.26.self_attn.o_proj",
"model.layers.26.self_attn.qkv_proj",
"model.layers.27.mlp.down_proj",
"model.layers.27.mlp.gate_up_proj",
"model.layers.27.self_attn.o_proj",
"model.layers.27.self_attn.qkv_proj",
"model.layers.28.mlp.down_proj",
"model.layers.28.mlp.gate_up_proj",
"model.layers.28.self_attn.o_proj",
"model.layers.28.self_attn.qkv_proj",
"model.layers.29.mlp.down_proj",
"model.layers.29.mlp.gate_up_proj",
"model.layers.29.self_attn.o_proj",
"model.layers.29.self_attn.qkv_proj",
"model.layers.30.mlp.down_proj",
"model.layers.30.mlp.gate_up_proj",
"model.layers.30.self_attn.o_proj",
"model.layers.30.self_attn.qkv_proj",
"model.layers.31.mlp.down_proj",
"model.layers.31.mlp.gate_up_proj",
"model.layers.31.self_attn.o_proj",
"model.layers.31.self_attn.qkv_proj"
]
}