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"),