Skip to content

Commit

Permalink
Update for version 2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Yunfan Shao authored Dec 30, 2022
1 parent 7de2d2f commit 64a287f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions finetune/modeling_cpt.py
Original file line number Diff line number Diff line change
Expand Up @@ -828,6 +828,7 @@ def __init__(self, config: CPTConfig):
intermediate_size=config.encoder_ffn_dim,
hidden_dropout_prob=config.activation_dropout,
attention_probs_dropout_prob=config.attention_dropout,
max_position_embeddings=config.max_position_embeddings,
)
config.vocab_size = encoder_config.vocab_size
self.encoder = BertModel(encoder_config, add_pooling_layer=False)
Expand Down

0 comments on commit 64a287f

Please sign in to comment.