bartowski commited on
Commit
43e09b2
1 Parent(s): 2d92b0b

Llamacpp quants

Browse files
.gitattributes CHANGED
@@ -33,3 +33,27 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ internlm2-math-plus-7b-IQ1_M.gguf filter=lfs diff=lfs merge=lfs -text
37
+ internlm2-math-plus-7b-IQ1_S.gguf filter=lfs diff=lfs merge=lfs -text
38
+ internlm2-math-plus-7b-IQ2_M.gguf filter=lfs diff=lfs merge=lfs -text
39
+ internlm2-math-plus-7b-IQ2_S.gguf filter=lfs diff=lfs merge=lfs -text
40
+ internlm2-math-plus-7b-IQ2_XS.gguf filter=lfs diff=lfs merge=lfs -text
41
+ internlm2-math-plus-7b-IQ2_XXS.gguf filter=lfs diff=lfs merge=lfs -text
42
+ internlm2-math-plus-7b-IQ3_M.gguf filter=lfs diff=lfs merge=lfs -text
43
+ internlm2-math-plus-7b-IQ3_S.gguf filter=lfs diff=lfs merge=lfs -text
44
+ internlm2-math-plus-7b-IQ3_XS.gguf filter=lfs diff=lfs merge=lfs -text
45
+ internlm2-math-plus-7b-IQ3_XXS.gguf filter=lfs diff=lfs merge=lfs -text
46
+ internlm2-math-plus-7b-IQ4_NL.gguf filter=lfs diff=lfs merge=lfs -text
47
+ internlm2-math-plus-7b-IQ4_XS.gguf filter=lfs diff=lfs merge=lfs -text
48
+ internlm2-math-plus-7b-Q2_K.gguf filter=lfs diff=lfs merge=lfs -text
49
+ internlm2-math-plus-7b-Q3_K_L.gguf filter=lfs diff=lfs merge=lfs -text
50
+ internlm2-math-plus-7b-Q3_K_M.gguf filter=lfs diff=lfs merge=lfs -text
51
+ internlm2-math-plus-7b-Q3_K_S.gguf filter=lfs diff=lfs merge=lfs -text
52
+ internlm2-math-plus-7b-Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
53
+ internlm2-math-plus-7b-Q4_K_S.gguf filter=lfs diff=lfs merge=lfs -text
54
+ internlm2-math-plus-7b-Q5_K_M.gguf filter=lfs diff=lfs merge=lfs -text
55
+ internlm2-math-plus-7b-Q5_K_S.gguf filter=lfs diff=lfs merge=lfs -text
56
+ internlm2-math-plus-7b-Q6_K.gguf filter=lfs diff=lfs merge=lfs -text
57
+ internlm2-math-plus-7b-Q8_0.gguf filter=lfs diff=lfs merge=lfs -text
58
+ internlm2-math-plus-7b-f32.gguf filter=lfs diff=lfs merge=lfs -text
59
+ internlm2-math-plus-7b.imatrix filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,100 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ pipeline_tag: text-generation
3
+ license: other
4
+ language:
5
+ - en
6
+ - zh
7
+ tags:
8
+ - math
9
+ quantized_by: bartowski
10
+ ---
11
+
12
+ ## Llamacpp imatrix Quantizations of internlm2-math-plus-7b
13
+
14
+ Using <a href="https://github.com/ggerganov/llama.cpp/">llama.cpp</a> release <a href="https://github.com/ggerganov/llama.cpp/releases/tag/b3001">b3001</a> for quantization.
15
+
16
+ Original model: https://huggingface.co/internlm/internlm2-math-plus-7b
17
+
18
+ All quants made using imatrix option with dataset from [here](https://gist.github.com/bartowski1182/b6ac44691e994344625687afe3263b3a)
19
+
20
+ ## Prompt format
21
+
22
+
23
+ ```
24
+ <s><|im_start|>system {system_prompt}<|im_end|> <|im_start|>user {prompt}<|im_end|> <|im_start|>assistant
25
+ ```
26
+
27
+ ## Download a file (not the whole branch) from below:
28
+
29
+ | Filename | Quant type | File Size | Description |
30
+ | -------- | ---------- | --------- | ----------- |
31
+ | [internlm2-math-plus-7b-Q8_0.gguf](https://huggingface.co/bartowski/internlm2-math-plus-7b-GGUF/blob/main/internlm2-math-plus-7b-Q8_0.gguf) | Q8_0 | 8.22GB | Extremely high quality, generally unneeded but max available quant. |
32
+ | [internlm2-math-plus-7b-Q6_K.gguf](https://huggingface.co/bartowski/internlm2-math-plus-7b-GGUF/blob/main/internlm2-math-plus-7b-Q6_K.gguf) | Q6_K | 6.35GB | Very high quality, near perfect, *recommended*. |
33
+ | [internlm2-math-plus-7b-Q5_K_M.gguf](https://huggingface.co/bartowski/internlm2-math-plus-7b-GGUF/blob/main/internlm2-math-plus-7b-Q5_K_M.gguf) | Q5_K_M | 5.50GB | High quality, *recommended*. |
34
+ | [internlm2-math-plus-7b-Q5_K_S.gguf](https://huggingface.co/bartowski/internlm2-math-plus-7b-GGUF/blob/main/internlm2-math-plus-7b-Q5_K_S.gguf) | Q5_K_S | 5.37GB | High quality, *recommended*. |
35
+ | [internlm2-math-plus-7b-Q4_K_M.gguf](https://huggingface.co/bartowski/internlm2-math-plus-7b-GGUF/blob/main/internlm2-math-plus-7b-Q4_K_M.gguf) | Q4_K_M | 4.71GB | Good quality, uses about 4.83 bits per weight, *recommended*. |
36
+ | [internlm2-math-plus-7b-Q4_K_S.gguf](https://huggingface.co/bartowski/internlm2-math-plus-7b-GGUF/blob/main/internlm2-math-plus-7b-Q4_K_S.gguf) | Q4_K_S | 4.48GB | Slightly lower quality with more space savings, *recommended*. |
37
+ | [internlm2-math-plus-7b-IQ4_NL.gguf](https://huggingface.co/bartowski/internlm2-math-plus-7b-GGUF/blob/main/internlm2-math-plus-7b-IQ4_NL.gguf) | IQ4_NL | 4.47GB | Decent quality, slightly smaller than Q4_K_S with similar performance *recommended*. |
38
+ | [internlm2-math-plus-7b-IQ4_XS.gguf](https://huggingface.co/bartowski/internlm2-math-plus-7b-GGUF/blob/main/internlm2-math-plus-7b-IQ4_XS.gguf) | IQ4_XS | 4.24GB | Decent quality, smaller than Q4_K_S with similar performance, *recommended*. |
39
+ | [internlm2-math-plus-7b-Q3_K_L.gguf](https://huggingface.co/bartowski/internlm2-math-plus-7b-GGUF/blob/main/internlm2-math-plus-7b-Q3_K_L.gguf) | Q3_K_L | 4.13GB | Lower quality but usable, good for low RAM availability. |
40
+ | [internlm2-math-plus-7b-Q3_K_M.gguf](https://huggingface.co/bartowski/internlm2-math-plus-7b-GGUF/blob/main/internlm2-math-plus-7b-Q3_K_M.gguf) | Q3_K_M | 3.83GB | Even lower quality. |
41
+ | [internlm2-math-plus-7b-IQ3_M.gguf](https://huggingface.co/bartowski/internlm2-math-plus-7b-GGUF/blob/main/internlm2-math-plus-7b-IQ3_M.gguf) | IQ3_M | 3.59GB | Medium-low quality, new method with decent performance comparable to Q3_K_M. |
42
+ | [internlm2-math-plus-7b-IQ3_S.gguf](https://huggingface.co/bartowski/internlm2-math-plus-7b-GGUF/blob/main/internlm2-math-plus-7b-IQ3_S.gguf) | IQ3_S | 3.49GB | Lower quality, new method with decent performance, recommended over Q3_K_S quant, same size with better performance. |
43
+ | [internlm2-math-plus-7b-Q3_K_S.gguf](https://huggingface.co/bartowski/internlm2-math-plus-7b-GGUF/blob/main/internlm2-math-plus-7b-Q3_K_S.gguf) | Q3_K_S | 3.47GB | Low quality, not recommended. |
44
+ | [internlm2-math-plus-7b-IQ3_XS.gguf](https://huggingface.co/bartowski/internlm2-math-plus-7b-GGUF/blob/main/internlm2-math-plus-7b-IQ3_XS.gguf) | IQ3_XS | 3.33GB | Lower quality, new method with decent performance, slightly better than Q3_K_S. |
45
+ | [internlm2-math-plus-7b-IQ3_XXS.gguf](https://huggingface.co/bartowski/internlm2-math-plus-7b-GGUF/blob/main/internlm2-math-plus-7b-IQ3_XXS.gguf) | IQ3_XXS | 3.10GB | Lower quality, new method with decent performance, comparable to Q3 quants. |
46
+ | [internlm2-math-plus-7b-Q2_K.gguf](https://huggingface.co/bartowski/internlm2-math-plus-7b-GGUF/blob/main/internlm2-math-plus-7b-Q2_K.gguf) | Q2_K | 3.00GB | Very low quality but surprisingly usable. |
47
+ | [internlm2-math-plus-7b-IQ2_M.gguf](https://huggingface.co/bartowski/internlm2-math-plus-7b-GGUF/blob/main/internlm2-math-plus-7b-IQ2_M.gguf) | IQ2_M | 2.77GB | Very low quality, uses SOTA techniques to also be surprisingly usable. |
48
+ | [internlm2-math-plus-7b-IQ2_S.gguf](https://huggingface.co/bartowski/internlm2-math-plus-7b-GGUF/blob/main/internlm2-math-plus-7b-IQ2_S.gguf) | IQ2_S | 2.58GB | Very low quality, uses SOTA techniques to be usable. |
49
+ | [internlm2-math-plus-7b-IQ2_XS.gguf](https://huggingface.co/bartowski/internlm2-math-plus-7b-GGUF/blob/main/internlm2-math-plus-7b-IQ2_XS.gguf) | IQ2_XS | 2.45GB | Very low quality, uses SOTA techniques to be usable. |
50
+ | [internlm2-math-plus-7b-IQ2_XXS.gguf](https://huggingface.co/bartowski/internlm2-math-plus-7b-GGUF/blob/main/internlm2-math-plus-7b-IQ2_XXS.gguf) | IQ2_XXS | 2.24GB | Lower quality, uses SOTA techniques to be usable. |
51
+ | [internlm2-math-plus-7b-IQ1_M.gguf](https://huggingface.co/bartowski/internlm2-math-plus-7b-GGUF/blob/main/internlm2-math-plus-7b-IQ1_M.gguf) | IQ1_M | 2.00GB | Extremely low quality, *not* recommended. |
52
+ | [internlm2-math-plus-7b-IQ1_S.gguf](https://huggingface.co/bartowski/internlm2-math-plus-7b-GGUF/blob/main/internlm2-math-plus-7b-IQ1_S.gguf) | IQ1_S | 1.86GB | Extremely low quality, *not* recommended. |
53
+
54
+ ## Downloading using huggingface-cli
55
+
56
+ First, make sure you have hugginface-cli installed:
57
+
58
+ ```
59
+ pip install -U "huggingface_hub[cli]"
60
+ ```
61
+
62
+ Then, you can target the specific file you want:
63
+
64
+ ```
65
+ huggingface-cli download bartowski/internlm2-math-plus-7b-GGUF --include "internlm2-math-plus-7b-Q4_K_M.gguf" --local-dir ./
66
+ ```
67
+
68
+ 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:
69
+
70
+ ```
71
+ huggingface-cli download bartowski/internlm2-math-plus-7b-GGUF --include "internlm2-math-plus-7b-Q8_0.gguf/*" --local-dir internlm2-math-plus-7b-Q8_0
72
+ ```
73
+
74
+ You can either specify a new local-dir (internlm2-math-plus-7b-Q8_0) or download them all in place (./)
75
+
76
+ ## Which file should I choose?
77
+
78
+ A great write up with charts showing various performances is provided by Artefact2 [here](https://gist.github.com/Artefact2/b5f810600771265fc1e39442288e8ec9)
79
+
80
+ 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.
81
+
82
+ 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.
83
+
84
+ 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.
85
+
86
+ Next, you'll need to decide if you want to use an 'I-quant' or a 'K-quant'.
87
+
88
+ 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.
89
+
90
+ If you want to get more into the weeds, you can check out this extremely useful feature chart:
91
+
92
+ [llama.cpp feature matrix](https://github.com/ggerganov/llama.cpp/wiki/Feature-matrix)
93
+
94
+ 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.
95
+
96
+ 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.
97
+
98
+ 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.
99
+
100
+ Want to support my work? Visit my ko-fi page here: https://ko-fi.com/bartowski
internlm2-math-plus-7b-IQ1_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6d63b25bbd99430d84a5b099902b4483f34b12c8f784330938baada6a649827e
3
+ size 2007716896
internlm2-math-plus-7b-IQ1_S.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:569bb05ade1751e92ae5282e315d391ba451c11ec4ef084b7adc7f778d37621e
3
+ size 1865372704
internlm2-math-plus-7b-IQ2_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:673a1d1f0b42f01267106a38663fc651403237fdd5d110af33937935091152d1
3
+ size 2779169824
internlm2-math-plus-7b-IQ2_S.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7e1ffabc422597996f62080a09216c4a04c40ec256ea2aad0983efc1c33e0a69
3
+ size 2589377568
internlm2-math-plus-7b-IQ2_XS.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bdc7b3cca43ca9c4c16a37b5783ca6c87c69bcd34d0359226aa565208005c6f0
3
+ size 2451526688
internlm2-math-plus-7b-IQ2_XXS.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3c69871062054d2115d12895d874125c340a8c06d7543d398b1900ffbadb4244
3
+ size 2244957216
internlm2-math-plus-7b-IQ3_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0d773606963a763f830491215cd8650e3aa54fdde393e94a3f7f326f0e711d35
3
+ size 3596284960
internlm2-math-plus-7b-IQ3_S.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cf8ac2d3c10527f163ff0b49cb42e67deebd2946fc33cb9184ce0fbaecacf77e
3
+ size 3493786656
internlm2-math-plus-7b-IQ3_XS.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3f0835df88915d739a5359b890ad8725ccf8845ef8d748f28a563492c6a37ce0
3
+ size 3330208800
internlm2-math-plus-7b-IQ3_XXS.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b94a3685be5d3cc8f55b97170334735949352a1200fd8351d37b143f19f06b16
3
+ size 3105801248
internlm2-math-plus-7b-IQ4_NL.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e077b9ad45c6aa38ba2aed91297e0ab85c2d454d6905f6bb72a9037210048f4a
3
+ size 4470023200
internlm2-math-plus-7b-IQ4_XS.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fab0991d1737836da8ff53af2c2a49030c804e5a02f6a2e79882bd6e34ed0a21
3
+ size 4244268064
internlm2-math-plus-7b-Q2_K.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0b401e088e03143abc12f54fb6bafbb5b2f56c630e1ae10203d20386b0ec0574
3
+ size 3005449248
internlm2-math-plus-7b-Q3_K_L.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:93e038848995b06290420e0c87a7591fe84bf778e9cab7aa891bb0261184c8ce
3
+ size 4133418016
internlm2-math-plus-7b-Q3_K_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dce57524732cc63db1e161cc70272b9cfb8ec56288a01d2f42cdb16e49c3fe86
3
+ size 3830379552
internlm2-math-plus-7b-Q3_K_S.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9762f880a1b7479e399d4556b43649e6308faf590bce7a2bec757a93878537ba
3
+ size 3475960864
internlm2-math-plus-7b-Q4_K_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4be3df1406b9ff420889bf29a2b5ff1d8f3bba97cfde7e12775c379c0afcb6fc
3
+ size 4712768544
internlm2-math-plus-7b-Q4_K_S.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4488b1fc510a5c32f8154710f7b19c4c4e1efca891d9c821764f9584020d64b5
3
+ size 4484703264
internlm2-math-plus-7b-Q5_K_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5e3596a0a48c89adeec9be9bbd8a04664dc195d6a07e0b78ea197dc222452e42
3
+ size 5506737184
internlm2-math-plus-7b-Q5_K_S.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e699bff0c8891de4c5cbe9aedd74cb4f5505eb53ddd3e96a14890a97acf7706f
3
+ size 5373043744
internlm2-math-plus-7b-Q6_K.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:96241606747575edca1645192945670bbaaca37c5ec2f19c441ab4055e8c768c
3
+ size 6350328864
internlm2-math-plus-7b-Q8_0.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b0b9e96f9a4644fb7da5ee415b5e350beecb0c32137638852697350ecce1720b
3
+ size 8224240672
internlm2-math-plus-7b-f32.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:67f2797a972dce2290466206a1291decb9b87add07cb3d40db673ce10391a200
3
+ size 30952977184
internlm2-math-plus-7b.imatrix ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c25f0257064fc9bd48ad3aace151dd4462fab716daa40c2095e672632ba919c1
3
+ size 4988169