mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2026-01-24 01:20:33 +01:00
Small change to the unload_model() function
This commit is contained in:
parent
c178ea02fe
commit
86c3ed3218
|
|
@ -131,6 +131,9 @@ def TensorRT_LLM_loader(model_name):
|
|||
|
||||
|
||||
def unload_model(keep_model_name=False):
|
||||
if shared.model is None:
|
||||
return
|
||||
|
||||
is_llamacpp = (shared.model.__class__.__name__ == 'LlamaServer')
|
||||
|
||||
shared.model = shared.tokenizer = None
|
||||
|
|
|
|||
Loading…
Reference in a new issue