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