Allen Park commited on
Commit
3172fe0
·
1 Parent(s): 2410cc6

bartowski open source model change

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -5,8 +5,8 @@ import spaces
5
 
6
  device = "cuda" # for GPU usage or "cpu" for CPU usage
7
 
8
- tokenizer = AutoTokenizer.from_pretrained("mistralai/Mistral-Large-Instruct-2407")
9
- model = AutoModelForCausalLM.from_pretrained("mistralai/Mistral-Large-Instruct-2407", torch_dtype=torch.float16, device_map="auto")
10
 
11
  PROMPT = """
12
  Given the following QUESTION, DOCUMENT and ANSWER you must analyze the provided answer and determine whether it is faithful to the contents of the DOCUMENT. The ANSWER must not offer new information beyond the context provided in the DOCUMENT. The ANSWER also must not contradict information provided in the DOCUMENT. Output your final verdict by strictly following this format: "PASS" if the answer is faithful to the DOCUMENT and "FAIL" if the answer is not faithful to the DOCUMENT. Show your reasoning.
 
5
 
6
  device = "cuda" # for GPU usage or "cpu" for CPU usage
7
 
8
+ tokenizer = AutoTokenizer.from_pretrained("bartowski/OpenCerebrum-1.0-7b-DPO-GGUF")
9
+ model = AutoModelForCausalLM.from_pretrained("bartowski/OpenCerebrum-1.0-7b-DPO-GGUF", torch_dtype=torch.float16, device_map="auto")
10
 
11
  PROMPT = """
12
  Given the following QUESTION, DOCUMENT and ANSWER you must analyze the provided answer and determine whether it is faithful to the contents of the DOCUMENT. The ANSWER must not offer new information beyond the context provided in the DOCUMENT. The ANSWER also must not contradict information provided in the DOCUMENT. Output your final verdict by strictly following this format: "PASS" if the answer is faithful to the DOCUMENT and "FAIL" if the answer is not faithful to the DOCUMENT. Show your reasoning.