legraphista commited on
Commit
82660e4
·
verified ·
1 Parent(s): 3236f03

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +142 -0
README.md ADDED
@@ -0,0 +1,142 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: THUDM/codegeex4-all-9b
3
+ inference: false
4
+ language:
5
+ - zh
6
+ - en
7
+ library_name: gguf
8
+ license: other
9
+ license_link: https://huggingface.co/THUDM/codegeex4-all-9b/blob/main/LICENSE
10
+ license_name: codegeex4
11
+ pipeline_tag: text-generation
12
+ quantized_by: legraphista
13
+ tags:
14
+ - glm
15
+ - codegeex
16
+ - thudm
17
+ - quantized
18
+ - GGUF
19
+ - quantization
20
+ - imat
21
+ - imatrix
22
+ - static
23
+ - 16bit
24
+ - 8bit
25
+ - 6bit
26
+ - 5bit
27
+ - 4bit
28
+ - 3bit
29
+ - 2bit
30
+ - 1bit
31
+ ---
32
+
33
+ # codegeex4-all-9b-IMat-GGUF
34
+ _Llama.cpp imatrix quantization of THUDM/codegeex4-all-9b_
35
+
36
+ Original Model: [THUDM/codegeex4-all-9b](https://huggingface.co/THUDM/codegeex4-all-9b)
37
+ Original dtype: `BF16` (`bfloat16`)
38
+ Quantized by: llama.cpp [b3324](https://github.com/ggerganov/llama.cpp/releases/tag/b3324)
39
+ IMatrix dataset: [here](https://gist.githubusercontent.com/bartowski1182/eb213dccb3571f863da82e99418f81e8/raw/b2869d80f5c16fd7082594248e80144677736635/calibration_datav3.txt)
40
+
41
+ - [Files](#files)
42
+ - [IMatrix](#imatrix)
43
+ - [Common Quants](#common-quants)
44
+ - [All Quants](#all-quants)
45
+ - [Downloading using huggingface-cli](#downloading-using-huggingface-cli)
46
+ - [Inference](#inference)
47
+ - [Llama.cpp](#llama-cpp)
48
+ - [FAQ](#faq)
49
+ - [Why is the IMatrix not applied everywhere?](#why-is-the-imatrix-not-applied-everywhere)
50
+ - [How do I merge a split GGUF?](#how-do-i-merge-a-split-gguf)
51
+
52
+ ---
53
+
54
+ ## Files
55
+
56
+ ### IMatrix
57
+ Status: ⏳ Processing
58
+ Link: [here](https://huggingface.co/legraphista/codegeex4-all-9b-IMat-GGUF/blob/main/imatrix.dat)
59
+
60
+ ### Common Quants
61
+ | Filename | Quant type | File Size | Status | Uses IMatrix | Is Split |
62
+ | -------- | ---------- | --------- | ------ | ------------ | -------- |
63
+ | codegeex4-all-9b.Q8_0 | Q8_0 | - | ⏳ Processing | ⚪ Static | -
64
+ | codegeex4-all-9b.Q6_K | Q6_K | - | ⏳ Processing | ⚪ Static | -
65
+ | codegeex4-all-9b.Q4_K | Q4_K | - | ⏳ Processing | 🟢 IMatrix | -
66
+ | codegeex4-all-9b.Q3_K | Q3_K | - | ⏳ Processing | 🟢 IMatrix | -
67
+ | codegeex4-all-9b.Q2_K | Q2_K | - | ⏳ Processing | 🟢 IMatrix | -
68
+
69
+
70
+ ### All Quants
71
+ | Filename | Quant type | File Size | Status | Uses IMatrix | Is Split |
72
+ | -------- | ---------- | --------- | ------ | ------------ | -------- |
73
+ | codegeex4-all-9b.BF16 | BF16 | - | ⏳ Processing | ⚪ Static | -
74
+ | codegeex4-all-9b.FP16 | F16 | - | ⏳ Processing | ⚪ Static | -
75
+ | codegeex4-all-9b.Q8_0 | Q8_0 | - | ⏳ Processing | ⚪ Static | -
76
+ | codegeex4-all-9b.Q6_K | Q6_K | - | ⏳ Processing | ⚪ Static | -
77
+ | codegeex4-all-9b.Q5_K | Q5_K | - | ⏳ Processing | ⚪ Static | -
78
+ | codegeex4-all-9b.Q5_K_S | Q5_K_S | - | ⏳ Processing | ⚪ Static | -
79
+ | codegeex4-all-9b.Q4_K | Q4_K | - | ⏳ Processing | 🟢 IMatrix | -
80
+ | codegeex4-all-9b.Q4_K_S | Q4_K_S | - | ⏳ Processing | 🟢 IMatrix | -
81
+ | codegeex4-all-9b.IQ4_NL | IQ4_NL | - | ⏳ Processing | 🟢 IMatrix | -
82
+ | codegeex4-all-9b.IQ4_XS | IQ4_XS | - | ⏳ Processing | 🟢 IMatrix | -
83
+ | codegeex4-all-9b.Q3_K | Q3_K | - | ⏳ Processing | 🟢 IMatrix | -
84
+ | codegeex4-all-9b.Q3_K_L | Q3_K_L | - | ⏳ Processing | 🟢 IMatrix | -
85
+ | codegeex4-all-9b.Q3_K_S | Q3_K_S | - | ⏳ Processing | 🟢 IMatrix | -
86
+ | codegeex4-all-9b.IQ3_M | IQ3_M | - | ⏳ Processing | 🟢 IMatrix | -
87
+ | codegeex4-all-9b.IQ3_S | IQ3_S | - | ⏳ Processing | 🟢 IMatrix | -
88
+ | codegeex4-all-9b.IQ3_XS | IQ3_XS | - | ⏳ Processing | 🟢 IMatrix | -
89
+ | codegeex4-all-9b.IQ3_XXS | IQ3_XXS | - | ⏳ Processing | 🟢 IMatrix | -
90
+ | codegeex4-all-9b.Q2_K | Q2_K | - | ⏳ Processing | 🟢 IMatrix | -
91
+ | codegeex4-all-9b.Q2_K_S | Q2_K_S | - | ⏳ Processing | 🟢 IMatrix | -
92
+ | codegeex4-all-9b.IQ2_M | IQ2_M | - | ⏳ Processing | 🟢 IMatrix | -
93
+ | codegeex4-all-9b.IQ2_S | IQ2_S | - | ⏳ Processing | 🟢 IMatrix | -
94
+ | codegeex4-all-9b.IQ2_XS | IQ2_XS | - | ⏳ Processing | 🟢 IMatrix | -
95
+ | codegeex4-all-9b.IQ2_XXS | IQ2_XXS | - | ⏳ Processing | 🟢 IMatrix | -
96
+ | codegeex4-all-9b.IQ1_M | IQ1_M | - | ⏳ Processing | 🟢 IMatrix | -
97
+ | codegeex4-all-9b.IQ1_S | IQ1_S | - | ⏳ Processing | 🟢 IMatrix | -
98
+
99
+
100
+ ## Downloading using huggingface-cli
101
+ If you do not have hugginface-cli installed:
102
+ ```
103
+ pip install -U "huggingface_hub[cli]"
104
+ ```
105
+ Download the specific file you want:
106
+ ```
107
+ huggingface-cli download legraphista/codegeex4-all-9b-IMat-GGUF --include "codegeex4-all-9b.Q8_0.gguf" --local-dir ./
108
+ ```
109
+ If the model file is big, it has been split into multiple files. In order to download them all to a local folder, run:
110
+ ```
111
+ huggingface-cli download legraphista/codegeex4-all-9b-IMat-GGUF --include "codegeex4-all-9b.Q8_0/*" --local-dir ./
112
+ # see FAQ for merging GGUF's
113
+ ```
114
+
115
+ ---
116
+
117
+ ## Inference
118
+
119
+ ### Llama.cpp
120
+ ```
121
+ llama.cpp/main -m codegeex4-all-9b.Q8_0.gguf --color -i -p "prompt here"
122
+ ```
123
+
124
+ ---
125
+
126
+ ## FAQ
127
+
128
+ ### Why is the IMatrix not applied everywhere?
129
+ According to [this investigation](https://www.reddit.com/r/LocalLLaMA/comments/1993iro/ggufs_quants_can_punch_above_their_weights_now/), it appears that lower quantizations are the only ones that benefit from the imatrix input (as per hellaswag results).
130
+
131
+ ### How do I merge a split GGUF?
132
+ 1. Make sure you have `gguf-split` available
133
+ - To get hold of `gguf-split`, navigate to https://github.com/ggerganov/llama.cpp/releases
134
+ - Download the appropriate zip for your system from the latest release
135
+ - Unzip the archive and you should be able to find `gguf-split`
136
+ 2. Locate your GGUF chunks folder (ex: `codegeex4-all-9b.Q8_0`)
137
+ 3. Run `gguf-split --merge codegeex4-all-9b.Q8_0/codegeex4-all-9b.Q8_0-00001-of-XXXXX.gguf codegeex4-all-9b.Q8_0.gguf`
138
+ - Make sure to point `gguf-split` to the first chunk of the split.
139
+
140
+ ---
141
+
142
+ Got a suggestion? Ping me [@legraphista](https://x.com/legraphista)!