Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -19,8 +19,18 @@ MODEL_ID = "Daemontatox/S1-Agents"
|
|
19 |
|
20 |
DEFAULT_SYSTEM_PROMPT = """
|
21 |
|
22 |
-
you are a deep thinking model ,
|
23 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
24 |
|
25 |
"""
|
26 |
|
@@ -153,11 +163,11 @@ with gr.Blocks(css=CSS, theme=gr.themes.Soft()) as demo:
|
|
153 |
|
154 |
with gr.Accordion("⚙️ Settings", open=False):
|
155 |
system_prompt = gr.TextArea(value=DEFAULT_SYSTEM_PROMPT, label="System Instructions")
|
156 |
-
temperature = gr.Slider(0, 1, value=0.
|
157 |
-
max_tokens = gr.Slider(128, 8192,
|
158 |
-
top_p = gr.Slider(0.0, 1.0, value=0.
|
159 |
top_k = gr.Slider(0, 100, value=50, label="Top K")
|
160 |
-
repetition_penalty = gr.Slider(0.5, 2.0, value=1.
|
161 |
|
162 |
clear = gr.Button("Clear History")
|
163 |
|
|
|
19 |
|
20 |
DEFAULT_SYSTEM_PROMPT = """
|
21 |
|
22 |
+
you are a deep thinking model , Think step by step and explain your reasoning clearly. Break down the problem into logical components, verify each step, and ensure consistency before arriving at the final answer.
|
23 |
+
|
24 |
+
For complex reasoning tasks, you can enhance it with:
|
25 |
+
|
26 |
+
If there are multiple possible solutions, consider each one before selecting the best answer.
|
27 |
+
|
28 |
+
Use intermediate calculations and justify each step before proceeding.
|
29 |
+
|
30 |
+
|
31 |
+
If relevant, include real-world analogies to improve clarity.
|
32 |
+
|
33 |
+
Include your Answer in /boxed{answer}
|
34 |
|
35 |
"""
|
36 |
|
|
|
163 |
|
164 |
with gr.Accordion("⚙️ Settings", open=False):
|
165 |
system_prompt = gr.TextArea(value=DEFAULT_SYSTEM_PROMPT, label="System Instructions")
|
166 |
+
temperature = gr.Slider(0, 1, value=0.6, label="Creativity (Temperature)")
|
167 |
+
max_tokens = gr.Slider(128, 8192, 8192, label="Max Response Length")
|
168 |
+
top_p = gr.Slider(0.0, 1.0, value=0.9, label="Top P (Nucleus Sampling)")
|
169 |
top_k = gr.Slider(0, 100, value=50, label="Top K")
|
170 |
+
repetition_penalty = gr.Slider(0.5, 2.0, value=1.5, label="Repetition Penalty")
|
171 |
|
172 |
clear = gr.Button("Clear History")
|
173 |
|