Fix bug with /internal/model/load (#4549)

Update shared.model_name after loading model through API call
This commit is contained in:
GuizzyQC 2023-11-09 22:16:38 -05:00 committed by GitHub
parent 2af7e382b1
commit 6a7cd01ebf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -55,6 +55,7 @@ def _load_model(data):
setattr(shared.args, k, args[k]) setattr(shared.args, k, args[k])
shared.model, shared.tokenizer = load_model(model_name) shared.model, shared.tokenizer = load_model(model_name)
shared.model_name = model_name
# Update shared.settings with custom generation defaults # Update shared.settings with custom generation defaults
if settings: if settings: