mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-12-24 13:28:59 +01:00
Prioritize names with the groupsize in them
This commit is contained in:
parent
f2bf1a2c9e
commit
fde6d06167
@ -115,6 +115,8 @@ def load_quantized(model_name):
|
||||
for group in ([f'-{shared.args.groupsize}g', ''] if shared.args.groupsize > 0 else [''])
|
||||
for hyphen in ['-', f'/{model_name}-', '/']
|
||||
]
|
||||
if shared.args.groupsize > 0:
|
||||
priority_name_list = [i for i in priority_name_list if str(shared.args.groupsize) in i.name] + [i for i in priority_name_list if str(shared.args.groupsize) not in i.name]
|
||||
for path in priority_name_list:
|
||||
if path.exists():
|
||||
pt_path = path
|
||||
|
Loading…
Reference in New Issue
Block a user