Update README.md
Browse files
README.md
CHANGED
@@ -74,11 +74,18 @@ model = AutoModelForCausalLM.from_pretrained(
|
|
74 |
)
|
75 |
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
76 |
|
77 |
-
|
78 |
messages = [
|
79 |
-
{"role": "system", "content": "
|
80 |
{"role": "user", "content": prompt}
|
81 |
]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
82 |
text = tokenizer.apply_chat_template(
|
83 |
messages,
|
84 |
tokenize=False,
|
|
|
74 |
)
|
75 |
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
76 |
|
77 |
+
# CoT
|
78 |
messages = [
|
79 |
+
{"role": "system", "content": "Please reason step by step, and put your final answer within \\boxed{}."},
|
80 |
{"role": "user", "content": prompt}
|
81 |
]
|
82 |
+
|
83 |
+
# PoT
|
84 |
+
messages = [
|
85 |
+
{"role": "system", "content": "Please integrate natural language reasoning with programs to solve the problem above, and put your final answer within \\boxed{}."},
|
86 |
+
{"role": "user", "content": prompt}
|
87 |
+
]
|
88 |
+
|
89 |
text = tokenizer.apply_chat_template(
|
90 |
messages,
|
91 |
tokenize=False,
|