mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-10-01 01:26:03 -04:00
Detect "vicuna" as llama model type (#772)
This commit is contained in:
parent
881dbc3d44
commit
ee4547cd34
@ -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'
|
||||
|
Loading…
Reference in New Issue
Block a user