yifAI commited on
Commit
b66e542
1 Parent(s): d4d0953

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +105 -14
README.md CHANGED
@@ -1,34 +1,61 @@
1
  ---
2
- license: mit
3
  task_categories:
4
- - text-generation
5
- - question-answering
6
  language:
7
- - en
8
  pretty_name: StackMathQA
9
  size_categories:
10
- - 1B<n<10B
11
  configs:
12
  - config_name: stackmathqa1600k
13
- data_files: "data/stackmathqa1600k/all.jsonl"
14
  default: true
15
  - config_name: stackmathqa800k
16
- data_files: "data/stackmathqa800k/all.jsonl"
17
  - config_name: stackmathqa400k
18
- data_files: "data/stackmathqa400k/all.jsonl"
19
  - config_name: stackmathqa200k
20
- data_files: "data/stackmathqa200k/all.jsonl"
21
  - config_name: stackmathqa100k
22
- data_files: "data/stackmathqa400k/all.jsonl"
23
  - config_name: preprocessed-1q1a
24
- data_files: "preprocessed/stackexchange-math--1q1a/*.jsonl"
25
  - config_name: preprocessed-qalist
26
- data_files: "preprocessed/stackexchange-math/*.jsonl"
 
 
 
 
 
 
27
  ---
28
 
29
  # StackMathQA
30
  StackMathQA is a meticulously curated collection of **2 million** mathematical questions and answers, sourced from various Stack Exchange sites. This repository is designed to serve as a comprehensive resource for researchers, educators, and enthusiasts in the field of mathematics and data science.
31
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
32
  ## Preprocessed Data
33
  In the `./preprocessed/stackexchange-math` directory and `./preprocessed/stackexchange-math--1q1a` directory, you will find the data structured in two formats:
34
 
@@ -40,6 +67,20 @@ In the `./preprocessed/stackexchange-math` directory and `./preprocessed/stackex
40
  - `physics.stackexchange.com.jsonl`: 117,318 lines
41
  - In total: **1,138,426** questions
42
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
43
  2. **Question and Single Answer Format**:
44
  Each line contains a question and one corresponding answer, structured as {"Q": "question", "A": "answer"}. Multiple answers for the same question are separated into different lines.
45
  - `math.stackexchange.com.jsonl`: 1,407,739 lines
@@ -48,22 +89,72 @@ In the `./preprocessed/stackexchange-math` directory and `./preprocessed/stackex
48
  - `physics.stackexchange.com.jsonl`: 226,532 lines
49
  - In total: **1,957,006** answers
50
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
51
  ## Selected Data
52
  The dataset has been carefully curated using importance sampling. We offer selected subsets of the dataset (`./preprocessed/stackexchange-math--1q1a`) with different sizes to cater to varied needs:
53
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
54
  ### StackMathQA1600K
55
  - Location: `./data/stackmathqa1600k`
56
  - Contents:
57
  - `all.jsonl`: Containing 1.6 million entries.
58
  - `meta.json`: Metadata and additional information.
59
 
 
 
60
  ### StackMathQA800K
61
  - Location: `./data/stackmathqa800k`
62
  - Contents:
63
  - `all.jsonl`: Containing 800k entries.
64
  - `meta.json`: Metadata and additional information.
65
 
66
- Similar structures are available for StackMathQA400K, StackMathQA200K, and StackMathQA100K subsets.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
67
 
68
  ## Citation
69
  We appreciate your use of StackMathQA in your work. If you find this repository helpful, please consider citing it and star this repo. Feel free to contact zhangyif21@tsinghua.edu.cn or open an issue if you have any questions.
@@ -74,4 +165,4 @@ We appreciate your use of StackMathQA in your work. If you find this repository
74
  author={Zhang, Yifan},
75
  year={2024},
76
  }
