nielsr HF Staff commited on
Commit
2a74f9c
·
verified ·
1 Parent(s): 79fbbe3

Add question-answering tag

Browse files

This PR improves the model card by ensuring people can find the model at https://huggingface.co/models?pipeline_tag=question-answering&sort=trending.

Files changed (1) hide show
  1. README.md +15 -7
README.md CHANGED
@@ -1,8 +1,9 @@
1
  ---
2
- library_name: transformers
3
- license: apache-2.0
4
  base_model:
5
  - Qwen/Qwen2.5-Math-1.5B
 
 
 
6
  ---
7
 
8
  # Qwen2.5-Math-1.5B-Oat-Zero
@@ -33,17 +34,24 @@ import vllm
33
 
34
  def apply_qwen_math_template(question: str):
35
  return (
36
- "<|im_start|>system\nPlease reason step by step, and put your final answer within \\boxed{}.<|im_end|>\n<|im_start|>user\n"
 
 
 
37
  + question
38
- + "<|im_end|>\n<|im_start|>assistant\n"
 
 
39
  )
40
 
41
  def apply_r1_template(question: str):
42
  return (
43
  "A conversation between User and Assistant. The User asks a question, and the Assistant solves it. The Assistant first thinks about the reasoning process in the mind and then provides the User with the answer. "
44
- "The reasoning process is enclosed within <think> </think> and answer is enclosed within <answer> </answer> tags, respectively, i.e., <think> reasoning process here </think> <answer> answer here </answer>.\nUser: "
 
45
  + question
46
- + "\nAssistant: <think>"
 
47
  )
48
 
49
  model_name = "sail/Qwen2.5-Math-1.5B-Oat-Zero"
@@ -85,4 +93,4 @@ print(outputs)
85
  year={2025},
86
  howpublished={\url{https://github.com/sail-sg/understand-r1-zero}},
87
  }
88
- ```
 
1
  ---
 
 
2
  base_model:
3
  - Qwen/Qwen2.5-Math-1.5B
4
+ library_name: transformers
5
+ license: apache-2.0
6
+ pipeline_tag: question-answering
7
  ---
8
 
9
  # Qwen2.5-Math-1.5B-Oat-Zero
 
34
 
35
  def apply_qwen_math_template(question: str):
36
  return (
37
+ "<|im_start|>system
38
+ Please reason step by step, and put your final answer within \\boxed{}.<|im_end|>
39
+ <|im_start|>user
40
+ "
41
  + question
42
+ + "<|im_end|>
43
+ <|im_start|>assistant
44
+ "
45
  )
46
 
47
  def apply_r1_template(question: str):
48
  return (
49
  "A conversation between User and Assistant. The User asks a question, and the Assistant solves it. The Assistant first thinks about the reasoning process in the mind and then provides the User with the answer. "
50
+ "The reasoning process is enclosed within <think> </think> and answer is enclosed within <answer> </answer> tags, respectively, i.e., <think> reasoning process here </think> <answer> answer here </answer>.
51
+ User: "
52
  + question
53
+ + "
54
+ Assistant: <think>"
55
  )
56
 
57
  model_name = "sail/Qwen2.5-Math-1.5B-Oat-Zero"
 
93
  year={2025},
94
  howpublished={\url{https://github.com/sail-sg/understand-r1-zero}},
95
  }
96
+ ```