mirror of
https://github.com/ml-explore/mlx-examples.git
synced 2025-09-01 04:14:38 +08:00
fix lora for openelm (#773)
This commit is contained in:
@@ -87,7 +87,9 @@ def linear_to_lora_layers(
|
||||
keys.add("mlp.shared_expert_gate")
|
||||
elif model.model_type == "olmo":
|
||||
keys = set(["att_proj"])
|
||||
elif model.model_type in ["phi3", "openelm"]:
|
||||
elif model.model_type == "openelm":
|
||||
keys = set(["attn.qkv_proj"])
|
||||
elif model.model_type == "phi3":
|
||||
keys = set(["self_attn.qkv_proj"])
|
||||
elif model.model_type == "phi-msft":
|
||||
keys = set(["mixer.Wqkv", "moe.gate"])
|
||||
|
Reference in New Issue
Block a user