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

Model: bartowski/MathCoder2-DeepSeekMath-7B-GGUF
Source: Original Platform
This commit is contained in:
ModelHub XC
2026-08-04 11:27:12 +08:00
commit a96b8dae60
28 changed files with 263 additions and 0 deletions

60
.gitattributes vendored Normal file
View File

@@ -0,0 +1,60 @@
*.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
MathCoder2-DeepSeekMath-7B-Q8_0.gguf filter=lfs diff=lfs merge=lfs -text
MathCoder2-DeepSeekMath-7B-Q6_K_L.gguf filter=lfs diff=lfs merge=lfs -text
MathCoder2-DeepSeekMath-7B-Q6_K.gguf filter=lfs diff=lfs merge=lfs -text
MathCoder2-DeepSeekMath-7B-Q5_K_L.gguf filter=lfs diff=lfs merge=lfs -text
MathCoder2-DeepSeekMath-7B-Q5_K_M.gguf filter=lfs diff=lfs merge=lfs -text
MathCoder2-DeepSeekMath-7B-Q5_K_S.gguf filter=lfs diff=lfs merge=lfs -text
MathCoder2-DeepSeekMath-7B-Q4_K_L.gguf filter=lfs diff=lfs merge=lfs -text
MathCoder2-DeepSeekMath-7B-Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
MathCoder2-DeepSeekMath-7B-Q4_K_S.gguf filter=lfs diff=lfs merge=lfs -text
MathCoder2-DeepSeekMath-7B-Q4_0_8_8.gguf filter=lfs diff=lfs merge=lfs -text
MathCoder2-DeepSeekMath-7B-Q4_0_4_8.gguf filter=lfs diff=lfs merge=lfs -text
MathCoder2-DeepSeekMath-7B-Q4_0_4_4.gguf filter=lfs diff=lfs merge=lfs -text
MathCoder2-DeepSeekMath-7B-Q4_0.gguf filter=lfs diff=lfs merge=lfs -text
MathCoder2-DeepSeekMath-7B-IQ4_XS.gguf filter=lfs diff=lfs merge=lfs -text
MathCoder2-DeepSeekMath-7B-Q3_K_XL.gguf filter=lfs diff=lfs merge=lfs -text
MathCoder2-DeepSeekMath-7B-Q3_K_L.gguf filter=lfs diff=lfs merge=lfs -text
MathCoder2-DeepSeekMath-7B-Q3_K_M.gguf filter=lfs diff=lfs merge=lfs -text
MathCoder2-DeepSeekMath-7B-IQ3_M.gguf filter=lfs diff=lfs merge=lfs -text
MathCoder2-DeepSeekMath-7B-Q3_K_S.gguf filter=lfs diff=lfs merge=lfs -text
MathCoder2-DeepSeekMath-7B-IQ3_XS.gguf filter=lfs diff=lfs merge=lfs -text
MathCoder2-DeepSeekMath-7B-Q2_K_L.gguf filter=lfs diff=lfs merge=lfs -text
MathCoder2-DeepSeekMath-7B-Q2_K.gguf filter=lfs diff=lfs merge=lfs -text
MathCoder2-DeepSeekMath-7B-IQ2_M.gguf filter=lfs diff=lfs merge=lfs -text
MathCoder2-DeepSeekMath-7B-f16.gguf filter=lfs diff=lfs merge=lfs -text
MathCoder2-DeepSeekMath-7B.imatrix filter=lfs diff=lfs merge=lfs -text

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

127
README.md Normal file
View File

