lkw99 commited on
Commit
2b00565
1 Parent(s): 4e5e816

Update inline doc.

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -5,7 +5,9 @@ client = InferenceClient(
5
  "mistralai/Mixtral-8x7B-Instruct-v0.1"
6
  )
7
 
8
-
 
 
9
  def format_prompt(message, history):
10
  prompt = "<s>"
11
  for user_prompt, bot_response in history:
 
5
  "mistralai/Mixtral-8x7B-Instruct-v0.1"
6
  )
7
 
8
+ # According to "Model Card for Mixtral-8x7B"
9
+ # The instruction format must be strictly respected, otherwise the model will generate sub-optimal outputs.
10
+ # Refer to: https://huggingface.co/mistralai/Mixtral-8x7B-Instruct-v0.1#instruction-format
11
  def format_prompt(message, history):
12
  prompt = "<s>"
13
  for user_prompt, bot_response in history: