mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2025-06-07 14:17:09 -04:00
Merge remote-tracking branch 'refs/remotes/origin/dev' into dev
This commit is contained in:
commit
760b4dd115
1 changed files with 7 additions and 5 deletions
|
@ -310,11 +310,13 @@ if args.api or args.public_api:
|
||||||
add_extension('openai', last=True)
|
add_extension('openai', last=True)
|
||||||
|
|
||||||
# Load model-specific settings
|
# Load model-specific settings
|
||||||
with Path(f'{args.model_dir}/config.yaml') as p:
|
p = Path(f'{args.model_dir}/config.yaml')
|
||||||
if p.exists():
|
if p.exists():
|
||||||
model_config = yaml.safe_load(open(p, 'r').read())
|
model_config = yaml.safe_load(open(p, 'r').read())
|
||||||
else:
|
else:
|
||||||
model_config = {}
|
model_config = {}
|
||||||
|
del p
|
||||||
|
|
||||||
|
|
||||||
# Load custom model-specific settings
|
# Load custom model-specific settings
|
||||||
user_config = load_user_config()
|
user_config = load_user_config()
|
||||||
|
|
Loading…
Add table
Reference in a new issue