Skip to content

Commit

Permalink
Minor metadata bug fix (second attempt)
Browse files Browse the repository at this point in the history
  • Loading branch information
oobabooga committed Oct 27, 2023
1 parent 2d97897 commit 92b2f57
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/ui_parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,9 @@ def create_event_handlers():


def get_truncation_length():
if 'max_seq_len' in shared.provided_arguments:
if 'max_seq_len' in shared.provided_arguments or shared.args.max_seq_len != shared.args_defaults.max_seq_len:
return shared.args.max_seq_len
elif 'n_ctx' in shared.provided_arguments:
elif 'n_ctx' in shared.provided_arguments or shared.args.n_ctx != shared.args_defaults.n_ctx:
return shared.args.n_ctx
else:
return shared.settings['truncation_length']
Expand Down

0 comments on commit 92b2f57

Please sign in to comment.