初始化项目,由ModelHub XC社区提供模型

Model: RichardErkhov/MathLLMs_-_MathCoder-CL-7B-gguf
Source: Original Platform
This commit is contained in:
ModelHub XC
2026-07-20 04:43:09 +08:00
commit 8f42486562
24 changed files with 237 additions and 0 deletions

57
.gitattributes vendored Normal file
View File

@@ -0,0 +1,57 @@
*.7z filter=lfs diff=lfs merge=lfs -text
*.arrow filter=lfs diff=lfs merge=lfs -text
*.bin filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.ckpt filter=lfs diff=lfs merge=lfs -text
*.ftz filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.h5 filter=lfs diff=lfs merge=lfs -text
*.joblib filter=lfs diff=lfs merge=lfs -text
*.lfs.* filter=lfs diff=lfs merge=lfs -text
*.mlmodel filter=lfs diff=lfs merge=lfs -text
*.model filter=lfs diff=lfs merge=lfs -text
*.msgpack filter=lfs diff=lfs merge=lfs -text
*.npy filter=lfs diff=lfs merge=lfs -text
*.npz filter=lfs diff=lfs merge=lfs -text
*.onnx filter=lfs diff=lfs merge=lfs -text
*.ot filter=lfs diff=lfs merge=lfs -text
*.parquet filter=lfs diff=lfs merge=lfs -text
*.pb filter=lfs diff=lfs merge=lfs -text
*.pickle filter=lfs diff=lfs merge=lfs -text
*.pkl filter=lfs diff=lfs merge=lfs -text
*.pt filter=lfs diff=lfs merge=lfs -text
*.pth filter=lfs diff=lfs merge=lfs -text
*.rar filter=lfs diff=lfs merge=lfs -text
*.safetensors filter=lfs diff=lfs merge=lfs -text
saved_model/**/* filter=lfs diff=lfs merge=lfs -text
*.tar.* filter=lfs diff=lfs merge=lfs -text
*.tar filter=lfs diff=lfs merge=lfs -text
*.tflite filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.wasm filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text
*tfevents* filter=lfs diff=lfs merge=lfs -text
MathCoder-CL-7B.Q2_K.gguf filter=lfs diff=lfs merge=lfs -text
MathCoder-CL-7B.IQ3_XS.gguf filter=lfs diff=lfs merge=lfs -text
MathCoder-CL-7B.IQ3_S.gguf filter=lfs diff=lfs merge=lfs -text
MathCoder-CL-7B.Q3_K_S.gguf filter=lfs diff=lfs merge=lfs -text
MathCoder-CL-7B.IQ3_M.gguf filter=lfs diff=lfs merge=lfs -text
MathCoder-CL-7B.Q3_K.gguf filter=lfs diff=lfs merge=lfs -text
MathCoder-CL-7B.Q3_K_M.gguf filter=lfs diff=lfs merge=lfs -text
MathCoder-CL-7B.Q3_K_L.gguf filter=lfs diff=lfs merge=lfs -text
MathCoder-CL-7B.IQ4_XS.gguf filter=lfs diff=lfs merge=lfs -text
MathCoder-CL-7B.Q4_0.gguf filter=lfs diff=lfs merge=lfs -text
MathCoder-CL-7B.IQ4_NL.gguf filter=lfs diff=lfs merge=lfs -text
MathCoder-CL-7B.Q4_K_S.gguf filter=lfs diff=lfs merge=lfs -text
MathCoder-CL-7B.Q4_K.gguf filter=lfs diff=lfs merge=lfs -text
MathCoder-CL-7B.Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
MathCoder-CL-7B.Q4_1.gguf filter=lfs diff=lfs merge=lfs -text
MathCoder-CL-7B.Q5_0.gguf filter=lfs diff=lfs merge=lfs -text
MathCoder-CL-7B.Q5_K_S.gguf filter=lfs diff=lfs merge=lfs -text
MathCoder-CL-7B.Q5_K.gguf filter=lfs diff=lfs merge=lfs -text
MathCoder-CL-7B.Q5_K_M.gguf filter=lfs diff=lfs merge=lfs -text
MathCoder-CL-7B.Q5_1.gguf filter=lfs diff=lfs merge=lfs -text
MathCoder-CL-7B.Q6_K.gguf filter=lfs diff=lfs merge=lfs -text
MathCoder-CL-7B.Q8_0.gguf filter=lfs diff=lfs merge=lfs -text

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a5d81c0a6b7f0817e0c6eaca05abd8b6449d899c0ed0cb59e21577b45f8fe844
size 3114988032

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:34fb99019cb16ab5489bedac5f926c34d1f77129d98160e01736ccae3331c446
size 2948428288

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:3b4ae0db3b1fc44cb1b44dcadc6937dabe551265eb34a8ce7ebab236e03d2098
size 2796646912

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:53db58cce7a01562277fbadfb86551d968a623a3b25554c34c3c923106d145a9
size 3848488192

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:6d52bd7c3902128bfd854afceb00b3137d8f68c1999223df19acfb64b5621726
size 3647650048

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:10ea6ff4d71264cf4d591fe6fae00db51921007c2275ecd1f5e23d202b0b5fa4
size 2532977408

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:13dbe0a9d4da58c9d7ac279dd3812ff3776c39228c458b6822ad104d75384852
size 3298128384

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:b0dc25e7f92bfaf600921d76b04580892a0d34174534192c43a0fc875c194282
size 3597234688

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:13dbe0a9d4da58c9d7ac279dd3812ff3776c39228c458b6822ad104d75384852
size 3298128384

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:5fc7905926d87da71fce162e8476b83dc682fdf89986135b9845faa091f990d4
size 2948428288

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:64b0aba3b43b51d14a582f24f0f1299d33eafde56e450876b9e7bdb10cd96a11
size 3825943808

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a4a084705e54437e86db80658cf195799f0e756cc94a9f4012f327ef293578e0
size 4238892288

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:be222585183b05da88dab6b03b617c141a69106f721fb2bc3fba27610474e1ea
size 4081140992

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:be222585183b05da88dab6b03b617c141a69106f721fb2bc3fba27610474e1ea
size 4081140992

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:375195308b9986a1ab6804994e2738ed37c8916fdbbbc77f9164cdb4c64f96c4
size 3856876800

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:890a20e04b06ef606b94d37460d602e7dafdf86f018c3765bfaf90af0348dc77
size 4651840768

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:c05d4ffc19808adb02614e784d2c72ddfb4b8bdb4f2e044c12d50b9d4f4f51a1
size 5064789248

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:6f82f43c544c154fde15b5033f6bc54a33e0a164eea7e925f30b85277814877e
size 4783305984

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:6f82f43c544c154fde15b5033f6bc54a33e0a164eea7e925f30b85277814877e
size 4783305984

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:38a791fa6741a37f95ab9fe84c4e4a153eaafd0b750831aabf6ad1611d76fdfd
size 4651840768

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:7ae9ef2b732eeeb7d272ba4733a282c528f971f1815138e2607653d459ebbd5d
size 5529356288

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:20794b3bb8443ba87ee749eb95f88311826df647d69e2dfdcba2b202203a830d
size 7161299456

