Jn-Huang commited on
Commit
1002aec
·
1 Parent(s): d298fc0

Update default prompt text and appendix link

Browse files
Files changed (2) hide show
  1. app.py +11 -9
  2. 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
- "You are a Be.FM assistant. Be.FM 8B is an open foundation model for human "
114
- "behavior modeling, built on Llama 3.1 8B and fine-tuned on diverse "
115
- "behavioral datasets. It is designed to enhance the understanding and "
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
- "You are a Be.FM assistant. Be.FM 8B is an open foundation model for "
159
- "human behavior modeling, built on Llama 3.1 8B and fine-tuned on "
160
- "diverse behavioral datasets. It is designed to enhance the "
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 ([PDF](https://arxiv.org/pdf/2505.23058))."
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
- "You are a Be.FM assistant. Be.FM 8B is an open foundation model for human "
99
- "behavior modeling, built on Llama 3.1 8B and fine-tuned on diverse "
100
- "behavioral datasets. It is designed to enhance the understanding and "
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
- "You are a Be.FM assistant. Be.FM 8B is an open foundation model for "
127
- "human behavior modeling, built on Llama 3.1 8B and fine-tuned on "
128
- "diverse behavioral datasets. It is designed to enhance the "
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 ([PDF](https://arxiv.org/pdf/2505.23058))."
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"),