Skip to content

Commit

Permalink
fixes #1
Browse files Browse the repository at this point in the history
trainable LayerNorms
  • Loading branch information
hmohebbi committed Feb 25, 2021
1 parent 8ddad14 commit 71045a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions run_tf_glue_adapter_bert.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,10 @@ def main():
for i in range(config.num_hidden_layers):
model.bert.bert.encoder.layer[i].attention.self_attention.trainable = False
model.bert.bert.encoder.layer[i].attention.dense_output.dense.trainable = False
model.bert.bert.encoder.layer[i].attention.dense_output.LayerNorm.trainable = False
#model.bert.bert.encoder.layer[i].attention.dense_output.LayerNorm.trainable = False
model.bert.bert.encoder.layer[i].intermediate.trainable = False
model.bert.bert.encoder.layer[i].bert_output.dense.trainable = False
model.bert.bert.encoder.layer[i].bert_output.LayerNorm.trainable = False
#model.bert.bert.encoder.layer[i].bert_output.LayerNorm.trainable = False


# Loss & Optimizer
Expand Down

0 comments on commit 71045a2

Please sign in to comment.