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