114
README.md Normal file
View File

@@ -0,0 +1,114 @@
Quantization made by Richard Erkhov.
[Github](https://github.com/RichardErkhov)
[Discord](https://discord.gg/pvy7H8DZMG)
[Request more models](https://github.com/RichardErkhov/quant_request)
MathCoder-CL-7B - GGUF
- Model creator: https://huggingface.co/MathLLMs/
- Original model: https://huggingface.co/MathLLMs/MathCoder-CL-7B/
| Name | Quant method | Size |
| ---- | ---- | ---- |
| [MathCoder-CL-7B.Q2_K.gguf](https://huggingface.co/RichardErkhov/MathLLMs_-_MathCoder-CL-7B-gguf/blob/main/MathCoder-CL-7B.Q2_K.gguf) | Q2_K | 2.36GB |
| [MathCoder-CL-7B.IQ3_XS.gguf](https://huggingface.co/RichardErkhov/MathLLMs_-_MathCoder-CL-7B-gguf/blob/main/MathCoder-CL-7B.IQ3_XS.gguf) | IQ3_XS | 2.6GB |
| [MathCoder-CL-7B.IQ3_S.gguf](https://huggingface.co/RichardErkhov/MathLLMs_-_MathCoder-CL-7B-gguf/blob/main/MathCoder-CL-7B.IQ3_S.gguf) | IQ3_S | 2.75GB |
| [MathCoder-CL-7B.Q3_K_S.gguf](https://huggingface.co/RichardErkhov/MathLLMs_-_MathCoder-CL-7B-gguf/blob/main/MathCoder-CL-7B.Q3_K_S.gguf) | Q3_K_S | 2.75GB |
| [MathCoder-CL-7B.IQ3_M.gguf](https://huggingface.co/RichardErkhov/MathLLMs_-_MathCoder-CL-7B-gguf/blob/main/MathCoder-CL-7B.IQ3_M.gguf) | IQ3_M | 2.9GB |
| [MathCoder-CL-7B.Q3_K.gguf](https://huggingface.co/RichardErkhov/MathLLMs_-_MathCoder-CL-7B-gguf/blob/main/MathCoder-CL-7B.Q3_K.gguf) | Q3_K | 3.07GB |
| [MathCoder-CL-7B.Q3_K_M.gguf](https://huggingface.co/RichardErkhov/MathLLMs_-_MathCoder-CL-7B-gguf/blob/main/MathCoder-CL-7B.Q3_K_M.gguf) | Q3_K_M | 3.07GB |
| [MathCoder-CL-7B.Q3_K_L.gguf](https://huggingface.co/RichardErkhov/MathLLMs_-_MathCoder-CL-7B-gguf/blob/main/MathCoder-CL-7B.Q3_K_L.gguf) | Q3_K_L | 3.35GB |
| [MathCoder-CL-7B.IQ4_XS.gguf](https://huggingface.co/RichardErkhov/MathLLMs_-_MathCoder-CL-7B-gguf/blob/main/MathCoder-CL-7B.IQ4_XS.gguf) | IQ4_XS | 3.4GB |
| [MathCoder-CL-7B.Q4_0.gguf](https://huggingface.co/RichardErkhov/MathLLMs_-_MathCoder-CL-7B-gguf/blob/main/MathCoder-CL-7B.Q4_0.gguf) | Q4_0 | 3.56GB |
| [MathCoder-CL-7B.IQ4_NL.gguf](https://huggingface.co/RichardErkhov/MathLLMs_-_MathCoder-CL-7B-gguf/blob/main/MathCoder-CL-7B.IQ4_NL.gguf) | IQ4_NL | 3.58GB |
| [MathCoder-CL-7B.Q4_K_S.gguf](https://huggingface.co/RichardErkhov/MathLLMs_-_MathCoder-CL-7B-gguf/blob/main/MathCoder-CL-7B.Q4_K_S.gguf) | Q4_K_S | 3.59GB |
| [MathCoder-CL-7B.Q4_K.gguf](https://huggingface.co/RichardErkhov/MathLLMs_-_MathCoder-CL-7B-gguf/blob/main/MathCoder-CL-7B.Q4_K.gguf) | Q4_K | 3.8GB |
| [MathCoder-CL-7B.Q4_K_M.gguf](https://huggingface.co/RichardErkhov/MathLLMs_-_MathCoder-CL-7B-gguf/blob/main/MathCoder-CL-7B.Q4_K_M.gguf) | Q4_K_M | 3.8GB |
| [MathCoder-CL-7B.Q4_1.gguf](https://huggingface.co/RichardErkhov/MathLLMs_-_MathCoder-CL-7B-gguf/blob/main/MathCoder-CL-7B.Q4_1.gguf) | Q4_1 | 3.95GB |
| [MathCoder-CL-7B.Q5_0.gguf](https://huggingface.co/RichardErkhov/MathLLMs_-_MathCoder-CL-7B-gguf/blob/main/MathCoder-CL-7B.Q5_0.gguf) | Q5_0 | 4.33GB |
| [MathCoder-CL-7B.Q5_K_S.gguf](https://huggingface.co/RichardErkhov/MathLLMs_-_MathCoder-CL-7B-gguf/blob/main/MathCoder-CL-7B.Q5_K_S.gguf) | Q5_K_S | 4.33GB |
| [MathCoder-CL-7B.Q5_K.gguf](https://huggingface.co/RichardErkhov/MathLLMs_-_MathCoder-CL-7B-gguf/blob/main/MathCoder-CL-7B.Q5_K.gguf) | Q5_K | 4.45GB |
| [MathCoder-CL-7B.Q5_K_M.gguf](https://huggingface.co/RichardErkhov/MathLLMs_-_MathCoder-CL-7B-gguf/blob/main/MathCoder-CL-7B.Q5_K_M.gguf) | Q5_K_M | 4.45GB |
| [MathCoder-CL-7B.Q5_1.gguf](https://huggingface.co/RichardErkhov/MathLLMs_-_MathCoder-CL-7B-gguf/blob/main/MathCoder-CL-7B.Q5_1.gguf) | Q5_1 | 4.72GB |
| [MathCoder-CL-7B.Q6_K.gguf](https://huggingface.co/RichardErkhov/MathLLMs_-_MathCoder-CL-7B-gguf/blob/main/MathCoder-CL-7B.Q6_K.gguf) | Q6_K | 5.15GB |
| [MathCoder-CL-7B.Q8_0.gguf](https://huggingface.co/RichardErkhov/MathLLMs_-_MathCoder-CL-7B-gguf/blob/main/MathCoder-CL-7B.Q8_0.gguf) | Q8_0 | 6.67GB |
Original model description:
---
license: apache-2.0
language:
- en
metrics:
- accuracy
pipeline_tag: text-generation
---
# MathCoder: Seamless Code Integration in LLMs for Enhanced Mathematical Reasoning
Paper: [https://arxiv.org/pdf/2310.03731.pdf](https://arxiv.org/pdf/2310.03731.pdf)
Repo: [https://github.com/mathllm/MathCoder](https://github.com/mathllm/MathCoder)
## Introduction
We introduce MathCoder, a series of open-source large language models (LLMs) specifically tailored for general math problem-solving.
| Base Model: Llama-2 | Base Model: Code Llama |
|-------------------------------------------------------------------|-----------------------------------------------------------------------|
| [MathCoder-L-7B](https://huggingface.co/MathLLM/MathCoder-L-7B) | [MathCoder-CL-7B](https://huggingface.co/MathLLM/MathCoder-CL-7B) |
| [MathCoder-L-13B](https://huggingface.co/MathLLM/MathCoder-L-13B) | [MathCoder-CL-34B](https://huggingface.co/MathLLM/MathCoder-CL-34B) |
## Training Data
The models are trained on the [MathCodeInstruct](https://huggingface.co/datasets/MathLLM/MathCodeInstruct) Dataset.
## Training Procedure
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.
## Evaluation
<br>
<div align="center">
<img src="result.png" width="100%" title="Result Figure">
</div>
## Usage
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.
Check our Github repo for datails.
## **Citation**
Please cite the paper if you use our data, model or code. Please also kindly cite the original dataset papers.
```
@inproceedings{
wang2024mathcoder,
title={MathCoder: Seamless Code Integration in {LLM}s for Enhanced Mathematical Reasoning},
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},
booktitle={The Twelfth International Conference on Learning Representations},
year={2024},
url={https://openreview.net/forum?id=z8TW0ttBPp}
}
```
```
@inproceedings{
zhou2024solving,
title={Solving Challenging Math Word Problems Using {GPT}-4 Code Interpreter with Code-based Self-Verification},
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},
booktitle={The Twelfth International Conference on Learning Representations},
year={2024},
url={https://openreview.net/forum?id=c8McWs4Av0}
}
```