Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Veton Matoshi authored and Veton Matoshi committed Jun 6, 2023
2 parents 730998f + 1c51999 commit ce52bd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/utilities.py
Original file line number Diff line number Diff line change
@@ -489,7 +489,7 @@ def generate_command_for_experiments(**data):
# We perceived some issues with xlm-roberta-base and
if str(data["hierarchical"]).lower() == 'true':
# xlm-roberta-large. They returned a nan loss with fp16 in combination with hierarchical models
if not bool(re.search('-large', data["model_name"])):
if not bool(re.search('(-large|ZurichNLP/swissbert)', data["model_name"])):
command_template += ' --fp16 --fp16_full_eval'
else:
command_template += ' --fp16 '

0 comments on commit ce52bd3

Please sign in to comment.