vishwask commited on
Commit
6cbbcb9
·
verified ·
1 Parent(s): de2d4ed

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -123,8 +123,10 @@ def load_model(_docs):
123
  top_p=0.95,
124
  repetition_penalty=1.15,
125
  streamer=streamer,)
126
- llm = HuggingFacePipeline(pipeline=text_pipeline, model_kwargs={"temperature": 0.1})
127
-
 
 
128
  # SYSTEM_PROMPT = ("Use the following pieces of context to answer the question at the end. "
129
  # "If you don't know the answer, just say that you don't know, "
130
  # "don't try to make up an answer.")
 
123
  top_p=0.95,
124
  repetition_penalty=1.15,
125
  streamer=streamer,)
126
+ #llm = HuggingFacePipeline(pipeline=text_pipeline, model_kwargs={"temperature": 0.1})
127
+
128
+ llm = HuggingFaceHub(repo_id="mistralai/Mixtral-8x7B-Instruct-v0.1", model_kwargs={"temperature": 0.1, "max_new_tokens": 1024, "top_k": 3, "load_in_8bit": True})
129
+
130
  # SYSTEM_PROMPT = ("Use the following pieces of context to answer the question at the end. "
131
  # "If you don't know the answer, just say that you don't know, "
132
  # "don't try to make up an answer.")