Nassira commited on
Commit
5a199dd
·
verified ·
1 Parent(s): 0d07bcb

Update completeness.py

Browse files
Files changed (1) hide show
  1. completeness.py +1 -1
completeness.py CHANGED
@@ -10,7 +10,7 @@ with open('cv_completeness.json', 'r') as f:
10
 
11
  def load_model():
12
  try:
13
- model_path = "path/to/your/mistral/model.gguf"
14
  return Llama(model_path=model_path, n_ctx=32768, n_gpu_layers=2)
15
  except Exception as e:
16
  logging.error(f"Error loading model: {str(e)}")
 
10
 
11
  def load_model():
12
  try:
13
+ model_path = hf_hub_download("TheBloke/Mistral-7B-Instruct-v0.2-GGUF", filename="mistral-7b-instruct-v0.2.Q4_K_M.gguf")
14
  return Llama(model_path=model_path, n_ctx=32768, n_gpu_layers=2)
15
  except Exception as e:
16
  logging.error(f"Error loading model: {str(e)}")