@@ -0,0 +1,127 @@
---
base_model: MathGenie/MathCoder2-DeepSeekMath-7B
datasets:
- MathGenie/MathCode-Pile
language:
- en
license: apache-2.0
metrics:
- accuracy
pipeline_tag: text-generation
tags:
- math
quantized_by: bartowski
---
## Llamacpp imatrix Quantizations of MathCoder2-DeepSeekMath-7B
Using <a href="https://github.com/ggerganov/llama.cpp/">llama.cpp</a> release <a href="https://github.com/ggerganov/llama.cpp/releases/tag/b3901">b3901</a> for quantization.
Original model: https://huggingface.co/MathGenie/MathCoder2-DeepSeekMath-7B
All quants made using imatrix option with dataset from [here](https://gist.github.com/bartowski1182/eb213dccb3571f863da82e99418f81e8)
Run them in [LM Studio](https://lmstudio.ai/)
## Prompt format
No prompt format found, check original model page
## Download a file (not the whole branch) from below:
| Filename | Quant type | File Size | Split | Description |
| -------- | ---------- | --------- | ----- | ----------- |
| [MathCoder2-DeepSeekMath-7B-f16.gguf](https://huggingface.co/bartowski/MathCoder2-DeepSeekMath-7B-GGUF/blob/main/MathCoder2-DeepSeekMath-7B-f16.gguf) | f16 | 13.83GB | false | Full F16 weights. |
| [MathCoder2-DeepSeekMath-7B-Q8_0.gguf](https://huggingface.co/bartowski/MathCoder2-DeepSeekMath-7B-GGUF/blob/main/MathCoder2-DeepSeekMath-7B-Q8_0.gguf) | Q8_0 | 7.35GB | false | Extremely high quality, generally unneeded but max available quant. |
| [MathCoder2-DeepSeekMath-7B-Q6_K_L.gguf](https://huggingface.co/bartowski/MathCoder2-DeepSeekMath-7B-GGUF/blob/main/MathCoder2-DeepSeekMath-7B-Q6_K_L.gguf) | Q6_K_L | 5.88GB | false | Uses Q8_0 for embed and output weights. Very high quality, near perfect, *recommended*. |
| [MathCoder2-DeepSeekMath-7B-Q6_K.gguf](https://huggingface.co/bartowski/MathCoder2-DeepSeekMath-7B-GGUF/blob/main/MathCoder2-DeepSeekMath-7B-Q6_K.gguf) | Q6_K | 5.67GB | false | Very high quality, near perfect, *recommended*. |
| [MathCoder2-DeepSeekMath-7B-Q5_K_L.gguf](https://huggingface.co/bartowski/MathCoder2-DeepSeekMath-7B-GGUF/blob/main/MathCoder2-DeepSeekMath-7B-Q5_K_L.gguf) | Q5_K_L | 5.19GB | false | Uses Q8_0 for embed and output weights. High quality, *recommended*. |
| [MathCoder2-DeepSeekMath-7B-Q5_K_M.gguf](https://huggingface.co/bartowski/MathCoder2-DeepSeekMath-7B-GGUF/blob/main/MathCoder2-DeepSeekMath-7B-Q5_K_M.gguf) | Q5_K_M | 4.93GB | false | High quality, *recommended*. |
| [MathCoder2-DeepSeekMath-7B-Q5_K_S.gguf](https://huggingface.co/bartowski/MathCoder2-DeepSeekMath-7B-GGUF/blob/main/MathCoder2-DeepSeekMath-7B-Q5_K_S.gguf) | Q5_K_S | 4.81GB | false | High quality, *recommended*. |
| [MathCoder2-DeepSeekMath-7B-Q4_K_L.gguf](https://huggingface.co/bartowski/MathCoder2-DeepSeekMath-7B-GGUF/blob/main/MathCoder2-DeepSeekMath-7B-Q4_K_L.gguf) | Q4_K_L | 4.53GB | false | Uses Q8_0 for embed and output weights. Good quality, *recommended*. |
| [MathCoder2-DeepSeekMath-7B-Q4_K_M.gguf](https://huggingface.co/bartowski/MathCoder2-DeepSeekMath-7B-GGUF/blob/main/MathCoder2-DeepSeekMath-7B-Q4_K_M.gguf) | Q4_K_M | 4.22GB | false | Good quality, default size for must use cases, *recommended*. |
| [MathCoder2-DeepSeekMath-7B-Q3_K_XL.gguf](https://huggingface.co/bartowski/MathCoder2-DeepSeekMath-7B-GGUF/blob/main/MathCoder2-DeepSeekMath-7B-Q3_K_XL.gguf) | Q3_K_XL | 4.11GB | false | Uses Q8_0 for embed and output weights. Lower quality but usable, good for low RAM availability. |
| [MathCoder2-DeepSeekMath-7B-Q4_K_S.gguf](https://huggingface.co/bartowski/MathCoder2-DeepSeekMath-7B-GGUF/blob/main/MathCoder2-DeepSeekMath-7B-Q4_K_S.gguf) | Q4_K_S | 4.03GB | false | Slightly lower quality with more space savings, *recommended*. |
| [MathCoder2-DeepSeekMath-7B-Q4_0.gguf](https://huggingface.co/bartowski/MathCoder2-DeepSeekMath-7B-GGUF/blob/main/MathCoder2-DeepSeekMath-7B-Q4_0.gguf) | Q4_0 | 4.01GB | false | Legacy format, generally not worth using over similarly sized formats |
| [MathCoder2-DeepSeekMath-7B-Q4_0_8_8.gguf](https://huggingface.co/bartowski/MathCoder2-DeepSeekMath-7B-GGUF/blob/main/MathCoder2-DeepSeekMath-7B-Q4_0_8_8.gguf) | Q4_0_8_8 | 4.00GB | false | Optimized for ARM inference. Requires 'sve' support (see link below). *Don't use on Mac or Windows*. |
| [MathCoder2-DeepSeekMath-7B-Q4_0_4_8.gguf](https://huggingface.co/bartowski/MathCoder2-DeepSeekMath-7B-GGUF/blob/main/MathCoder2-DeepSeekMath-7B-Q4_0_4_8.gguf) | Q4_0_4_8 | 4.00GB | false | Optimized for ARM inference. Requires 'i8mm' support (see link below). *Don't use on Mac or Windows*. |
| [MathCoder2-DeepSeekMath-7B-Q4_0_4_4.gguf](https://huggingface.co/bartowski/MathCoder2-DeepSeekMath-7B-GGUF/blob/main/MathCoder2-DeepSeekMath-7B-Q4_0_4_4.gguf) | Q4_0_4_4 | 4.00GB | false | Optimized for ARM inference. Should work well on all ARM chips, pick this if you're unsure. *Don't use on Mac or Windows*. |
| [MathCoder2-DeepSeekMath-7B-IQ4_XS.gguf](https://huggingface.co/bartowski/MathCoder2-DeepSeekMath-7B-GGUF/blob/main/MathCoder2-DeepSeekMath-7B-IQ4_XS.gguf) | IQ4_XS | 3.80GB | false | Decent quality, smaller than Q4_K_S with similar performance, *recommended*. |
| [MathCoder2-DeepSeekMath-7B-Q3_K_L.gguf](https://huggingface.co/bartowski/MathCoder2-DeepSeekMath-7B-GGUF/blob/main/MathCoder2-DeepSeekMath-7B-Q3_K_L.gguf) | Q3_K_L | 3.75GB | false | Lower quality but usable, good for low RAM availability. |
| [MathCoder2-DeepSeekMath-7B-Q3_K_M.gguf](https://huggingface.co/bartowski/MathCoder2-DeepSeekMath-7B-GGUF/blob/main/MathCoder2-DeepSeekMath-7B-Q3_K_M.gguf) | Q3_K_M | 3.46GB | false | Low quality. |
| [MathCoder2-DeepSeekMath-7B-IQ3_M.gguf](https://huggingface.co/bartowski/MathCoder2-DeepSeekMath-7B-GGUF/blob/main/MathCoder2-DeepSeekMath-7B-IQ3_M.gguf) | IQ3_M | 3.29GB | false | Medium-low quality, new method with decent performance comparable to Q3_K_M. |
| [MathCoder2-DeepSeekMath-7B-Q3_K_S.gguf](https://huggingface.co/bartowski/MathCoder2-DeepSeekMath-7B-GGUF/blob/main/MathCoder2-DeepSeekMath-7B-Q3_K_S.gguf) | Q3_K_S | 3.14GB | false | Low quality, not recommended. |
| [MathCoder2-DeepSeekMath-7B-Q2_K_L.gguf](https://huggingface.co/bartowski/MathCoder2-DeepSeekMath-7B-GGUF/blob/main/MathCoder2-DeepSeekMath-7B-Q2_K_L.gguf) | Q2_K_L | 3.13GB | false | Uses Q8_0 for embed and output weights. Very low quality but surprisingly usable. |
| [MathCoder2-DeepSeekMath-7B-IQ3_XS.gguf](https://huggingface.co/bartowski/MathCoder2-DeepSeekMath-7B-GGUF/blob/main/MathCoder2-DeepSeekMath-7B-IQ3_XS.gguf) | IQ3_XS | 2.99GB | false | Lower quality, new method with decent performance, slightly better than Q3_K_S. |
| [MathCoder2-DeepSeekMath-7B-Q2_K.gguf](https://huggingface.co/bartowski/MathCoder2-DeepSeekMath-7B-GGUF/blob/main/MathCoder2-DeepSeekMath-7B-Q2_K.gguf) | Q2_K | 2.72GB | false | Very low quality but surprisingly usable. |
| [MathCoder2-DeepSeekMath-7B-IQ2_M.gguf](https://huggingface.co/bartowski/MathCoder2-DeepSeekMath-7B-GGUF/blob/main/MathCoder2-DeepSeekMath-7B-IQ2_M.gguf) | IQ2_M | 2.54GB | false | Relatively low quality, uses SOTA techniques to be surprisingly usable. |
## Embed/output weights
Some of these quants (Q3_K_XL, Q4_K_L etc) are the standard quantization method with the embeddings and output weights quantized to Q8_0 instead of what they would normally default to.
Some say that this improves the quality, others don't notice any difference. If you use these models PLEASE COMMENT with your findings. I would like feedback that these are actually used and useful so I don't keep uploading quants no one is using.
Thanks!
## Downloading using huggingface-cli
First, make sure you have hugginface-cli installed:
```
pip install -U "huggingface_hub[cli]"
```
Then, you can target the specific file you want:
```
huggingface-cli download bartowski/MathCoder2-DeepSeekMath-7B-GGUF --include "MathCoder2-DeepSeekMath-7B-Q4_K_M.gguf" --local-dir ./
```
If the model is bigger than 50GB, it will have been split into multiple files. In order to download them all to a local folder, run:
```
huggingface-cli download bartowski/MathCoder2-DeepSeekMath-7B-GGUF --include "MathCoder2-DeepSeekMath-7B-Q8_0/*" --local-dir ./
```
You can either specify a new local-dir (MathCoder2-DeepSeekMath-7B-Q8_0) or download them all in place (./)
## Q4_0_X_X
These are *NOT* for Metal (Apple) offloading, only ARM chips.
If you're using an ARM chip, the Q4_0_X_X quants will have a substantial speedup. Check out Q4_0_4_4 speed comparisons [on the original pull request](https://github.com/ggerganov/llama.cpp/pull/5780#pullrequestreview-21657544660)
To check which one would work best for your ARM chip, you can check [AArch64 SoC features](https://gpages.juszkiewicz.com.pl/arm-socs-table/arm-socs.html) (thanks EloyOn!).
## Which file should I choose?
A great write up with charts showing various performances is provided by Artefact2 [here](https://gist.github.com/Artefact2/b5f810600771265fc1e39442288e8ec9)
The first thing to figure out is how big a model you can run. To do this, you'll need to figure out how much RAM and/or VRAM you have.
If you want your model running as FAST as possible, you'll want to fit the whole thing on your GPU's VRAM. Aim for a quant with a file size 1-2GB smaller than your GPU's total VRAM.
If you want the absolute maximum quality, add both your system RAM and your GPU's VRAM together, then similarly grab a quant with a file size 1-2GB Smaller than that total.
Next, you'll need to decide if you want to use an 'I-quant' or a 'K-quant'.
If you don't want to think too much, grab one of the K-quants. These are in format 'QX_K_X', like Q5_K_M.
If you want to get more into the weeds, you can check out this extremely useful feature chart:
[llama.cpp feature matrix](https://github.com/ggerganov/llama.cpp/wiki/Feature-matrix)
But basically, if you're aiming for below Q4, and you're running cuBLAS (Nvidia) or rocBLAS (AMD), you should look towards the I-quants. These are in format IQX_X, like IQ3_M. These are newer and offer better performance for their size.
These I-quants can also be used on CPU and Apple Metal, but will be slower than their K-quant equivalent, so speed vs performance is a tradeoff you'll have to decide.
The I-quants are *not* compatible with Vulcan, which is also AMD, so if you have an AMD card double check if you're using the rocBLAS build or the Vulcan build. At the time of writing this, LM Studio has a preview with ROCm support, and other inference engines have specific builds for ROCm.
## Credits
Thank you kalomaze and Dampf for assistance in creating the imatrix calibration dataset
Thank you ZeroWw for the inspiration to experiment with embed/output
Want to support my work? Visit my ko-fi page here: https://ko-fi.com/bartowski

1
configuration.json Normal file
View File

@@ -0,0 +1 @@
{"framework": "pytorch", "task": "text-generation", "allow_remote": true}