File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -290,6 +290,7 @@ def print_pass(*args, **kwargs):
290290 num_labels = n_output_tokens ,
291291 output_hidden_states = True ,
292292 max_position_embeddings = max_position_embeddings ,
293+ hidden_size = config .encoder_embed_dim ,
293294 )
294295
295296 if config .arch == "maelm" :
@@ -1777,6 +1778,14 @@ def get_parser():
17771778 help = "Number of attention heads in the decoder of MAELM. Default: %(default)s" ,
17781779 )
17791780
1781+ group .add_argument (
1782+ "--encoder-embed-dim" ,
1783+ "--encoder_embed_dim" ,
1784+ type = int ,
1785+ default = 768 ,
1786+ help = "Size of the encoder embedding in the encoder of MAE-LM. Default: %(default)s" ,
1787+ )
1788+
17801789 group .add_argument (
17811790 "--decoder-embed-dim" ,
17821791 "--decoder_embed_dim" ,
You can’t perform that action at this time.
0 commit comments