mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2026-04-04 22:27:29 +00:00
Remove unnecessary shared.previous_model_name variable
This commit is contained in:
parent
addcb52c56
commit
9dcff21da9
4 changed files with 4 additions and 6 deletions
|
|
@ -13,8 +13,8 @@ global_scores = None
|
|||
|
||||
|
||||
def get_next_logits(*args, **kwargs):
|
||||
if shared.args.idle_timeout > 0 and shared.model is None and shared.previous_model_name not in [None, 'None']:
|
||||
shared.model, shared.tokenizer = load_model(shared.previous_model_name)
|
||||
if shared.args.idle_timeout > 0 and shared.model is None and shared.model_name not in [None, 'None']:
|
||||
shared.model, shared.tokenizer = load_model(shared.model_name)
|
||||
|
||||
needs_lock = not args[2] # use_samplers
|
||||
if needs_lock:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue