scikkk commited on
Commit
56b59a4
·
verified ·
1 Parent(s): 5291a32

Add files using upload-large-folder tool

Browse files
Files changed (1) hide show
  1. README.md +45 -28
README.md CHANGED
@@ -6,65 +6,82 @@ metrics:
6
  - accuracy
7
  pipeline_tag: text-generation
8
  ---
9
- # MathCoder: Seamless Code Integration in LLMs for Enhanced Mathematical Reasoning
10
-
11
- Paper: [https://arxiv.org/pdf/2310.03731.pdf](https://arxiv.org/pdf/2310.03731.pdf)
12
 
13
  Repo: [https://github.com/mathllm/MathCoder](https://github.com/mathllm/MathCoder)
14
 
15
 
16
  ## Introduction
17
- We introduce MathCoder, a series of open-source large language models (LLMs) specifically tailored for general math problem-solving.
18
 
19
- | Base Model: Llama-2 | Base Model: Code Llama |
20
  |-------------------------------------------------------------------|-----------------------------------------------------------------------|
21
- | [MathCoder-L-7B](https://huggingface.co/MathLLM/MathCoder-L-7B) | [MathCoder-CL-7B](https://huggingface.co/MathLLM/MathCoder-CL-7B) |
22
- | [MathCoder-L-13B](https://huggingface.co/MathLLM/MathCoder-L-13B) | [MathCoder-CL-34B](https://huggingface.co/MathLLM/MathCoder-CL-34B) |
23
 
24
 
25
- ## Training Data
26
- The models are trained on the [MathCodeInstruct](https://huggingface.co/datasets/MathLLM/MathCodeInstruct) Dataset.
27
 
 
 
28
 
29
- ## Training Procedure
30
- The models are fine-tuned with the MathCodeInstruct dataset using the original Llama-2 and CodeLlama models as base models. Check out our paper and repo for more details.
31
 
32
- ## Evaluation
 
 
 
 
 
 
33
 
34
  <br>
35
  <div align="center">
36
- <img src="result.png" width="100%" title="Result Figure">
37
  </div>
38
 
 
39
 
40
 
41
- ## Usage
42
- You can use the models through Huggingface's Transformers library. Use the pipeline function to create a text-generation pipeline with the model of your choice, then feed in a math problem to get the solution.
43
- Check our Github repo for datails.
44
 
 
 
 
 
 
45
 
46
  ## **Citation**
47
 
48
- Please cite the paper if you use our data, model or code. Please also kindly cite the original dataset papers.
49
 
50
  ```
51
  @inproceedings{
52
- wang2024mathcoder,
53
- title={MathCoder: Seamless Code Integration in {LLM}s for Enhanced Mathematical Reasoning},
54
- author={Ke Wang and Houxing Ren and Aojun Zhou and Zimu Lu and Sichun Luo and Weikang Shi and Renrui Zhang and Linqi Song and Mingjie Zhan and Hongsheng Li},
55
- booktitle={The Twelfth International Conference on Learning Representations},
56
- year={2024},
57
- url={https://openreview.net/forum?id=z8TW0ttBPp}
58
  }
59
  ```
60
-
61
  ```
62
  @inproceedings{
63
- zhou2024solving,
64
- title={Solving Challenging Math Word Problems Using {GPT}-4 Code Interpreter with Code-based Self-Verification},
65
- author={Aojun Zhou and Ke Wang and Zimu Lu and Weikang Shi and Sichun Luo and Zipeng Qin and Shaoqing Lu and Anya Jia and Linqi Song and Mingjie Zhan and Hongsheng Li},
 
 
 
 
 
 
 
 
 
 
66
  booktitle={The Twelfth International Conference on Learning Representations},
67
  year={2024},
68
- url={https://openreview.net/forum?id=c8McWs4Av0}
69
  }
70
  ```
 
6
  - accuracy
7
  pipeline_tag: text-generation
8
  ---
9
+ # MathCoder-VL: Bridging Vision and Code for Enhanced Multimodal Mathematical Reasoning
 
 
10
 
11
  Repo: [https://github.com/mathllm/MathCoder](https://github.com/mathllm/MathCoder)
12
 
13
 
14
  ## Introduction
15
+ We introduce MathCoder-VL, a series of open-source large multimodal models (LMMs) specifically tailored for general math problem-solving. We also introduce [FigCodifier-8B](https://huggingface.co/MathLLMs/FigCodifier), an image-to-code model.
16
 
17
+ | Base Model |Ours |
18
  |-------------------------------------------------------------------|-----------------------------------------------------------------------|
19
+ | [Mini-InternVL-Chat-2B-V1-5](https://huggingface.co/OpenGVLab/Mini-InternVL-Chat-2B-V1-5) | [MathCoder-VL-2B](https://huggingface.co/MathLLMs/MathCoder-VL-2B) |
20
+ | [InternVL2-8B](https://huggingface.co/OpenGVLab/InternVL2-8B) | [MathCoder-VL-8B](https://huggingface.co/MathLLMs/MathCoder-VL-8B)|
21
 
22
 
 
 
23
 
24
+ ## Usage
25
+ For training and inference code, please refer to [InternVL](https://github.com/OpenGVLab/InternVL).
26
 
 
 
27
 
28
+ ## Motivation
29
+ <br>
30
+ <div align="center">
31
+ <img src="./examples/fig1.png" width="100%" title="Result Figure">
32
+ </div>
33
+
34
+ ## Construction of FigCodifier
35
 
36
  <br>
37
  <div align="center">
38
+ <img src="./examples/fig2.png" width="100%" title="Result Figure">
39
  </div>
40
 
41
+ ## Construction of MathCoder-VL
42
 
43
 
44
+ <div align="center">
45
+ <img src="./examples/fig4.png" width="100%" title="Result Figure">
46
+ </div>
47
 
48
+ ## Performance
49
+
50
+ <div align="center">
51
+ <img src="./examples/tab1.png" width="100%" title="Result Figure">
52
+ </div>
53
 
54
  ## **Citation**
55
 
56
+ Please cite the paper if you use our data, model or code.
57
 
58
  ```
59
  @inproceedings{
60
+ wang2025mathcodervl,
61
+ title={MathCoder-{VL}: Bridging Vision and Code for Enhanced Multimodal Mathematical Reasoning},
62
+ author={Ke Wang and Junting Pan and Linda Wei and Aojun Zhou and Weikang Shi and Zimu Lu and Han Xiao and Yunqiao Yang and Houxing Ren and Mingjie Zhan and Hongsheng Li},
63
+ booktitle={The 63rd Annual Meeting of the Association for Computational Linguistics},
64
+ year={2025},
65
+ url={https://openreview.net/forum?id=nuvtX1imAb}
66
  }
67
  ```
 
68
  ```
69
  @inproceedings{
70
+ lu2025mathcoder,
71
+ title={MathCoder2: Better Math Reasoning from Continued Pretraining on Model-translated Mathematical Code},
72
+ author={Zimu Lu and Aojun Zhou and Ke Wang and Houxing Ren and Weikang Shi and Junting Pan and Mingjie Zhan and Hongsheng Li},
73
+ booktitle={The Thirteenth International Conference on Learning Representations},
74
+ year={2025},
75
+ url={https://openreview.net/forum?id=1Iuw1jcIrf}
76
+ }
77
+ ```
78
+ ```
79
+ @inproceedings{
80
+ wang2024mathcoder,
81
+ title={MathCoder: Seamless Code Integration in {LLM}s for Enhanced Mathematical Reasoning},
82
+ author={Ke Wang and Houxing Ren and Aojun Zhou and Zimu Lu and Sichun Luo and Weikang Shi and Renrui Zhang and Linqi Song and Mingjie Zhan and Hongsheng Li},
83
  booktitle={The Twelfth International Conference on Learning Representations},
84
  year={2024},
85
+ url={https://openreview.net/forum?id=z8TW0ttBPp}
86
  }
87
  ```