nxphi47 commited on
Commit
7c89126
·
verified ·
1 Parent(s): dff1c7e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -31,7 +31,8 @@ if not torch.cuda.is_available():
31
 
32
 
33
  if torch.cuda.is_available():
34
- model_id = "meta-llama/Llama-2-7b-chat-hf"
 
35
  model = AutoModelForCausalLM.from_pretrained(model_id, device_map="auto", torch_dtype=torch.bfloat16)
36
  tokenizer = AutoTokenizer.from_pretrained(model_id)
37
  tokenizer.use_default_system_prompt = False
 
31
 
32
 
33
  if torch.cuda.is_available():
34
+ # model_id = "meta-llama/Llama-2-7b-chat-hf"
35
+ model_id = "mistralai/Mistral-7B-Instruct-v0.2"
36
  model = AutoModelForCausalLM.from_pretrained(model_id, device_map="auto", torch_dtype=torch.bfloat16)
37
  tokenizer = AutoTokenizer.from_pretrained(model_id)
38
  tokenizer.use_default_system_prompt = False