TomData commited on
Commit
23baaa1
·
verified ·
1 Parent(s): de70383

Update src/chatbot.py

Browse files
Files changed (1) hide show
  1. src/chatbot.py +5 -5
src/chatbot.py CHANGED
@@ -21,8 +21,8 @@ load_dotenv(find_dotenv())
21
  embeddings = HuggingFaceEmbeddings(model_name="paraphrase-multilingual-MiniLM-L12-v2") # Remove embedding input parameter from functions?
22
  llm = HuggingFaceHub(
23
  # ToDo: Try different models here
24
- # repo_id="mistralai/Mistral-7B-Instruct-v0.3",
25
- repo_id = "mistralai/Ministral-8B-Instruct-2410",
26
  #repo_id="mistralai/Mixtral-8x7B-Instruct-v0.1",
27
  # repo_id="CohereForAI/c4ai-command-r-v01", # too large 69gb
28
  # repo_id="CohereForAI/c4ai-command-r-v01-4bit", # too large 22gb
@@ -30,9 +30,9 @@ llm = HuggingFaceHub(
30
  task="text-generation",
31
  model_kwargs={
32
  "max_new_tokens": 512,
33
- "top_k": 30,
34
- "temperature": 0.1,
35
- "repetition_penalty": 1.03,
36
  }
37
  )
38
  # ToDo: Experiment with different templates
 
21
  embeddings = HuggingFaceEmbeddings(model_name="paraphrase-multilingual-MiniLM-L12-v2") # Remove embedding input parameter from functions?
22
  llm = HuggingFaceHub(
23
  # ToDo: Try different models here
24
+ repo_id="mistralai/Mistral-7B-Instruct-v0.3",
25
+ #repo_id = "mistralai/Ministral-8B-Instruct-2410",
26
  #repo_id="mistralai/Mixtral-8x7B-Instruct-v0.1",
27
  # repo_id="CohereForAI/c4ai-command-r-v01", # too large 69gb
28
  # repo_id="CohereForAI/c4ai-command-r-v01-4bit", # too large 22gb
 
30
  task="text-generation",
31
  model_kwargs={
32
  "max_new_tokens": 512,
33
+ #"top_k": 30,
34
+ "temperature": 0.01,
35
+ #"repetition_penalty": 1.03,
36
  }
37
  )
38
  # ToDo: Experiment with different templates