Keep ExLlama_HF if already selected

This commit is contained in:
oobabooga 2023-06-25 19:06:28 -03:00
parent 75fd763f99
commit 9290c6236f

View File

@ -94,7 +94,7 @@ def apply_model_settings_to_state(model, state):
loader = 'AutoGPTQ'
# If the user is using an alternative GPTQ loader, let them keep using it
if not (loader == 'AutoGPTQ' and state['loader'] in ['GPTQ-for-LLaMa', 'ExLlama']):
if not (loader == 'AutoGPTQ' and state['loader'] in ['GPTQ-for-LLaMa', 'ExLlama', 'ExLlama_HF']):
state['loader'] = loader
for k in model_settings: