legraphista commited on
Commit
3a85e9c
β€’
1 Parent(s): 500b365

Upload README.md with huggingface_hub

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