初始化项目,由ModelHub XC社区提供模型
Model: bartowski/THUDM_GLM-Z1-9B-0414-GGUF Source: Original Platform
This commit is contained in:
72
.gitattributes
vendored
Normal file
72
.gitattributes
vendored
Normal file
@@ -0,0 +1,72 @@
|
|||||||
|
*.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
|
||||||
|
THUDM_GLM-Z1-9B-0414.imatrix filter=lfs diff=lfs merge=lfs -text
|
||||||
|
THUDM_GLM-Z1-9B-0414-IQ2_M.gguf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
THUDM_GLM-Z1-9B-0414-IQ3_M.gguf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
THUDM_GLM-Z1-9B-0414-IQ3_XS.gguf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
THUDM_GLM-Z1-9B-0414-IQ3_XXS.gguf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
THUDM_GLM-Z1-9B-0414-IQ4_NL.gguf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
THUDM_GLM-Z1-9B-0414-IQ4_XS.gguf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
THUDM_GLM-Z1-9B-0414-Q2_K.gguf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
THUDM_GLM-Z1-9B-0414-Q2_K_L.gguf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
THUDM_GLM-Z1-9B-0414-Q3_K_L.gguf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
THUDM_GLM-Z1-9B-0414-Q3_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
THUDM_GLM-Z1-9B-0414-Q3_K_S.gguf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
THUDM_GLM-Z1-9B-0414-Q3_K_XL.gguf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
THUDM_GLM-Z1-9B-0414-Q4_0.gguf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
THUDM_GLM-Z1-9B-0414-Q4_1.gguf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
THUDM_GLM-Z1-9B-0414-Q4_K_L.gguf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
THUDM_GLM-Z1-9B-0414-Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
THUDM_GLM-Z1-9B-0414-Q4_K_S.gguf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
THUDM_GLM-Z1-9B-0414-Q5_K_L.gguf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
THUDM_GLM-Z1-9B-0414-Q5_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
THUDM_GLM-Z1-9B-0414-Q5_K_S.gguf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
THUDM_GLM-Z1-9B-0414-Q6_K.gguf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
THUDM_GLM-Z1-9B-0414-Q6_K_L.gguf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
THUDM_GLM-Z1-9B-0414-Q8_0.gguf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
THUDM_GLM-Z1-9B-0414-bf16.gguf filter=lfs diff=lfs merge=lfs -text
|
||||||
177
README.md
Normal file
177
README.md
Normal file
@@ -0,0 +1,177 @@
|
|||||||
|
---
|
||||||
|
quantized_by: bartowski
|
||||||
|
pipeline_tag: text-generation
|
||||||
|
language:
|
||||||
|
- zh
|
||||||
|
- en
|
||||||
|
license: mit
|
||||||
|
base_model: THUDM/GLM-Z1-9B-0414
|
||||||
|
base_model_relation: quantized
|
||||||
|
---
|
||||||
|
|
||||||
|
## Llamacpp imatrix Quantizations of GLM-Z1-9B-0414 by THUDM
|
||||||
|
|
||||||
|
Using <a href="https://github.com/ggerganov/llama.cpp/">llama.cpp</a> release <a href="https://github.com/ggerganov/llama.cpp/releases/tag/b5228">b5228</a> for quantization.
|
||||||
|
|
||||||
|
Original model: https://huggingface.co/THUDM/GLM-Z1-9B-0414
|
||||||
|
|
||||||
|
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
|
||||||
|
|
||||||
|
```
|
||||||
|
[gMASK]<sop><|system|>
|
||||||
|
{system_prompt}<|user|>
|
||||||
|
{prompt}<|assistant|>
|
||||||
|
<think>
|
||||||
|
```
|
||||||
|
|
||||||
|
## What's new:
|
||||||
|
|
||||||
|
Fix tokenizer
|
||||||
|
|
||||||
|
## Download a file (not the whole branch) from below:
|
||||||
|
|
||||||
|
| Filename | Quant type | File Size | Split | Description |
|
||||||
|
| -------- | ---------- | --------- | ----- | ----------- |
|
||||||
|
| [GLM-Z1-9B-0414-bf16.gguf](https://huggingface.co/bartowski/THUDM_GLM-Z1-9B-0414-GGUF/blob/main/THUDM_GLM-Z1-9B-0414-bf16.gguf) | bf16 | 18.81GB | false | Full BF16 weights. |
|
||||||
|
| [GLM-Z1-9B-0414-Q8_0.gguf](https://huggingface.co/bartowski/THUDM_GLM-Z1-9B-0414-GGUF/blob/main/THUDM_GLM-Z1-9B-0414-Q8_0.gguf) | Q8_0 | 10.00GB | false | Extremely high quality, generally unneeded but max available quant. |
|
||||||
|
| [GLM-Z1-9B-0414-Q6_K_L.gguf](https://huggingface.co/bartowski/THUDM_GLM-Z1-9B-0414-GGUF/blob/main/THUDM_GLM-Z1-9B-0414-Q6_K_L.gguf) | Q6_K_L | 8.57GB | false | Uses Q8_0 for embed and output weights. Very high quality, near perfect, *recommended*. |
|
||||||
|
| [GLM-Z1-9B-0414-Q6_K.gguf](https://huggingface.co/bartowski/THUDM_GLM-Z1-9B-0414-GGUF/blob/main/THUDM_GLM-Z1-9B-0414-Q6_K.gguf) | Q6_K | 8.27GB | false | Very high quality, near perfect, *recommended*. |
|
||||||
|
| [GLM-Z1-9B-0414-Q5_K_L.gguf](https://huggingface.co/bartowski/THUDM_GLM-Z1-9B-0414-GGUF/blob/main/THUDM_GLM-Z1-9B-0414-Q5_K_L.gguf) | Q5_K_L | 7.43GB | false | Uses Q8_0 for embed and output weights. High quality, *recommended*. |
|
||||||
|
| [GLM-Z1-9B-0414-Q5_K_M.gguf](https://huggingface.co/bartowski/THUDM_GLM-Z1-9B-0414-GGUF/blob/main/THUDM_GLM-Z1-9B-0414-Q5_K_M.gguf) | Q5_K_M | 7.05GB | false | High quality, *recommended*. |
|
||||||
|
| [GLM-Z1-9B-0414-Q5_K_S.gguf](https://huggingface.co/bartowski/THUDM_GLM-Z1-9B-0414-GGUF/blob/main/THUDM_GLM-Z1-9B-0414-Q5_K_S.gguf) | Q5_K_S | 6.70GB | false | High quality, *recommended*. |
|
||||||
|
| [GLM-Z1-9B-0414-Q4_K_L.gguf](https://huggingface.co/bartowski/THUDM_GLM-Z1-9B-0414-GGUF/blob/main/THUDM_GLM-Z1-9B-0414-Q4_K_L.gguf) | Q4_K_L | 6.63GB | false | Uses Q8_0 for embed and output weights. Good quality, *recommended*. |
|
||||||
|
| [GLM-Z1-9B-0414-Q4_K_M.gguf](https://huggingface.co/bartowski/THUDM_GLM-Z1-9B-0414-GGUF/blob/main/THUDM_GLM-Z1-9B-0414-Q4_K_M.gguf) | Q4_K_M | 6.17GB | false | Good quality, default size for most use cases, *recommended*. |
|
||||||
|
| [GLM-Z1-9B-0414-Q4_1.gguf](https://huggingface.co/bartowski/THUDM_GLM-Z1-9B-0414-GGUF/blob/main/THUDM_GLM-Z1-9B-0414-Q4_1.gguf) | Q4_1 | 6.01GB | false | Legacy format, similar performance to Q4_K_S but with improved tokens/watt on Apple silicon. |
|
||||||
|
| [GLM-Z1-9B-0414-Q4_K_S.gguf](https://huggingface.co/bartowski/THUDM_GLM-Z1-9B-0414-GGUF/blob/main/THUDM_GLM-Z1-9B-0414-Q4_K_S.gguf) | Q4_K_S | 5.76GB | false | Slightly lower quality with more space savings, *recommended*. |
|
||||||
|
| [GLM-Z1-9B-0414-Q3_K_XL.gguf](https://huggingface.co/bartowski/THUDM_GLM-Z1-9B-0414-GGUF/blob/main/THUDM_GLM-Z1-9B-0414-Q3_K_XL.gguf) | Q3_K_XL | 5.74GB | false | Uses Q8_0 for embed and output weights. Lower quality but usable, good for low RAM availability. |
|
||||||
|
| [GLM-Z1-9B-0414-Q4_0.gguf](https://huggingface.co/bartowski/THUDM_GLM-Z1-9B-0414-GGUF/blob/main/THUDM_GLM-Z1-9B-0414-Q4_0.gguf) | Q4_0 | 5.48GB | false | Legacy format, offers online repacking for ARM and AVX CPU inference. |
|
||||||
|
| [GLM-Z1-9B-0414-IQ4_NL.gguf](https://huggingface.co/bartowski/THUDM_GLM-Z1-9B-0414-GGUF/blob/main/THUDM_GLM-Z1-9B-0414-IQ4_NL.gguf) | IQ4_NL | 5.47GB | false | Similar to IQ4_XS, but slightly larger. Offers online repacking for ARM CPU inference. |
|
||||||
|
| [GLM-Z1-9B-0414-IQ4_XS.gguf](https://huggingface.co/bartowski/THUDM_GLM-Z1-9B-0414-GGUF/blob/main/THUDM_GLM-Z1-9B-0414-IQ4_XS.gguf) | IQ4_XS | 5.26GB | false | Decent quality, smaller than Q4_K_S with similar performance, *recommended*. |
|
||||||
|
| [GLM-Z1-9B-0414-Q3_K_L.gguf](https://huggingface.co/bartowski/THUDM_GLM-Z1-9B-0414-GGUF/blob/main/THUDM_GLM-Z1-9B-0414-Q3_K_L.gguf) | Q3_K_L | 5.20GB | false | Lower quality but usable, good for low RAM availability. |
|
||||||
|
| [GLM-Z1-9B-0414-Q3_K_M.gguf](https://huggingface.co/bartowski/THUDM_GLM-Z1-9B-0414-GGUF/blob/main/THUDM_GLM-Z1-9B-0414-Q3_K_M.gguf) | Q3_K_M | 4.97GB | false | Low quality. |
|
||||||
|
| [GLM-Z1-9B-0414-IQ3_M.gguf](https://huggingface.co/bartowski/THUDM_GLM-Z1-9B-0414-GGUF/blob/main/THUDM_GLM-Z1-9B-0414-IQ3_M.gguf) | IQ3_M | 4.72GB | false | Medium-low quality, new method with decent performance comparable to Q3_K_M. |
|
||||||
|
| [GLM-Z1-9B-0414-Q2_K_L.gguf](https://huggingface.co/bartowski/THUDM_GLM-Z1-9B-0414-GGUF/blob/main/THUDM_GLM-Z1-9B-0414-Q2_K_L.gguf) | Q2_K_L | 4.61GB | false | Uses Q8_0 for embed and output weights. Very low quality but surprisingly usable. |
|
||||||
|
| [GLM-Z1-9B-0414-Q3_K_S.gguf](https://huggingface.co/bartowski/THUDM_GLM-Z1-9B-0414-GGUF/blob/main/THUDM_GLM-Z1-9B-0414-Q3_K_S.gguf) | Q3_K_S | 4.59GB | false | Low quality, not recommended. |
|
||||||
|
| [GLM-Z1-9B-0414-IQ3_XS.gguf](https://huggingface.co/bartowski/THUDM_GLM-Z1-9B-0414-GGUF/blob/main/THUDM_GLM-Z1-9B-0414-IQ3_XS.gguf) | IQ3_XS | 4.41GB | false | Lower quality, new method with decent performance, slightly better than Q3_K_S. |
|
||||||
|
| [GLM-Z1-9B-0414-IQ3_XXS.gguf](https://huggingface.co/bartowski/THUDM_GLM-Z1-9B-0414-GGUF/blob/main/THUDM_GLM-Z1-9B-0414-IQ3_XXS.gguf) | IQ3_XXS | 4.23GB | false | Lower quality, new method with decent performance, comparable to Q3 quants. |
|
||||||
|
| [GLM-Z1-9B-0414-Q2_K.gguf](https://huggingface.co/bartowski/THUDM_GLM-Z1-9B-0414-GGUF/blob/main/THUDM_GLM-Z1-9B-0414-Q2_K.gguf) | Q2_K | 4.01GB | false | Very low quality but surprisingly usable. |
|
||||||
|
| [GLM-Z1-9B-0414-IQ2_M.gguf](https://huggingface.co/bartowski/THUDM_GLM-Z1-9B-0414-GGUF/blob/main/THUDM_GLM-Z1-9B-0414-IQ2_M.gguf) | IQ2_M | 3.95GB | 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/THUDM_GLM-Z1-9B-0414-GGUF --include "THUDM_GLM-Z1-9B-0414-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/THUDM_GLM-Z1-9B-0414-GGUF --include "THUDM_GLM-Z1-9B-0414-Q8_0/*" --local-dir ./
|
||||||
|
```
|
||||||
|
|
||||||
|
You can either specify a new local-dir (THUDM_GLM-Z1-9B-0414-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
|
||||||
3
THUDM_GLM-Z1-9B-0414-IQ2_M.gguf
Normal file
3
THUDM_GLM-Z1-9B-0414-IQ2_M.gguf
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:525d5a9682182766977da9851420f5a99cad1cd23c57c238cc74df2b5f56874a
|
||||||
|
size 3946313376
|
||||||
3
THUDM_GLM-Z1-9B-0414-IQ3_M.gguf
Normal file
3
THUDM_GLM-Z1-9B-0414-IQ3_M.gguf
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:4664b536ab799a0925599137db5633e2dac9f6f5301c8052d7209041a91907a9
|
||||||
|
size 4721800864
|
||||||
3
THUDM_GLM-Z1-9B-0414-IQ3_XS.gguf
Normal file
3
THUDM_GLM-Z1-9B-0414-IQ3_XS.gguf
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:4581c9f7b56f44c137094663741ec7630dc8a30e48e90d11a788734a168d115c
|
||||||
|
size 4406408864
|
||||||
3
THUDM_GLM-Z1-9B-0414-IQ3_XXS.gguf
Normal file
3
THUDM_GLM-Z1-9B-0414-IQ3_XXS.gguf
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:655a62ccb0a17d4c696a41447092558120da3c738c705d0f2f2a946456a2d809
|
||||||
|
size 4226807456
|
||||||
3
THUDM_GLM-Z1-9B-0414-IQ4_NL.gguf
Normal file
3
THUDM_GLM-Z1-9B-0414-IQ4_NL.gguf
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:f6871eeed48dd74334c5dc90ed0127b3468e4eda7ea8447525f3ef48725a9726
|
||||||
|
size 5465175712
|
||||||
3
THUDM_GLM-Z1-9B-0414-IQ4_XS.gguf
Normal file
3
THUDM_GLM-Z1-9B-0414-IQ4_XS.gguf
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:7039bc9a9b59e5dbe0e439d6233751854eb7fad6eb178ef2c90698592232492e
|
||||||
|
size 5262276256
|
||||||
3
THUDM_GLM-Z1-9B-0414-Q2_K.gguf
Normal file
3
THUDM_GLM-Z1-9B-0414-Q2_K.gguf
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:8dfd102fe403b770028451605ee20e49055e81a8e9bacf42cf881dcf1f5ba3d8
|
||||||
|
size 4006344352
|
||||||
3
THUDM_GLM-Z1-9B-0414-Q2_K_L.gguf
Normal file
3
THUDM_GLM-Z1-9B-0414-Q2_K_L.gguf
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:024cbf139c869f58dfe8bb3d31aec0d47718db2bf8266e499c32ecec8b23d05d
|
||||||
|
size 4612552352
|
||||||
3
THUDM_GLM-Z1-9B-0414-Q3_K_L.gguf
Normal file
3
THUDM_GLM-Z1-9B-0414-Q3_K_L.gguf
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:9110d8bc63017d95704ec276c24bd640097e087906d1e1369072272ad99af2b3
|
||||||
|
size 5196609184
|
||||||
3
THUDM_GLM-Z1-9B-0414-Q3_K_M.gguf
Normal file
3
THUDM_GLM-Z1-9B-0414-Q3_K_M.gguf
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:27a4c956f71d0e440d84a30c8efa6b64de0bb69e9bd31f5c752a555bae522b41
|
||||||
|
size 4974507680
|
||||||
3
THUDM_GLM-Z1-9B-0414-Q3_K_S.gguf
Normal file
3
THUDM_GLM-Z1-9B-0414-Q3_K_S.gguf
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:b6ed1f0f178657f962f209c734ff111c62e18adcc4d28f087319cab1e0fa9898
|
||||||
|
size 4592039584
|
||||||
3
THUDM_GLM-Z1-9B-0414-Q3_K_XL.gguf
Normal file
3
THUDM_GLM-Z1-9B-0414-Q3_K_XL.gguf
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:eac16d2eeaa1c98d35d98328f5369f4ddd8d4f711222413974c17190e76dd793
|
||||||
|
size 5739771552
|
||||||
3
THUDM_GLM-Z1-9B-0414-Q4_0.gguf
Normal file
3
THUDM_GLM-Z1-9B-0414-Q4_0.gguf
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:db68e39649bcb0a481240a7564379c27e6b2922c38756eab0cb1fec87707ab9d
|
||||||
|
size 5477463712
|
||||||
3
THUDM_GLM-Z1-9B-0414-Q4_1.gguf
Normal file
3
THUDM_GLM-Z1-9B-0414-Q4_1.gguf
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:1a7f8d38c5511d54cec9f90fa440bd748e0686b2fe3cfa818aeeb1a4e0565ba4
|
||||||
|
size 6008600224
|
||||||
3
THUDM_GLM-Z1-9B-0414-Q4_K_L.gguf
Normal file
3
THUDM_GLM-Z1-9B-0414-Q4_K_L.gguf
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:a493b993456e1d05462e89888ca648cbb564124b51aec72f3dcac80a8f380b95
|
||||||
|
size 6627292832
|
||||||
3
THUDM_GLM-Z1-9B-0414-Q4_K_M.gguf
Normal file
3
THUDM_GLM-Z1-9B-0414-Q4_K_M.gguf
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:df22a104e50b53809178646843543337290d159f00e4b0c3b94cb848b6fc6741
|
||||||
|
size 6166574752
|
||||||
3
THUDM_GLM-Z1-9B-0414-Q4_K_S.gguf
Normal file
3
THUDM_GLM-Z1-9B-0414-Q4_K_S.gguf
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:9dad591917c1e25d14e680f635f57670aa82cf19cacdf93db61bf30ec09d0048
|
||||||
|
size 5758482080
|
||||||
3
THUDM_GLM-Z1-9B-0414-Q5_K_L.gguf
Normal file
3
THUDM_GLM-Z1-9B-0414-Q5_K_L.gguf
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:8372d847286b29f8114230eb2cef88b9b2f13f0eb10b40f45973bba18780fe5d
|
||||||
|
size 7434040992
|
||||||
3
THUDM_GLM-Z1-9B-0414-Q5_K_M.gguf
Normal file
3
THUDM_GLM-Z1-9B-0414-Q5_K_M.gguf
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:284d7a63ce4a1122e57fa8f7b20599c77e58c5d341d7cd8d056dc1e2346ef709
|
||||||
|
size 7050917536
|
||||||
3
THUDM_GLM-Z1-9B-0414-Q5_K_S.gguf
Normal file
3
THUDM_GLM-Z1-9B-0414-Q5_K_S.gguf
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:51cc27307725be391d72daad4f9e037cba4d378f5ee3a347faa597a7301f5a95
|
||||||
|
size 6697514656
|
||||||
3
THUDM_GLM-Z1-9B-0414-Q6_K.gguf
Normal file
3
THUDM_GLM-Z1-9B-0414-Q6_K.gguf
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:f81f4b12f0b140e5f1639bf73ea9f26b8798c55d85291d76e0239634fca5cb45
|
||||||
|
size 8266643104
|
||||||
3
THUDM_GLM-Z1-9B-0414-Q6_K_L.gguf
Normal file
3
THUDM_GLM-Z1-9B-0414-Q6_K_L.gguf
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:00b21b8cccabc43bfd184aa0540d1bdd66e87a97c871ecb2d793a377274eaaac
|
||||||
|
size 8567322272
|
||||||
3
THUDM_GLM-Z1-9B-0414-Q8_0.gguf
Normal file
3
THUDM_GLM-Z1-9B-0414-Q8_0.gguf
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:9b7e07fe1738f4ac2985ab75a99d616a6cc3f4c461f691df05e8d49421c151b0
|
||||||
|
size 9999611552
|
||||||
3
THUDM_GLM-Z1-9B-0414-bf16.gguf
Normal file
3
THUDM_GLM-Z1-9B-0414-bf16.gguf
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:13430cfaceb00eed29f0b74e5a4e0ca4a2a4a7a8c87c4f41064626215979534f
|
||||||
|
size 18811581824
|
||||||
3
THUDM_GLM-Z1-9B-0414.imatrix
Normal file
3
THUDM_GLM-Z1-9B-0414.imatrix
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:df9c935e5bb362d3c92e0b30d107bf451681db874587f275508080300bcc7902
|
||||||
|
size 5476108
|
||||||
1
configuration.json
Normal file
1
configuration.json
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{"framework": "pytorch", "task": "text-generation", "allow_remote": true}
|
||||||
Reference in New Issue
Block a user