Add support for RWKV in Hugging Face format
This commit is contained in:
parent
75adc110d4
commit
cd3618d7fb
4 changed files with 15 additions and 5 deletions
|
@ -45,7 +45,7 @@ def find_model_type(model_name):
|
|||
return 'None'
|
||||
|
||||
model_name_lower = model_name.lower()
|
||||
if 'rwkv-' in model_name_lower:
|
||||
if re.match('.*rwkv.*\.pth', model_name_lower):
|
||||
return 'rwkv'
|
||||
elif len(list(path_to_model.glob('*ggml*.bin'))) > 0:
|
||||
return 'llamacpp'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue