Simplify a function

This commit is contained in:
oobabooga 2023-04-07 21:37:41 -03:00
parent ffd102e5c0
commit 0b458bf82d

View File

@ -194,8 +194,7 @@ def unload_model():
def reload_model():
shared.model = shared.tokenizer = None
clear_torch_cache()
unload_model()
shared.model, shared.tokenizer = load_model(shared.model_name)