NCTCMumbai commited on
Commit
7c0f8d5
·
verified ·
1 Parent(s): ce11f6d

Update backend/query_llm.py

Browse files
Files changed (1) hide show
  1. backend/query_llm.py +6 -4
backend/query_llm.py CHANGED
@@ -11,10 +11,12 @@ from transformers import AutoTokenizer
11
 
12
  #tokenizer = AutoTokenizer.from_pretrained("mistralai/Mistral-7B-Instruct-v0.1")
13
  tokenizer = AutoTokenizer.from_pretrained("mistralai/Mixtral-8x7B-Instruct-v0.1")
14
- temperature = 0.2
15
- #top_p = 0.6
16
- repetition_penalty = 1.0
17
-
 
 
18
 
19
  OPENAI_KEY = getenv("OPENAI_API_KEY")
20
  HF_TOKEN = getenv("HUGGING_FACE_HUB_TOKEN")
 
11
 
12
  #tokenizer = AutoTokenizer.from_pretrained("mistralai/Mistral-7B-Instruct-v0.1")
13
  tokenizer = AutoTokenizer.from_pretrained("mistralai/Mixtral-8x7B-Instruct-v0.1")
14
+ # temperature = 0.2
15
+ # #top_p = 0.6
16
+ # repetition_penalty = 1.0
17
+ temperature = 0.5
18
+ top_p = 0.7
19
+ repetition_penalty = 1.2
20
 
21
  OPENAI_KEY = getenv("OPENAI_API_KEY")
22
  HF_TOKEN = getenv("HUGGING_FACE_HUB_TOKEN")