Add packed_modules_mapping for MiniMax-M2 (#19995)
This commit is contained in:
@@ -942,6 +942,18 @@ class MiniMaxM2Model(nn.Module):
|
||||
class MiniMaxM2ForCausalLM(nn.Module):
|
||||
"""MiniMax M2 model for causal language modeling."""
|
||||
|
||||
packed_modules_mapping = {
|
||||
"qkv_proj": [
|
||||
"q_proj",
|
||||
"k_proj",
|
||||
"v_proj",
|
||||
],
|
||||
"gate_up_proj": [
|
||||
"gate_proj",
|
||||
"up_proj",
|
||||
],
|
||||
}
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
config: PretrainedConfig,
|
||||
|
||||
Reference in New Issue
Block a user