Skip to content

Commit

Permalink
Add Phi 3.5 moe support for uqff
Browse files Browse the repository at this point in the history
  • Loading branch information
EricLBuehler committed Oct 16, 2024
1 parent 8fa1a0c commit ac2ab9e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mistralrs-core/src/models/phi3_5_moe.rs
Original file line number Diff line number Diff line change
Expand Up @@ -749,6 +749,7 @@ impl IsqModel for Model {
uvb_l
.pp("post_attention_layernorm")
.add(&layer.post_attention_layernorm);
uvb_l.pp("block_sparse_moe").pp("gate").add(&layer.mlp.gate);
}

uvb.to_safetensors()
Expand All @@ -767,6 +768,7 @@ impl IsqModel for Model {
uvb_l
.pp("post_attention_layernorm")
.add(&layer.post_attention_layernorm);
uvb_l.pp("block_sparse_moe").pp("gate").add(&layer.mlp.gate);

let uvb_attn = uvb_l.pp("self_attn");
uvb_attn.pp("q_proj").add(&layer.self_attn.q_proj);
Expand Down

0 comments on commit ac2ab9e

Please sign in to comment.