ginipick commited on
Commit
3779abf
ยท
verified ยท
1 Parent(s): 01b053a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -6
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-2501-Q8_0.gguf',
196
  'Meta-Llama-3-70B-Instruct-Q3_K_M.gguf'
197
  ],
198
- value="Mistral-Small-24B-Instruct-2501-Q8_0.gguf",
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"),