Detect "vicuna" as llama model type (#772)

This commit is contained in:
OWKenobi 2023-04-04 18:23:27 +02:00 committed by GitHub
parent 881dbc3d44
commit ee4547cd34
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -52,7 +52,7 @@ def load_quantized(model_name):
if not shared.args.model_type:
# Try to determine model type from model name
name = model_name.lower()
if any((k in name for k in ['llama', 'alpaca'])):
if any((k in name for k in ['llama', 'alpaca', 'vicuna'])):
model_type = 'llama'
elif any((k in name for k in ['opt-', 'galactica'])):
model_type = 'opt'