Zhenru commited on
Commit
44d3e4d
·
verified ·
1 Parent(s): 50280dd

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +9 -2
README.md CHANGED
@@ -74,11 +74,18 @@ model = AutoModelForCausalLM.from_pretrained(
74
  )
75
  tokenizer = AutoTokenizer.from_pretrained(model_name)
76
 
77
- prompt = "Find the value of $x$ that satisfies the equation $4x+5 = 6x+7$."
78
  messages = [
79
- {"role": "system", "content": "You are Qwen, created by Alibaba Cloud. You are a helpful assistant."},
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,