Skip to content

Commit

Permalink
fix qwen2moe (#271)
Browse files Browse the repository at this point in the history
  • Loading branch information
MercuryB1 authored Dec 19, 2024
1 parent e8a7345 commit 167365f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions llmc/models/qwen2moe.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ def get_subsets_in_block(self, block):
'mlp.shared_expert.gate_proj': block.mlp.shared_expert.gate_proj, # noqa
'mlp.shared_expert.up_proj': block.mlp.shared_expert.up_proj, # noqa
'mlp.gate': block.mlp.gate,
'mlp.shared_expert_gate': block.mlp.shared_expert_gate,
},
'prev_op': [block.post_attention_layernorm],
'input': ['mlp'],
Expand Down

0 comments on commit 167365f

Please sign in to comment.