Jn-Huang
commited on
Commit
·
1002aec
1
Parent(s):
d298fc0
Update default prompt text and appendix link
Browse files- app.py +11 -9
- app_vllm.py +11 -9
app.py
CHANGED
|
@@ -110,10 +110,11 @@ def chat_fn(message, history, system_prompt, _prompt_reference, max_new_tokens,
|
|
| 110 |
# Add system prompt (use default if not provided)
|
| 111 |
if not system_prompt:
|
| 112 |
system_prompt = (
|
| 113 |
-
"
|
| 114 |
-
"behavior modeling
|
| 115 |
-
"behavioral datasets.
|
| 116 |
-
"prediction of human decision-making."
|
|
|
|
| 117 |
)
|
| 118 |
messages.append({"role": "system", "content": system_prompt})
|
| 119 |
|
|
@@ -155,16 +156,17 @@ demo = gr.ChatInterface(
|
|
| 155 |
gr.Textbox(
|
| 156 |
label="System prompt (optional)",
|
| 157 |
placeholder=(
|
| 158 |
-
"
|
| 159 |
-
"human behavior modeling
|
| 160 |
-
"diverse behavioral datasets.
|
| 161 |
-
"understanding and prediction of human decision-making."
|
|
|
|
| 162 |
),
|
| 163 |
lines=2,
|
| 164 |
),
|
| 165 |
gr.Markdown(
|
| 166 |
"For system and user prompts in a variety of economic games, please refer to "
|
| 167 |
-
"the appendix in our paper
|
| 168 |
),
|
| 169 |
gr.Slider(16, 2048, value=512, step=16, label="max_new_tokens"),
|
| 170 |
gr.Slider(0.1, 1.5, value=0.6, step=0.05, label="temperature"),
|
|
|
|
| 110 |
# Add system prompt (use default if not provided)
|
| 111 |
if not system_prompt:
|
| 112 |
system_prompt = (
|
| 113 |
+
"Your are a Be.FM assistant. Be.FM is a family of open foundation models "
|
| 114 |
+
"designed for human behavior modeling. Built on Llama 3.1 and fine-tuned on "
|
| 115 |
+
"diverse behavioral datasets, Be.FM models are designed to enhance the "
|
| 116 |
+
"understanding and prediction of human decision-making. Refer to our "
|
| 117 |
+
"[paper](https://arxiv.org/abs/2505.23058)."
|
| 118 |
)
|
| 119 |
messages.append({"role": "system", "content": system_prompt})
|
| 120 |
|
|
|
|
| 156 |
gr.Textbox(
|
| 157 |
label="System prompt (optional)",
|
| 158 |
placeholder=(
|
| 159 |
+
"Your are a Be.FM assistant. Be.FM is a family of open foundation models "
|
| 160 |
+
"designed for human behavior modeling. Built on Llama 3.1 and fine-"
|
| 161 |
+
"tuned on diverse behavioral datasets, Be.FM models are designed to "
|
| 162 |
+
"enhance the understanding and prediction of human decision-making. "
|
| 163 |
+
"Refer to our [paper](https://arxiv.org/abs/2505.23058)."
|
| 164 |
),
|
| 165 |
lines=2,
|
| 166 |
),
|
| 167 |
gr.Markdown(
|
| 168 |
"For system and user prompts in a variety of economic games, please refer to "
|
| 169 |
+
"the appendix in our [paper](https://arxiv.org/abs/2505.23058)."
|
| 170 |
),
|
| 171 |
gr.Slider(16, 2048, value=512, step=16, label="max_new_tokens"),
|
| 172 |
gr.Slider(0.1, 1.5, value=0.6, step=0.05, label="temperature"),
|
app_vllm.py
CHANGED
|
@@ -95,10 +95,11 @@ def chat_fn(message, history, system_prompt, _prompt_reference, max_new_tokens,
|
|
| 95 |
# Add system prompt (use default if not provided)
|
| 96 |
if not system_prompt:
|
| 97 |
system_prompt = (
|
| 98 |
-
"
|
| 99 |
-
"behavior modeling
|
| 100 |
-
"behavioral datasets.
|
| 101 |
-
"prediction of human decision-making."
|
|
|
|
| 102 |
)
|
| 103 |
messages.append({"role": "system", "content": system_prompt})
|
| 104 |
|
|
@@ -123,16 +124,17 @@ demo = gr.ChatInterface(
|
|
| 123 |
gr.Textbox(
|
| 124 |
label="System prompt (optional)",
|
| 125 |
placeholder=(
|
| 126 |
-
"
|
| 127 |
-
"human behavior modeling
|
| 128 |
-
"diverse behavioral datasets.
|
| 129 |
-
"understanding and prediction of human decision-making."
|
|
|
|
| 130 |
),
|
| 131 |
lines=2,
|
| 132 |
),
|
| 133 |
gr.Markdown(
|
| 134 |
"For system and user prompts in a variety of economic games, please refer to "
|
| 135 |
-
"the appendix in our paper
|
| 136 |
),
|
| 137 |
gr.Slider(16, 2048, value=512, step=16, label="max_new_tokens"),
|
| 138 |
gr.Slider(0.1, 1.5, value=0.6, step=0.05, label="temperature"),
|
|
|
|
| 95 |
# Add system prompt (use default if not provided)
|
| 96 |
if not system_prompt:
|
| 97 |
system_prompt = (
|
| 98 |
+
"Your are a Be.FM assistant. Be.FM is a family of open foundation models "
|
| 99 |
+
"designed for human behavior modeling. Built on Llama 3.1 and fine-tuned on "
|
| 100 |
+
"diverse behavioral datasets, Be.FM models are designed to enhance the "
|
| 101 |
+
"understanding and prediction of human decision-making. Refer to our "
|
| 102 |
+
"[paper](https://arxiv.org/abs/2505.23058)."
|
| 103 |
)
|
| 104 |
messages.append({"role": "system", "content": system_prompt})
|
| 105 |
|
|
|
|
| 124 |
gr.Textbox(
|
| 125 |
label="System prompt (optional)",
|
| 126 |
placeholder=(
|
| 127 |
+
"Your are a Be.FM assistant. Be.FM is a family of open foundation models "
|
| 128 |
+
"designed for human behavior modeling. Built on Llama 3.1 and fine-"
|
| 129 |
+
"tuned on diverse behavioral datasets, Be.FM models are designed to "
|
| 130 |
+
"enhance the understanding and prediction of human decision-making. "
|
| 131 |
+
"Refer to our [paper](https://arxiv.org/abs/2505.23058)."
|
| 132 |
),
|
| 133 |
lines=2,
|
| 134 |
),
|
| 135 |
gr.Markdown(
|
| 136 |
"For system and user prompts in a variety of economic games, please refer to "
|
| 137 |
+
"the appendix in our [paper](https://arxiv.org/abs/2505.23058)."
|
| 138 |
),
|
| 139 |
gr.Slider(16, 2048, value=512, step=16, label="max_new_tokens"),
|
| 140 |
gr.Slider(0.1, 1.5, value=0.6, step=0.05, label="temperature"),
|