mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-11-21 23:57:58 +01:00
Minor metadata bug fix
This commit is contained in:
parent
92691ee626
commit
306d764ff6
@ -91,9 +91,9 @@ def create_event_handlers():
|
||||
|
||||
|
||||
def get_truncation_length():
|
||||
if shared.args.max_seq_len != shared.args_defaults.max_seq_len:
|
||||
if 'max_seq_len' in shared.provided_arguments:
|
||||
return shared.args.max_seq_len
|
||||
if shared.args.n_ctx != shared.args_defaults.n_ctx:
|
||||
elif 'n_ctx' in shared.provided_arguments:
|
||||
return shared.args.n_ctx
|
||||
else:
|
||||
return shared.settings['truncation_length']
|
||||
|
Loading…
Reference in New Issue
Block a user