Spaces:
Runtime error
Runtime error
Update inline doc.
Browse files
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:
|