77
- ```
 
1
  ---
2
+ license: cc-by-4.0
3
  task_categories:
4
+ - text-generation
5
+ - question-answering
6
  language:
7
+ - en
8
  pretty_name: StackMathQA
9
  size_categories:
10
+ - 1B<n<10B
11
  configs:
12
  - config_name: stackmathqa1600k
13
+ data_files: data/stackmathqa1600k/all.jsonl
14
  default: true
15
  - config_name: stackmathqa800k
16
+ data_files: data/stackmathqa800k/all.jsonl
17
  - config_name: stackmathqa400k
18
+ data_files: data/stackmathqa400k/all.jsonl
19
  - config_name: stackmathqa200k
20
+ data_files: data/stackmathqa200k/all.jsonl
21
  - config_name: stackmathqa100k
22
+ data_files: data/stackmathqa400k/all.jsonl
23
  - config_name: preprocessed-1q1a
24
+ data_files: preprocessed/stackexchange-math--1q1a/*.jsonl
25
  - config_name: preprocessed-qalist
26
+ data_files: preprocessed/stackexchange-math/*.jsonl
27
+ tags:
28
+ - mathematical-reasoning
29
+ - reasoning
30
+ - finetuning
31
+ - pretraining
32
+ - llm
33
  ---
34
 
35
  # StackMathQA
36
  StackMathQA is a meticulously curated collection of **2 million** mathematical questions and answers, sourced from various Stack Exchange sites. This repository is designed to serve as a comprehensive resource for researchers, educators, and enthusiasts in the field of mathematics and data science.
37
 
38
+ ## Configs
39
+
40
+ ```YAML
41
+ configs:
42
+ - config_name: stackmathqa1600k
43
+ data_files: data/stackmathqa1600k/all.jsonl
44
+ default: true
45
+ - config_name: stackmathqa800k
46
+ data_files: data/stackmathqa800k/all.jsonl
47
+ - config_name: stackmathqa400k
48
+ data_files: data/stackmathqa400k/all.jsonl
49
+ - config_name: stackmathqa200k
50
+ data_files: data/stackmathqa200k/all.jsonl
51
+ - config_name: stackmathqa100k
52
+ data_files: data/stackmathqa400k/all.jsonl
53
+ - config_name: preprocessed-1q1a
54
+ data_files: preprocessed/stackexchange-math--1q1a/*.jsonl
55
+ - config_name: preprocessed-qalist
56
+ data_files: preprocessed/stackexchange-math/*.jsonl
57
+ ```
58
+
59
  ## Preprocessed Data
60
  In the `./preprocessed/stackexchange-math` directory and `./preprocessed/stackexchange-math--1q1a` directory, you will find the data structured in two formats:
61
 
 
67
  - `physics.stackexchange.com.jsonl`: 117,318 lines
68
  - In total: **1,138,426** questions
69
 
70
+ ```YAML
71
+ dataset_info:
72
+ features:
73
+ - name: Q
74
+ dtype: string
75
+ description: "The mathematical question in LaTeX encoded format."
76
+ - name: A_list
77
+ dtype: sequence
78
+ description: "The list of answers to the mathematical question, also in LaTeX encoded."
79
+ - name: meta
80
+ dtype: dict
81
+ description: "A collection of metadata for each question and its corresponding answer list."
82
+ ```
83
+
84
  2. **Question and Single Answer Format**:
85
  Each line contains a question and one corresponding answer, structured as {"Q": "question", "A": "answer"}. Multiple answers for the same question are separated into different lines.
86
  - `math.stackexchange.com.jsonl`: 1,407,739 lines
 
89
  - `physics.stackexchange.com.jsonl`: 226,532 lines
90
  - In total: **1,957,006** answers
91
 
92
+ ```YAML
93
+ dataset_info:
94
+ features:
95
+ - name: Q
96
+ dtype: string
97
+ description: "The mathematical question in LaTeX encoded format."
98
+ - name: A
99
+ dtype: string
100
+ description: "The answer to the mathematical question, also in LaTeX encoded."
101
+ - name: meta
102
+ dtype: dict
103
+ description: "A collection of metadata for each question-answer pair."
104
+ ```
105
+
106
  ## Selected Data
107
  The dataset has been carefully curated using importance sampling. We offer selected subsets of the dataset (`./preprocessed/stackexchange-math--1q1a`) with different sizes to cater to varied needs:
108
 
109
+ ```YAML
110
+ dataset_info:
111
+ features:
112
+ - name: Q
113
+ dtype: string
114
+ description: "The mathematical question in LaTeX encoded format."
115
+ - name: A
116
+ dtype: string
117
+ description: "The answer to the mathematical question, also in LaTeX encoded."
118
+ - name: meta
119
+ dtype: dict
120
+ description: "A collection of metadata for each question-answer pair."
121
+ ```
122
+
123
  ### StackMathQA1600K
124
  - Location: `./data/stackmathqa1600k`
125
  - Contents:
126
  - `all.jsonl`: Containing 1.6 million entries.
127
  - `meta.json`: Metadata and additional information.
128
 
129
+ Similar structures are available for StackMathQA800K, StackMathQA400K, StackMathQA200K, and StackMathQA100K subsets.
130
+
131
  ### StackMathQA800K
132
  - Location: `./data/stackmathqa800k`
133
  - Contents:
134
  - `all.jsonl`: Containing 800k entries.
135
  - `meta.json`: Metadata and additional information.
136
 
137
+
138
+ ### StackMathQA400K
139
+
140
+ - Location: `./data/stackmathqa400k`
141
+ - Contents:
142
+ - `all.jsonl`: Containing 400k entries.
143
+ - `meta.json`: Metadata and additional information.
144
+
145
+ ### StackMathQA200K
146
+
147
+ - Location: `./data/stackmathqa200k`
148
+ - Contents:
149
+ - `all.jsonl`: Containing 200k entries.
150
+ - `meta.json`: Metadata and additional information.
151
+
152
+ ### StackMathQA100K
153
+
154
+ - Location: `./data/stackmathqa100k`
155
+ - Contents:
156
+ - `all.jsonl`: Containing 100k entries.
157
+ - `meta.json`: Metadata and additional information.
158
 
159
  ## Citation
160
  We appreciate your use of StackMathQA in your work. If you find this repository helpful, please consider citing it and star this repo. Feel free to contact zhangyif21@tsinghua.edu.cn or open an issue if you have any questions.
 
165
  author={Zhang, Yifan},
166
  year={2024},
167
  }
168
+ ```