mirror of
https://github.com/ml-explore/mlx-examples.git
synced 2025-09-01 04:14:38 +08:00
Add support for phi-3 (#712)
* Add phi-3 modelling * fix rope scaling warning * add tests and update tuner utils * update name and remove sanitize * fix lora
This commit is contained in:
@@ -86,6 +86,8 @@ def linear_to_lora_layers(
|
||||
keys.add("mlp.shared_expert_gate")
|
||||
elif model.model_type == "olmo":
|
||||
keys = set(["att_proj"])
|
||||
elif model.model_type == "phi3":
|
||||
keys = set(["self_attn.qkv_proj"])
|
||||
elif model.model_type == "phi-msft":
|
||||
keys = set(["mixer.Wqkv", "moe.gate"])
|
||||
elif model.model_type == "dbrx":
|
||||
|
Reference in New Issue
Block a user