Zhenru commited on
Commit
7e62d1c
1 Parent(s): fd24512

Update README.md

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