Vitrous commited on
Commit
2228adf
·
verified ·
1 Parent(s): caa66a5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -28,8 +28,8 @@ def mistral_model():
28
  tuple: A tuple containing the loaded model and tokenizer.
29
  """
30
  if torch.cuda.is_available():
31
- model_id = "mistralai/Mistral-7B-Instruct-v0.2"
32
- model = AutoModelForCausalLM.from_pretrained(model_id, torch_dtype=torch.float16, device_map="auto")
33
  tokenizer = AutoTokenizer.from_pretrained(model_id)
34
 
35
  return model,tokenizer
 
28
  tuple: A tuple containing the loaded model and tokenizer.
29
  """
30
  if torch.cuda.is_available():
31
+ model_id = "/code/mistral/"
32
+ model = AutoModelForCausalLM.from_pretrained(model_id)
33
  tokenizer = AutoTokenizer.from_pretrained(model_id)
34
 
35
  return model,tokenizer