Remove unnecessary shared.previous_model_name variable

This commit is contained in:
oobabooga 2024-07-28 18:35:11 -07:00
parent addcb52c56
commit 9dcff21da9
4 changed files with 4 additions and 6 deletions

View file

@ -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()