bartowski commited on
Commit
43c2e7a
1 Parent(s): d81dd6b

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
+ codegeex4-all-9b-IQ2_M.gguf filter=lfs diff=lfs merge=lfs -text
37
+ codegeex4-all-9b-IQ2_S.gguf filter=lfs diff=lfs merge=lfs -text
38
+ codegeex4-all-9b-IQ2_XS.gguf filter=lfs diff=lfs merge=lfs -text
39
+ codegeex4-all-9b-IQ3_M.gguf filter=lfs diff=lfs merge=lfs -text
40
+ codegeex4-all-9b-IQ3_XS.gguf filter=lfs diff=lfs merge=lfs -text
41
+ codegeex4-all-9b-IQ3_XXS.gguf filter=lfs diff=lfs merge=lfs -text
42
+ codegeex4-all-9b-IQ4_XS.gguf filter=lfs diff=lfs merge=lfs -text
43
+ codegeex4-all-9b-Q2_K.gguf filter=lfs diff=lfs merge=lfs -text
44
+ codegeex4-all-9b-Q2_K_L.gguf filter=lfs diff=lfs merge=lfs -text
45
+ codegeex4-all-9b-Q3_K_L.gguf filter=lfs diff=lfs merge=lfs -text
46
+ codegeex4-all-9b-Q3_K_M.gguf filter=lfs diff=lfs merge=lfs -text
47
+ codegeex4-all-9b-Q3_K_S.gguf filter=lfs diff=lfs merge=lfs -text
48
+ codegeex4-all-9b-Q3_K_XL.gguf filter=lfs diff=lfs merge=lfs -text
49
+ codegeex4-all-9b-Q4_K_L.gguf filter=lfs diff=lfs merge=lfs -text
50
+ codegeex4-all-9b-Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
51
+ codegeex4-all-9b-Q4_K_S.gguf filter=lfs diff=lfs merge=lfs -text
52
+ codegeex4-all-9b-Q5_K_L.gguf filter=lfs diff=lfs merge=lfs -text
53
+ codegeex4-all-9b-Q5_K_M.gguf filter=lfs diff=lfs merge=lfs -text
54
+ codegeex4-all-9b-Q5_K_S.gguf filter=lfs diff=lfs merge=lfs -text
55
+ codegeex4-all-9b-Q6_K.gguf filter=lfs diff=lfs merge=lfs -text
56
+ codegeex4-all-9b-Q6_K_L.gguf filter=lfs diff=lfs merge=lfs -text
57
+ codegeex4-all-9b-Q8_0.gguf filter=lfs diff=lfs merge=lfs -text
58
+ codegeex4-all-9b-f32.gguf filter=lfs diff=lfs merge=lfs -text
59
+ codegeex4-all-9b.imatrix filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,112 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: other
3
+ license_name: codegeex4
4
+ license_link: https://huggingface.co/THUDM/codegeex4-all-9b/blob/main/LICENSE
5
+ language:
6
+ - zh
7
+ - en
8
+ tags:
9
+ - glm
10
+ - codegeex
11
+ - thudm
12
+ inference: false
13
+ pipeline_tag: text-generation
14
+ quantized_by: bartowski
15
+ ---
16
+
17
+ ## Llamacpp imatrix Quantizations of codegeex4-all-9b
18
+
19
+ Using <a href="https://github.com/ggerganov/llama.cpp/">llama.cpp</a> release <a href="https://github.com/ggerganov/llama.cpp/releases/tag/b3333">b3333</a> for quantization.
20
+
21
+ Original model: https://huggingface.co/THUDM/codegeex4-all-9b
22
+
23
+ All quants made using imatrix option with dataset from [here](https://gist.github.com/bartowski1182/eb213dccb3571f863da82e99418f81e8)
24
+
25
+ ## Prompt format
26
+
27
+ ```
28
+ [gMASK] <sop> <|system|>
29
+ {system_prompt} <|user|>
30
+ {prompt} <|assistant|>
31
+ ```
32
+
33
+ ## Download a file (not the whole branch) from below:
34
+
35
+ | Filename | Quant type | File Size | Description |
36
+ | -------- | ---------- | --------- | ----------- |
37
+ | [codegeex4-all-9b-Q8_0.gguf](https://huggingface.co/bartowski/codegeex4-all-9b-GGUF/blob/main/codegeex4-all-9b-Q8_0.gguf) | Q8_0 | 9.99GB | Extremely high quality, generally unneeded but max available quant. |
38
+ | [codegeex4-all-9b-Q6_K_L.gguf](https://huggingface.co/bartowski/codegeex4-all-9b-GGUF/blob/main/codegeex4-all-9b-Q6_K_L.gguf) | Q6_K_L | 8.56GB | Uses Q8_0 for embed and output weights. Very high quality, near perfect, *recommended*. |
39
+ | [codegeex4-all-9b-Q6_K.gguf](https://huggingface.co/bartowski/codegeex4-all-9b-GGUF/blob/main/codegeex4-all-9b-Q6_K.gguf) | Q6_K | 8.26GB | Very high quality, near perfect, *recommended*. |
40
+ | [codegeex4-all-9b-Q5_K_L.gguf](https://huggingface.co/bartowski/codegeex4-all-9b-GGUF/blob/main/codegeex4-all-9b-Q5_K_L.gguf) | Q5_K_L | 7.52GB | Uses Q8_0 for embed and output weights. High quality, *recommended*. |
41
+ | [codegeex4-all-9b-Q5_K_M.gguf](https://huggingface.co/bartowski/codegeex4-all-9b-GGUF/blob/main/codegeex4-all-9b-Q5_K_M.gguf) | Q5_K_M | 7.14GB | High quality, *recommended*. |
42
+ | [codegeex4-all-9b-Q5_K_S.gguf](https://huggingface.co/bartowski/codegeex4-all-9b-GGUF/blob/main/codegeex4-all-9b-Q5_K_S.gguf) | Q5_K_S | 6.69GB | High quality, *recommended*. |
43
+ | [codegeex4-all-9b-Q4_K_L.gguf](https://huggingface.co/bartowski/codegeex4-all-9b-GGUF/blob/main/codegeex4-all-9b-Q4_K_L.gguf) | Q4_K_L | 6.71GB | Uses Q8_0 for embed and output weights. Good quality, uses about 4.83 bits per weight, *recommended*. |
44
+ | [codegeex4-all-9b-Q4_K_M.gguf](https://huggingface.co/bartowski/codegeex4-all-9b-GGUF/blob/main/codegeex4-all-9b-Q4_K_M.gguf) | Q4_K_M | 6.25GB | Good quality, uses about 4.83 bits per weight, *recommended*. |
45
+ | [codegeex4-all-9b-Q4_K_S.gguf](https://huggingface.co/bartowski/codegeex4-all-9b-GGUF/blob/main/codegeex4-all-9b-Q4_K_S.gguf) | Q4_K_S | 5.75GB | Slightly lower quality with more space savings, *recommended*. |
46
+ | [codegeex4-all-9b-IQ4_XS.gguf](https://huggingface.co/bartowski/codegeex4-all-9b-GGUF/blob/main/codegeex4-all-9b-IQ4_XS.gguf) | IQ4_XS | 5.25GB | Decent quality, smaller than Q4_K_S with similar performance, *recommended*. |
47
+ | [codegeex4-all-9b-Q3_K_XL.gguf](https://huggingface.co/bartowski/codegeex4-all-9b-GGUF/blob/main/codegeex4-all-9b-Q3_K_XL.gguf) | Q3_K_XL | 5.82GB | Uses Q8_0 for embed and output weights. Lower quality but usable, good for low RAM availability. |
48
+ | [codegeex4-all-9b-Q3_K_L.gguf](https://huggingface.co/bartowski/codegeex4-all-9b-GGUF/blob/main/codegeex4-all-9b-Q3_K_L.gguf) | Q3_K_L | 5.28GB | Lower quality but usable, good for low RAM availability. |
49
+ | [codegeex4-all-9b-Q3_K_M.gguf](https://huggingface.co/bartowski/codegeex4-all-9b-GGUF/blob/main/codegeex4-all-9b-Q3_K_M.gguf) | Q3_K_M | 5.06GB | Even lower quality. |
50
+ | [codegeex4-all-9b-IQ3_M.gguf](https://huggingface.co/bartowski/codegeex4-all-9b-GGUF/blob/main/codegeex4-all-9b-IQ3_M.gguf) | IQ3_M | 4.81GB | Medium-low quality, new method with decent performance comparable to Q3_K_M. |
51
+ | [codegeex4-all-9b-Q3_K_S.gguf](https://huggingface.co/bartowski/codegeex4-all-9b-GGUF/blob/main/codegeex4-all-9b-Q3_K_S.gguf) | Q3_K_S | 4.58GB | Low quality, not recommended. |
52
+ | [codegeex4-all-9b-IQ3_XS.gguf](https://huggingface.co/bartowski/codegeex4-all-9b-GGUF/blob/main/codegeex4-all-9b-IQ3_XS.gguf) | IQ3_XS | 4.42GB | Lower quality, new method with decent performance, slightly better than Q3_K_S. |
53
+ | [codegeex4-all-9b-IQ3_XXS.gguf](https://huggingface.co/bartowski/codegeex4-all-9b-GGUF/blob/main/codegeex4-all-9b-IQ3_XXS.gguf) | IQ3_XXS | 4.25GB | Lower quality, new method with decent performance, comparable to Q3 quants. |
54
+ | [codegeex4-all-9b-Q2_K_L.gguf](https://huggingface.co/bartowski/codegeex4-all-9b-GGUF/blob/main/codegeex4-all-9b-Q2_K_L.gguf) | Q2_K_L | 4.59GB | Uses Q8_0 for embed and output weights. Very low quality but surprisingly usable. |
55
+ | [codegeex4-all-9b-Q2_K.gguf](https://huggingface.co/bartowski/codegeex4-all-9b-GGUF/blob/main/codegeex4-all-9b-Q2_K.gguf) | Q2_K | 3.99GB | Very low quality but surprisingly usable. |
56
+ | [codegeex4-all-9b-IQ2_M.gguf](https://huggingface.co/bartowski/codegeex4-all-9b-GGUF/blob/main/codegeex4-all-9b-IQ2_M.gguf) | IQ2_M | 3.93GB | Very low quality, uses SOTA techniques to also be surprisingly usable. |
57
+ | [codegeex4-all-9b-IQ2_S.gguf](https://huggingface.co/bartowski/codegeex4-all-9b-GGUF/blob/main/codegeex4-all-9b-IQ2_S.gguf) | IQ2_S | 3.76GB | Very low quality, uses SOTA techniques to be usable. |
58
+ | [codegeex4-all-9b-IQ2_XS.gguf](https://huggingface.co/bartowski/codegeex4-all-9b-GGUF/blob/main/codegeex4-all-9b-IQ2_XS.gguf) | IQ2_XS | 3.61GB | Very low quality, uses SOTA techniques to be usable. |
59
+
60
+ ## Credits
61
+
62
+ Thank you kalomaze and Dampf for assistance in creating the imatrix calibration dataset
63
+
64
+ Thank you ZeroWw for the inspiration to experiment with embed/output
65
+
66
+ ## Downloading using huggingface-cli
67
+
68
+ First, make sure you have hugginface-cli installed:
69
+
70
+ ```
71
+ pip install -U "huggingface_hub[cli]"
72
+ ```
73
+
74
+ Then, you can target the specific file you want:
75
+
76
+ ```
77
+ huggingface-cli download bartowski/codegeex4-all-9b-GGUF --include "codegeex4-all-9b-Q4_K_M.gguf" --local-dir ./
78
+ ```
79
+
80
+ 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:
81
+
82
+ ```
83
+ huggingface-cli download bartowski/codegeex4-all-9b-GGUF --include "codegeex4-all-9b-Q8_0.gguf/*" --local-dir codegeex4-all-9b-Q8_0
84
+ ```
85
+
86
+ You can either specify a new local-dir (codegeex4-all-9b-Q8_0) or download them all in place (./)
87
+
88
+ ## Which file should I choose?
89
+
90
+ A great write up with charts showing various performances is provided by Artefact2 [here](https://gist.github.com/Artefact2/b5f810600771265fc1e39442288e8ec9)
91
+
92
+ 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.
93
+
94
+ 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.
95
+
96
+ 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.
97
+
98
+ Next, you'll need to decide if you want to use an 'I-quant' or a 'K-quant'.
99
+
100
+ 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.
101
+
102
+ If you want to get more into the weeds, you can check out this extremely useful feature chart:
103
+
104
+ [llama.cpp feature matrix](https://github.com/ggerganov/llama.cpp/wiki/Feature-matrix)
105
+
106
+ 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.
107
+
108
+ 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.
109
+
110
+ 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.
111
+
112
+ Want to support my work? Visit my ko-fi page here: https://ko-fi.com/bartowski
codegeex4-all-9b-IQ2_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8d41e4753c5bc45a45ec336982d0bb4e7d9e1f0a526821da3c4d69cc4df16034
3
+ size 3931538848
codegeex4-all-9b-IQ2_S.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:83f0091f64315c2a193477d56c52d23cadaac80edb84c84b81b5cf8ed2e0721b
3
+ size 3767698848
codegeex4-all-9b-IQ2_XS.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ffdf2e17dfcf9ce8e4ffb0a793dfdc777baa114726ecac2d646b68844ff56db9
3
+ size 3610281376
codegeex4-all-9b-IQ3_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7705050d2f9baf0971e87ef02395d9aefdea7bcb2bf36fadd70345294c0e9a17
3
+ size 4811883936
codegeex4-all-9b-IQ3_XS.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7d6f1999037ed3caf019ad2ffaaacd0536d2d935dc174fd30a0ac1c99dda1d51
3
+ size 4429645216
codegeex4-all-9b-IQ3_XXS.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2f0f0606e26acab2008f1a09edadb9fb6d94f9b9d5faa747c9e1448c70594bd8
3
+ size 4259218848
codegeex4-all-9b-IQ4_XS.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d3fb76c4a6db5f97a8349bd8eca9765f7abeca07dbdf393d6aadd462e1da851a
3
+ size 5251106208
codegeex4-all-9b-Q2_K.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8590a479d6af58d0a6b8c8e0ad63594366e27c6e7074433e909cb75b093cc1a0
3
+ size 3991897504
codegeex4-all-9b-Q2_K_L.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1c278bced2eea138e0a67e35c5a21cb05c37d3eeef4d36f458bbabfd8c4340bb
3
+ size 4598105504
codegeex4-all-9b-Q3_K_L.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:aedb70b49e93d381d6cd48756d8086aadacb4196a125e246aad61d9276166237
3
+ size 5281449376
codegeex4-all-9b-Q3_K_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:de5e0addcbc48533cd79ff7d337f2153fcaab7614a2862fcc2847af017abbf8a
3
+ size 5064328608
codegeex4-all-9b-Q3_K_S.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:773f37988a3b3b1aee5a873099b6387bc548b23d334cb48614e6a190a0be2afa
3
+ size 4587423136
codegeex4-all-9b-Q3_K_XL.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d9c9c1fc71248d2cf8eff91743d2aa578934bc08fde027cb09103662d30674fc
3
+ size 5824611744
codegeex4-all-9b-Q4_K_L.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f07b55c0e0ade892877f295cb617f7a3037efce757c320b77258dd77602038ff
3
+ size 6711641504
codegeex4-all-9b-Q4_K_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5f69e8222c715f44a26c68e035437060743f5616a6b9eef16416830797fd7d2e
3
+ size 6250923424
codegeex4-all-9b-Q4_K_S.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:180935f48c98586fcfc062982a2a8acd3cf6b78899479fddf3df1c9d27eaff4a
3
+ size 5753341344
codegeex4-all-9b-Q5_K_L.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d61ddcd3492e5e461f40b93e3465d44f30da833a896747ff77cb5c599abba697
3
+ size 7526909344
codegeex4-all-9b-Q5_K_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6f75cb5e1d4aaa9e4a51213a51e5dcde8dee05a520e07d7fc180b05ad325491b
3
+ size 7143785888
codegeex4-all-9b-Q5_K_S.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e32a21df2276a6de7b0a130c9b2e2207d9780d8403c72e9803e1a965a0a616db
3
+ size 6692898208
codegeex4-all-9b-Q6_K.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ebd3ece9dea7d5431ab310da3c0f085165dd36e6ca56081ff023a9ae5aca58b9
3
+ size 8262026656
codegeex4-all-9b-Q6_K_L.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8ff13074e83156317b501bfc99d1af30d12e7718f145516851290f2b08f48516
3
+ size 8562705824
codegeex4-all-9b-Q8_0.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5bdf9498c46abf593bd3bd21f176ef21c791d74faad4ebac3a3658e987ad44de
3
+ size 9994995104
codegeex4-all-9b-f32.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4dbd2dac8f1d82e433d426d120f8fffebee063178193b1437883bb81a1cd69e2
3
+ size 37605835904
codegeex4-all-9b.imatrix ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3c3be4d5735e362dbf65f6d4c3b265758785ce82320b65747987922fe68ab712
3
+ size 4162929