mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2026-04-05 06:35:15 +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
|
|
@ -370,7 +370,6 @@ def clear_torch_cache():
|
|||
|
||||
def unload_model(keep_model_name=False):
|
||||
shared.model = shared.tokenizer = None
|
||||
shared.previous_model_name = shared.model_name
|
||||
shared.lora_names = []
|
||||
shared.model_dirty_from_training = False
|
||||
clear_torch_cache()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue