mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2026-04-09 08:33:41 +00:00
Remove obsolete models/config.yaml and related code
This commit is contained in:
parent
f48a2b79d0
commit
807be11832
7 changed files with 4 additions and 228 deletions
|
|
@ -23,14 +23,9 @@ def get_fallback_settings():
|
|||
|
||||
def get_model_metadata(model):
|
||||
model_path = resolve_model_path(model)
|
||||
model_settings = {}
|
||||
|
||||
# Get settings from user_data/models/config.yaml and user_data/models/config-user.yaml
|
||||
settings = shared.model_config
|
||||
for pat in settings:
|
||||
if re.match(pat.lower(), Path(model).name.lower()):
|
||||
for k in settings[pat]:
|
||||
model_settings[k] = settings[pat][k]
|
||||
# Fallback settings
|
||||
model_settings = get_fallback_settings()
|
||||
|
||||
path = model_path / 'config.json'
|
||||
if path.exists():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue