Skip to content

Commit 64a287f

Browse files
author
Yunfan Shao
authored
Update for version 2.0
1 parent 7de2d2f commit 64a287f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

finetune/modeling_cpt.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -828,6 +828,7 @@ def __init__(self, config: CPTConfig):
828828
intermediate_size=config.encoder_ffn_dim,
829829
hidden_dropout_prob=config.activation_dropout,
830830
attention_probs_dropout_prob=config.attention_dropout,
831+
max_position_embeddings=config.max_position_embeddings,
831832
)
832833
config.vocab_size = encoder_config.vocab_size
833834
self.encoder = BertModel(encoder_config, add_pooling_layer=False)

0 commit comments

Comments
 (0)