Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -74,10 +74,8 @@ def get_messages_formatter_type(model_name):
|
|
74 |
return MessagesFormatterType.LLAMA_3
|
75 |
elif "unsloth" in model_name:
|
76 |
return MessagesFormatterType.CHATML
|
77 |
-
elif "Mistral" in model_name:
|
78 |
-
# Mistral ๋ชจ๋ธ์
|
79 |
-
# ๋ฌธ์์ ๋ฐ๋ฅด๋ฉด V7-Tekken ํ
ํ๋ฆฟ์ด ๊ธฐ๋ณธ ํ์์
๋๋ค
|
80 |
-
return MessagesFormatterType.MISTRAL
|
81 |
else:
|
82 |
raise ValueError(f"Unsupported model: {model_name}")
|
83 |
|
@@ -192,10 +190,10 @@ demo = gr.ChatInterface(
|
|
192 |
respond,
|
193 |
additional_inputs=[
|
194 |
gr.Dropdown([
|
195 |
-
'Mistral-Small-24B-Instruct-
|
196 |
'Meta-Llama-3-70B-Instruct-Q3_K_M.gguf'
|
197 |
],
|
198 |
-
value="Mistral-Small-24B-Instruct-
|
199 |
label="Model"
|
200 |
),
|
201 |
gr.Textbox(value="You are a deep thinking AI, you may use extremely long chains of thought to deeply consider the problem and deliberate with yourself via systematic reasoning processes to help come to a correct solution prior to answering. You should enclose your thoughts and internal monologue inside <think> </think> tags, and then provide your solution or response to the problem.", label="System message"),
|
|
|
74 |
return MessagesFormatterType.LLAMA_3
|
75 |
elif "unsloth" in model_name:
|
76 |
return MessagesFormatterType.CHATML
|
77 |
+
elif "Mistral" in model_name or "BitSix" in model_name:
|
78 |
+
return MessagesFormatterType.CHATML # Mistral ๊ณ์ด ๋ชจ๋ธ์ ChatML ํ์ ์ฌ์ฉ
|
|
|
|
|
79 |
else:
|
80 |
raise ValueError(f"Unsupported model: {model_name}")
|
81 |
|
|
|
190 |
respond,
|
191 |
additional_inputs=[
|
192 |
gr.Dropdown([
|
193 |
+
'Private-BitSix-Mistral-Small-3.1-24B-Instruct-2503.gguf',
|
194 |
'Meta-Llama-3-70B-Instruct-Q3_K_M.gguf'
|
195 |
],
|
196 |
+
value="Private-BitSix-Mistral-Small-3.1-24B-Instruct-2503.gguf",
|
197 |
label="Model"
|
198 |
),
|
199 |
gr.Textbox(value="You are a deep thinking AI, you may use extremely long chains of thought to deeply consider the problem and deliberate with yourself via systematic reasoning processes to help come to a correct solution prior to answering. You should enclose your thoughts and internal monologue inside <think> </think> tags, and then provide your solution or response to the problem.", label="System message"),
|