Fix bug with /internal/model/load (#4549)
Update shared.model_name after loading model through API call
This commit is contained in:
parent
2af7e382b1
commit
6a7cd01ebf
1 changed files with 2 additions and 1 deletions
|
@ -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:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue