File tree Expand file tree Collapse file tree 3 files changed +4
-0
lines changed Expand file tree Collapse file tree 3 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -132,6 +132,7 @@ def __init__(
132
132
self .eos_tokens_lens : int = 2
133
133
self .lm_head_fp32 : bool = False
134
134
self .model_format = "auto"
135
+ self .num_nextn_predict_layers = 0
135
136
for key , value in args .items ():
136
137
if hasattr (self , key ):
137
138
setattr (self , key , value )
Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ class MultimodalRegistry:
24
24
"Ernie4_5_VLMoeForConditionalGeneration" ,
25
25
"Ernie5MoeForCausalLM" ,
26
26
"Qwen2_5_VLForConditionalGeneration" ,
27
+ "Ernie5ForCausalLM" ,
27
28
}
28
29
29
30
@classmethod
Original file line number Diff line number Diff line change @@ -61,6 +61,7 @@ def __init__(
61
61
local_rank : int = 0 ,
62
62
moba_attention_config : str = None ,
63
63
data_parallel_size : int = 1 ,
64
+ num_nextn_predict_layers : int = 0 ,
64
65
):
65
66
# Required parameters
66
67
self .model = model_name_or_path
@@ -107,6 +108,7 @@ def __init__(
107
108
self .early_stop_config = early_stop_config
108
109
self .ips = None
109
110
self .moba_attention_config = moba_attention_config
111
+ self .num_nextn_predict_layers = num_nextn_predict_layers
110
112
111
113
def __str__ (self ):
112
114
return "\n " .join (f"{ k } : { v } " for k , v in self .__dict__ .items ())
You can’t perform that action at this time.
0 commit comments