mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-11-26 09:40:20 +01:00
Minor change
This commit is contained in:
parent
47666c4d00
commit
c0b5c09860
@ -40,7 +40,7 @@ if shared.args.deepspeed:
|
|||||||
|
|
||||||
def find_model_type(model_name):
|
def find_model_type(model_name):
|
||||||
model_name = model_name.lower()
|
model_name = model_name.lower()
|
||||||
if 'rwkv-' in model_name.lower():
|
if 'rwkv-' in model_name:
|
||||||
return 'rwkv'
|
return 'rwkv'
|
||||||
elif len(list(Path(f'{shared.args.model_dir}/{model_name}').glob('*ggml*.bin'))) > 0:
|
elif len(list(Path(f'{shared.args.model_dir}/{model_name}').glob('*ggml*.bin'))) > 0:
|
||||||
return 'llamacpp'
|
return 'llamacpp'
|
||||||
|
Loading…
Reference in New Issue
Block a user