Skip to content

Commit a14928f

Browse files
committed
add jumbo to maelm.
1 parent 3ed3a1f commit a14928f

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

barcodebert/pretraining.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff 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",

0 commit comments

Comments
 (0)