Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added error message for load_quantized_model_gguf_ggml #491

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions load_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,11 @@ def load_quantized_model_gguf_ggml(model_id, model_basename, device_type, loggin
kwargs["n_gpu_layers"] = N_GPU_LAYERS # set this based on your GPU

return LlamaCpp(**kwargs)
except:
except Exception as e:
if "ggml" in model_basename:
logging.INFO("If you were using GGML model, LLAMA-CPP Dropped Support, Use GGUF Instead")
return None
logging.info("LlamaCpp conversion error: ")
raise e


def load_quantized_model_qptq(model_id, model_basename, device_type, logging):
Expand Down