mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-11-22 08:07:56 +01:00
Simplify a function
This commit is contained in:
parent
ffd102e5c0
commit
0b458bf82d
@ -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)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user