[AMD] Fix Quark load of MiniMax-M3 MXFP4 index_qkv_proj (#37254)
This commit is contained in:
@@ -1559,7 +1559,8 @@ class MiniMaxM3SparseForCausalLM(nn.Module):
|
||||
)
|
||||
packed_modules_mapping = {
|
||||
"qkv_proj": ["q_proj", "k_proj", "v_proj"],
|
||||
"index_qkv_proj": ["index_q_proj", "index_k_proj", "index_v_proj"],
|
||||
# no index_v_proj in the M3 checkpoint
|
||||
"index_qkv_proj": ["index_q_proj", "index_k_proj"],
|
||||
"gate_up_proj": ["gate_proj", "up_proj"],
|
||||
}
|
||||
|
||||
|
||||
@@ -63,7 +63,8 @@ class MiniMaxM3SparseForConditionalGeneration(nn.Module):
|
||||
)
|
||||
packed_modules_mapping = {
|
||||
"qkv_proj": ["q_proj", "k_proj", "v_proj"],
|
||||
"index_qkv_proj": ["index_q_proj", "index_k_proj", "index_v_proj"],
|
||||
# no index_v_proj in the M3 checkpoint
|
||||
"index_qkv_proj": ["index_q_proj", "index_k_proj"],
|
||||
"gate_up_proj": ["gate_proj", "up_proj"],
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user