Update README.md
Browse files
README.md
CHANGED
@@ -59,14 +59,14 @@ tokenizer = AutoTokenizer.from_pretrained(model_name)
|
|
59 |
|
60 |
question = "Find the value of $x$ that satisfies the equation $4x+5 = 6x+7$."
|
61 |
|
62 |
-
sys_prompt="<|im_start|>system\
|
63 |
-
query_prompt="<|im_start|>user" + "\n"
|
64 |
# {query}
|
65 |
-
prompt_after_query="
|
66 |
-
resp_prompt="<|im_start|>assistant" + "\n"
|
67 |
-
prompt_before_resp=""
|
68 |
# {resp}
|
69 |
-
delim="<|im_end|>" + "\n"
|
70 |
|
71 |
prefix_prompt = f"{query_prompt}{question}{prompt_after_query}{resp_prompt}{prompt_before_resp}".rstrip(" ")
|
72 |
full_prompt = sys_prompt + delim.join([prefix_prompt])
|
|
|
59 |
|
60 |
question = "Find the value of $x$ that satisfies the equation $4x+5 = 6x+7$."
|
61 |
|
62 |
+
sys_prompt = "<|im_start|>system\nYou are a helpful assistant.<|im_end|>\n"
|
63 |
+
query_prompt = "<|im_start|>user" + "\n"
|
64 |
# {query}
|
65 |
+
prompt_after_query = "\n" + "Please reason step by step, and put your final answer within \\boxed{}.<|im_end|>" + "\n"
|
66 |
+
resp_prompt = "<|im_start|>assistant" + "\n"
|
67 |
+
prompt_before_resp = ""
|
68 |
# {resp}
|
69 |
+
delim = "<|im_end|>" + "\n"
|
70 |
|
71 |
prefix_prompt = f"{query_prompt}{question}{prompt_after_query}{resp_prompt}{prompt_before_resp}".rstrip(" ")
|
72 |
full_prompt = sys_prompt + delim.join([prefix_prompt])
|