Refactor everything (#3481)

This commit is contained in:
oobabooga 2023-08-06 21:49:27 -03:00 committed by GitHub
parent d4b851bdc8
commit 65aa11890f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
19 changed files with 1306 additions and 1178 deletions

View file

@ -26,9 +26,9 @@ def infer_loader(model_name):
loader = 'AutoGPTQ'
elif len(list(path_to_model.glob('*ggml*.bin'))) > 0:
loader = 'llama.cpp'
elif re.match('.*ggml.*\.bin', model_name.lower()):
elif re.match(r'.*ggml.*\.bin', model_name.lower()):
loader = 'llama.cpp'
elif re.match('.*rwkv.*\.pth', model_name.lower()):
elif re.match(r'.*rwkv.*\.pth', model_name.lower()):
loader = 'RWKV'
else:
loader = 'Transformers'