Cleanup: set shared.model_name only once
This commit is contained in:
parent
62d59a516f
commit
2a335b8aa7
4 changed files with 3 additions and 5 deletions
|
@ -58,6 +58,7 @@ def load_model(model_name, loader=None):
|
|||
t0 = time.time()
|
||||
|
||||
shared.is_seq2seq = False
|
||||
shared.model_name = model_name
|
||||
load_func_map = {
|
||||
'Transformers': huggingface_loader,
|
||||
'AutoGPTQ': AutoGPTQ_loader,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue