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

Model: bartowski/entfane_math-genius-7B-GGUF
Source: Original Platform
This commit is contained in:
ModelHub XC
2026-10-09 12:17:13 +08:00
commit 0be1e843f2
28 changed files with 289 additions and 0 deletions

49
.gitattributes vendored Normal file
View File

@@ -0,0 +1,49 @@
*.7z filter=lfs diff=lfs merge=lfs -text
*.arrow filter=lfs diff=lfs merge=lfs -text
*.bin filter=lfs diff=lfs merge=lfs -text
*.bin.* filter=lfs diff=lfs merge=lfs -text
*.bz2 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
*.model filter=lfs diff=lfs merge=lfs -text
*.msgpack 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
*.pt filter=lfs diff=lfs merge=lfs -text
*.pth filter=lfs diff=lfs merge=lfs -text
*.rar filter=lfs diff=lfs merge=lfs -text
saved_model/**/* 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
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zstandard filter=lfs diff=lfs merge=lfs -text
*.tfevents* filter=lfs diff=lfs merge=lfs -text
*.db* filter=lfs diff=lfs merge=lfs -text
*.ark* filter=lfs diff=lfs merge=lfs -text
**/*ckpt*data* filter=lfs diff=lfs merge=lfs -text
**/*ckpt*.meta filter=lfs diff=lfs merge=lfs -text
**/*ckpt*.index filter=lfs diff=lfs merge=lfs -text
*.safetensors filter=lfs diff=lfs merge=lfs -text
*.ckpt filter=lfs diff=lfs merge=lfs -text
*.gguf* filter=lfs diff=lfs merge=lfs -text
*.ggml filter=lfs diff=lfs merge=lfs -text
*.llamafile* filter=lfs diff=lfs merge=lfs -text
*.pt2 filter=lfs diff=lfs merge=lfs -text
*.mlmodel filter=lfs diff=lfs merge=lfs -text
*.npy filter=lfs diff=lfs merge=lfs -text
*.npz filter=lfs diff=lfs merge=lfs -text
*.pickle filter=lfs diff=lfs merge=lfs -text
*.pkl filter=lfs diff=lfs merge=lfs -text
*.tar filter=lfs diff=lfs merge=lfs -text
*.wasm filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text
*tfevents* filter=lfs diff=lfs merge=lfs -text
entfane_math-genius-7B.imatrix filter=lfs diff=lfs merge=lfs -text

164
README.md Normal file
View File

@@ -0,0 +1,164 @@
---
quantized_by: bartowski
pipeline_tag: text-generation
base_model: entfane/math-genius-7B
base_model_relation: quantized
---
## Llamacpp imatrix Quantizations of math-genius-7B by entfane
Using <a href="https://github.com/ggerganov/llama.cpp/">llama.cpp</a> release <a href="https://github.com/ggerganov/llama.cpp/releases/tag/b5915">b5915</a> for quantization.
Original model: https://huggingface.co/entfane/math-genius-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/)
Run them directly with [llama.cpp](https://github.com/ggerganov/llama.cpp), or any other llama.cpp based project
## 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 |
| -------- | ---------- | --------- | ----- | ----------- |
| [math-genius-7B-bf16.gguf](https://huggingface.co/bartowski/entfane_math-genius-7B-GGUF/blob/main/entfane_math-genius-7B-bf16.gguf) | bf16 | 14.50GB | false | Full BF16 weights. |
| [math-genius-7B-Q8_0.gguf](https://huggingface.co/bartowski/entfane_math-genius-7B-GGUF/blob/main/entfane_math-genius-7B-Q8_0.gguf) | Q8_0 | 7.70GB | false | Extremely high quality, generally unneeded but max available quant. |
| [math-genius-7B-Q6_K_L.gguf](https://huggingface.co/bartowski/entfane_math-genius-7B-GGUF/blob/main/entfane_math-genius-7B-Q6_K_L.gguf) | Q6_K_L | 6.01GB | false | Uses Q8_0 for embed and output weights. Very high quality, near perfect, *recommended*. |
| [math-genius-7B-Q6_K.gguf](https://huggingface.co/bartowski/entfane_math-genius-7B-GGUF/blob/main/entfane_math-genius-7B-Q6_K.gguf) | Q6_K | 5.95GB | false | Very high quality, near perfect, *recommended*. |
| [math-genius-7B-Q5_K_L.gguf](https://huggingface.co/bartowski/entfane_math-genius-7B-GGUF/blob/main/entfane_math-genius-7B-Q5_K_L.gguf) | Q5_K_L | 5.22GB | false | Uses Q8_0 for embed and output weights. High quality, *recommended*. |
| [math-genius-7B-Q5_K_M.gguf](https://huggingface.co/bartowski/entfane_math-genius-7B-GGUF/blob/main/entfane_math-genius-7B-Q5_K_M.gguf) | Q5_K_M | 5.14GB | false | High quality, *recommended*. |
| [math-genius-7B-Q5_K_S.gguf](https://huggingface.co/bartowski/entfane_math-genius-7B-GGUF/blob/main/entfane_math-genius-7B-Q5_K_S.gguf) | Q5_K_S | 5.00GB | false | High quality, *recommended*. |
| [math-genius-7B-Q4_1.gguf](https://huggingface.co/bartowski/entfane_math-genius-7B-GGUF/blob/main/entfane_math-genius-7B-Q4_1.gguf) | Q4_1 | 4.56GB | false | Legacy format, similar performance to Q4_K_S but with improved tokens/watt on Apple silicon. |
| [math-genius-7B-Q4_K_L.gguf](https://huggingface.co/bartowski/entfane_math-genius-7B-GGUF/blob/main/entfane_math-genius-7B-Q4_K_L.gguf) | Q4_K_L | 4.47GB | false | Uses Q8_0 for embed and output weights. Good quality, *recommended*. |
| [math-genius-7B-Q4_K_M.gguf](https://huggingface.co/bartowski/entfane_math-genius-7B-GGUF/blob/main/entfane_math-genius-7B-Q4_K_M.gguf) | Q4_K_M | 4.37GB | false | Good quality, default size for most use cases, *recommended*. |
| [math-genius-7B-Q4_K_S.gguf](https://huggingface.co/bartowski/entfane_math-genius-7B-GGUF/blob/main/entfane_math-genius-7B-Q4_K_S.gguf) | Q4_K_S | 4.14GB | false | Slightly lower quality with more space savings, *recommended*. |
| [math-genius-7B-Q4_0.gguf](https://huggingface.co/bartowski/entfane_math-genius-7B-GGUF/blob/main/entfane_math-genius-7B-Q4_0.gguf) | Q4_0 | 4.13GB | false | Legacy format, offers online repacking for ARM and AVX CPU inference. |
| [math-genius-7B-IQ4_NL.gguf](https://huggingface.co/bartowski/entfane_math-genius-7B-GGUF/blob/main/entfane_math-genius-7B-IQ4_NL.gguf) | IQ4_NL | 4.13GB | false | Similar to IQ4_XS, but slightly larger. Offers online repacking for ARM CPU inference. |
| [math-genius-7B-Q3_K_XL.gguf](https://huggingface.co/bartowski/entfane_math-genius-7B-GGUF/blob/main/entfane_math-genius-7B-Q3_K_XL.gguf) | Q3_K_XL | 3.94GB | false | Uses Q8_0 for embed and output weights. Lower quality but usable, good for low RAM availability. |
| [math-genius-7B-IQ4_XS.gguf](https://huggingface.co/bartowski/entfane_math-genius-7B-GGUF/blob/main/entfane_math-genius-7B-IQ4_XS.gguf) | IQ4_XS | 3.91GB | false | Decent quality, smaller than Q4_K_S with similar performance, *recommended*. |
| [math-genius-7B-Q3_K_L.gguf](https://huggingface.co/bartowski/entfane_math-genius-7B-GGUF/blob/main/entfane_math-genius-7B-Q3_K_L.gguf) | Q3_K_L | 3.83GB | false | Lower quality but usable, good for low RAM availability. |
| [math-genius-7B-Q3_K_M.gguf](https://huggingface.co/bartowski/entfane_math-genius-7B-GGUF/blob/main/entfane_math-genius-7B-Q3_K_M.gguf) | Q3_K_M | 3.52GB | false | Low quality. |
| [math-genius-7B-IQ3_M.gguf](https://huggingface.co/bartowski/entfane_math-genius-7B-GGUF/blob/main/entfane_math-genius-7B-IQ3_M.gguf) | IQ3_M | 3.29GB | false | Medium-low quality, new method with decent performance comparable to Q3_K_M. |
| [math-genius-7B-Q3_K_S.gguf](https://huggingface.co/bartowski/entfane_math-genius-7B-GGUF/blob/main/entfane_math-genius-7B-Q3_K_S.gguf) | Q3_K_S | 3.17GB | false | Low quality, not recommended. |
| [math-genius-7B-IQ3_XS.gguf](https://huggingface.co/bartowski/entfane_math-genius-7B-GGUF/blob/main/entfane_math-genius-7B-IQ3_XS.gguf) | IQ3_XS | 3.02GB | false | Lower quality, new method with decent performance, slightly better than Q3_K_S. |
| [math-genius-7B-Q2_K_L.gguf](https://huggingface.co/bartowski/entfane_math-genius-7B-GGUF/blob/main/entfane_math-genius-7B-Q2_K_L.gguf) | Q2_K_L | 2.85GB | false | Uses Q8_0 for embed and output weights. Very low quality but surprisingly usable. |
| [math-genius-7B-IQ3_XXS.gguf](https://huggingface.co/bartowski/entfane_math-genius-7B-GGUF/blob/main/entfane_math-genius-7B-IQ3_XXS.gguf) | IQ3_XXS | 2.83GB | false | Lower quality, new method with decent performance, comparable to Q3 quants. |
| [math-genius-7B-Q2_K.gguf](https://huggingface.co/bartowski/entfane_math-genius-7B-GGUF/blob/main/entfane_math-genius-7B-Q2_K.gguf) | Q2_K | 2.72GB | false | Very low quality but surprisingly usable. |
| [math-genius-7B-IQ2_M.gguf](https://huggingface.co/bartowski/entfane_math-genius-7B-GGUF/blob/main/entfane_math-genius-7B-IQ2_M.gguf) | IQ2_M | 2.50GB | 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.
## Downloading using huggingface-cli
<details>
<summary>Click to view download instructions</summary>
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/entfane_math-genius-7B-GGUF --include "entfane_math-genius-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/entfane_math-genius-7B-GGUF --include "entfane_math-genius-7B-Q8_0/*" --local-dir ./
```
You can either specify a new local-dir (entfane_math-genius-7B-Q8_0) or download them all in place (./)
</details>
## ARM/AVX information
Previously, you would download Q4_0_4_4/4_8/8_8, and these would have their weights interleaved in memory in order to improve performance on ARM and AVX machines by loading up more data in one pass.
Now, however, there is something called "online repacking" for weights. details in [this PR](https://github.com/ggerganov/llama.cpp/pull/9921). If you use Q4_0 and your hardware would benefit from repacking weights, it will do it automatically on the fly.
As of llama.cpp build [b4282](https://github.com/ggerganov/llama.cpp/releases/tag/b4282) you will not be able to run the Q4_0_X_X files and will instead need to use Q4_0.
Additionally, if you want to get slightly better quality for , you can use IQ4_NL thanks to [this PR](https://github.com/ggerganov/llama.cpp/pull/10541) which will also repack the weights for ARM, though only the 4_4 for now. The loading time may be slower but it will result in an overall speed incrase.
<details>
<summary>Click to view Q4_0_X_X information (deprecated</summary>
I'm keeping this section to show the potential theoretical uplift in performance from using the Q4_0 with online repacking.
<details>
<summary>Click to view benchmarks on an AVX2 system (EPYC7702)</summary>
| model | size | params | backend | threads | test | t/s | % (vs Q4_0) |
| ------------------------------ | ---------: | ---------: | ---------- | ------: | ------------: | -------------------: |-------------: |
| qwen2 3B Q4_0 | 1.70 GiB | 3.09 B | CPU | 64 | pp512 | 204.03 ± 1.03 | 100% |
| qwen2 3B Q4_0 | 1.70 GiB | 3.09 B | CPU | 64 | pp1024 | 282.92 ± 0.19 | 100% |
| qwen2 3B Q4_0 | 1.70 GiB | 3.09 B | CPU | 64 | pp2048 | 259.49 ± 0.44 | 100% |
| qwen2 3B Q4_0 | 1.70 GiB | 3.09 B | CPU | 64 | tg128 | 39.12 ± 0.27 | 100% |
| qwen2 3B Q4_0 | 1.70 GiB | 3.09 B | CPU | 64 | tg256 | 39.31 ± 0.69 | 100% |
| qwen2 3B Q4_0 | 1.70 GiB | 3.09 B | CPU | 64 | tg512 | 40.52 ± 0.03 | 100% |
| qwen2 3B Q4_K_M | 1.79 GiB | 3.09 B | CPU | 64 | pp512 | 301.02 ± 1.74 | 147% |
| qwen2 3B Q4_K_M | 1.79 GiB | 3.09 B | CPU | 64 | pp1024 | 287.23 ± 0.20 | 101% |
| qwen2 3B Q4_K_M | 1.79 GiB | 3.09 B | CPU | 64 | pp2048 | 262.77 ± 1.81 | 101% |
| qwen2 3B Q4_K_M | 1.79 GiB | 3.09 B | CPU | 64 | tg128 | 18.80 ± 0.99 | 48% |
| qwen2 3B Q4_K_M | 1.79 GiB | 3.09 B | CPU | 64 | tg256 | 24.46 ± 3.04 | 83% |
| qwen2 3B Q4_K_M | 1.79 GiB | 3.09 B | CPU | 64 | tg512 | 36.32 ± 3.59 | 90% |
| qwen2 3B Q4_0_8_8 | 1.69 GiB | 3.09 B | CPU | 64 | pp512 | 271.71 ± 3.53 | 133% |
| qwen2 3B Q4_0_8_8 | 1.69 GiB | 3.09 B | CPU | 64 | pp1024 | 279.86 ± 45.63 | 100% |
| qwen2 3B Q4_0_8_8 | 1.69 GiB | 3.09 B | CPU | 64 | pp2048 | 320.77 ± 5.00 | 124% |
| qwen2 3B Q4_0_8_8 | 1.69 GiB | 3.09 B | CPU | 64 | tg128 | 43.51 ± 0.05 | 111% |
| qwen2 3B Q4_0_8_8 | 1.69 GiB | 3.09 B | CPU | 64 | tg256 | 43.35 ± 0.09 | 110% |
| qwen2 3B Q4_0_8_8 | 1.69 GiB | 3.09 B | CPU | 64 | tg512 | 42.60 ± 0.31 | 105% |
Q4_0_8_8 offers a nice bump to prompt processing and a small bump to text generation
</details>
</details>
## Which file should I choose?
<details>
<summary>Click here for details</summary>
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, but will be slower than their K-quant equivalent, so speed vs performance is a tradeoff you'll have to decide.
</details>
## 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.
Thank you to LM Studio for sponsoring my work.
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}

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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