File size: 2,623 Bytes
925084f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
---
dataset_info:
  features:
  - name: dataset
    dtype: string
  - name: id
    dtype: string
  - name: messages
    list:
    - name: content
      dtype: string
    - name: role
      dtype: string
  splits:
  - name: no_comment
    num_bytes: 34867073
    num_examples: 67048
  - name: concise_comment
    num_bytes: 41125152
    num_examples: 67048
  - name: detailed_comment
    num_bytes: 70415179
    num_examples: 67048
  - name: descriptive
    num_bytes: 54691253
    num_examples: 72928
  - name: obscure
    num_bytes: 39810584
    num_examples: 72928
  - name: general
    num_bytes: 83739090
    num_examples: 72926
  - name: hardcoded
    num_bytes: 52593148
    num_examples: 72926
  download_size: 165827293
  dataset_size: 377241479
configs:
- config_name: default
  data_files:
  - split: no_comment
    path: data/no_comment-*
  - split: concise_comment
    path: data/concise_comment-*
  - split: detailed_comment
    path: data/detailed_comment-*
  - split: descriptive
    path: data/descriptive-*
  - split: obscure
    path: data/obscure-*
  - split: general
    path: data/general-*
  - split: hardcoded
    path: data/hardcoded-*
task_categories:
- question-answering
language:
- en
tags:
- math
- code
- instruction
pretty_name: Math PoT Instruction with Diverse Coding Styles
---
# Dataset Card for Dataset Name

<!-- Provide a quick summary of the dataset. -->
<!-- This dataset card aims to be a base template for new datasets. It has been generated using [this raw template](https://github.com/huggingface/huggingface_hub/blob/main/src/huggingface_hub/templates/datasetcard_template.md?plain=1). -->

Math PoT instruction with diverse coding styles.


## Dataset Details

arXiv: https://arxiv.org/pdf/2412.11699v1

Github: https://github.com/amao0o0/CoinMath

The dataset is already processed using the Alpaca instruction template and saved in the following JSON object format:
```
{
    "dataset": "Coding style name",
    "id": "Math question id",
    "messages": [
        {"role": "user", "content": "message_text"},
        {"role": "assistant", "content": "message_text"},
        ...
    ],
}
```

Variants in Comment Usage, i.e., no_comment, concise_comment, and detailed_comment, have fewer samples. 
This reduction is due to the removal of synthesis samples whose code lines did not match the original ones.

## Citation

@article{wei2024coinmath,
  title={CoinMath: Harnessing the Power of Coding Instruction for Math LLMs},
  author={Wei, Chengwei and Wang, Bin and Kim, Jung-jae and Liu, Guimei and Chen, Nancy F},
  journal={arXiv preprint arXiv:2412.11699},
  year={2024}
}