Spaces:
Running
Running
davoodwadi
commited on
Commit
•
3cccea1
1
Parent(s):
ee928bb
Upload app.py
Browse files
app.py
CHANGED
@@ -137,12 +137,14 @@ max_words = 10_000
|
|
137 |
print(f'max_words: {max_words}')
|
138 |
# llm = Llama(model_path="E:\\yt\\bookSummary/Snorkel-Mistral-PairRM-DPO/snorkel-mistral-pairrm-dpo.Q4_K_M.gguf", chat_format="chatml", n_gpu_layers=-1, n_ctx=6000)
|
139 |
|
140 |
-
writer_system_prompt_unformatted = '''You are a
|
141 |
-
|
142 |
|
143 |
-
editor_system_prompt_unformatted = '''You are
|
144 |
-
|
145 |
-
|
|
|
|
|
146 |
You should push me to make my response as close as possible to the topic.'''
|
147 |
|
148 |
|
|
|
137 |
print(f'max_words: {max_words}')
|
138 |
# llm = Llama(model_path="E:\\yt\\bookSummary/Snorkel-Mistral-PairRM-DPO/snorkel-mistral-pairrm-dpo.Q4_K_M.gguf", chat_format="chatml", n_gpu_layers=-1, n_ctx=6000)
|
139 |
|
140 |
+
writer_system_prompt_unformatted = '''You are a helpful assistant.
|
141 |
+
{topic}'''
|
142 |
|
143 |
+
editor_system_prompt_unformatted = '''You are a helpful editor.
|
144 |
+
You give instructions on what I should write and provide feedback on my response.
|
145 |
+
The topic I'm writing about is in the triple backticks:
|
146 |
+
```{topic}```
|
147 |
+
You should reinforce me to make my response match perfectly to the topic.
|
148 |
You should push me to make my response as close as possible to the topic.'''
|
149 |
|
150 |
|