legraphista
commited on
Commit
β’
d289a65
1
Parent(s):
b702491
Upload README.md with huggingface_hub
Browse files
README.md
ADDED
@@ -0,0 +1,164 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
base_model: UCLA-AGI/Llama-3-Instruct-8B-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 |
+
# Llama-3-Instruct-8B-SPPO-Iter3-IMat-GGUF
|
30 |
+
_Llama.cpp imatrix quantization of UCLA-AGI/Llama-3-Instruct-8B-SPPO-Iter3_
|
31 |
+
|
32 |
+
Original Model: [UCLA-AGI/Llama-3-Instruct-8B-SPPO-Iter3](https://huggingface.co/UCLA-AGI/Llama-3-Instruct-8B-SPPO-Iter3)
|
33 |
+
Original dtype: `BF16` (`bfloat16`)
|
34 |
+
Quantized by: llama.cpp [b3248](https://github.com/ggerganov/llama.cpp/releases/tag/b3248)
|
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 |
+
- [Chat template with system prompt](#chat-template-with-system-prompt)
|
45 |
+
- [Llama.cpp](#llama-cpp)
|
46 |
+
- [FAQ](#faq)
|
47 |
+
- [Why is the IMatrix not applied everywhere?](#why-is-the-imatrix-not-applied-everywhere)
|
48 |
+
- [How do I merge a split GGUF?](#how-do-i-merge-a-split-gguf)
|
49 |
+
|
50 |
+
---
|
51 |
+
|
52 |
+
## Files
|
53 |
+
|
54 |
+
### IMatrix
|
55 |
+
Status: β³ Processing
|
56 |
+
Link: [here](https://huggingface.co/legraphista/Llama-3-Instruct-8B-SPPO-Iter3-IMat-GGUF/blob/main/imatrix.dat)
|
57 |
+
|
58 |
+
### Common Quants
|
59 |
+
| Filename | Quant type | File Size | Status | Uses IMatrix | Is Split |
|
60 |
+
| -------- | ---------- | --------- | ------ | ------------ | -------- |
|
61 |
+
| Llama-3-Instruct-8B-SPPO-Iter3.Q8_0 | Q8_0 | - | β³ Processing | βͺ Static | -
|
62 |
+
| Llama-3-Instruct-8B-SPPO-Iter3.Q6_K | Q6_K | - | β³ Processing | βͺ Static | -
|
63 |
+
| Llama-3-Instruct-8B-SPPO-Iter3.Q4_K | Q4_K | - | β³ Processing | π’ IMatrix | -
|
64 |
+
| Llama-3-Instruct-8B-SPPO-Iter3.Q3_K | Q3_K | - | β³ Processing | π’ IMatrix | -
|
65 |
+
| Llama-3-Instruct-8B-SPPO-Iter3.Q2_K | Q2_K | - | β³ Processing | π’ IMatrix | -
|
66 |
+
|
67 |
+
|
68 |
+
### All Quants
|
69 |
+
| Filename | Quant type | File Size | Status | Uses IMatrix | Is Split |
|
70 |
+
| -------- | ---------- | --------- | ------ | ------------ | -------- |
|
71 |
+
| Llama-3-Instruct-8B-SPPO-Iter3.BF16 | BF16 | - | β³ Processing | βͺ Static | -
|
72 |
+
| Llama-3-Instruct-8B-SPPO-Iter3.FP16 | F16 | - | β³ Processing | βͺ Static | -
|
73 |
+
| Llama-3-Instruct-8B-SPPO-Iter3.Q8_0 | Q8_0 | - | β³ Processing | βͺ Static | -
|
74 |
+
| Llama-3-Instruct-8B-SPPO-Iter3.Q6_K | Q6_K | - | β³ Processing | βͺ Static | -
|
75 |
+
| Llama-3-Instruct-8B-SPPO-Iter3.Q5_K | Q5_K | - | β³ Processing | βͺ Static | -
|
76 |
+
| Llama-3-Instruct-8B-SPPO-Iter3.Q5_K_S | Q5_K_S | - | β³ Processing | βͺ Static | -
|
77 |
+
| Llama-3-Instruct-8B-SPPO-Iter3.Q4_K | Q4_K | - | β³ Processing | π’ IMatrix | -
|
78 |
+
| Llama-3-Instruct-8B-SPPO-Iter3.Q4_K_S | Q4_K_S | - | β³ Processing | π’ IMatrix | -
|
79 |
+
| Llama-3-Instruct-8B-SPPO-Iter3.IQ4_NL | IQ4_NL | - | β³ Processing | π’ IMatrix | -
|
80 |
+
| Llama-3-Instruct-8B-SPPO-Iter3.IQ4_XS | IQ4_XS | - | β³ Processing | π’ IMatrix | -
|
81 |
+
| Llama-3-Instruct-8B-SPPO-Iter3.Q3_K | Q3_K | - | β³ Processing | π’ IMatrix | -
|
82 |
+
| Llama-3-Instruct-8B-SPPO-Iter3.Q3_K_L | Q3_K_L | - | β³ Processing | π’ IMatrix | -
|
83 |
+
| Llama-3-Instruct-8B-SPPO-Iter3.Q3_K_S | Q3_K_S | - | β³ Processing | π’ IMatrix | -
|
84 |
+
| Llama-3-Instruct-8B-SPPO-Iter3.IQ3_M | IQ3_M | - | β³ Processing | π’ IMatrix | -
|
85 |
+
| Llama-3-Instruct-8B-SPPO-Iter3.IQ3_S | IQ3_S | - | β³ Processing | π’ IMatrix | -
|
86 |
+
| Llama-3-Instruct-8B-SPPO-Iter3.IQ3_XS | IQ3_XS | - | β³ Processing | π’ IMatrix | -
|
87 |
+
| Llama-3-Instruct-8B-SPPO-Iter3.IQ3_XXS | IQ3_XXS | - | β³ Processing | π’ IMatrix | -
|
88 |
+
| Llama-3-Instruct-8B-SPPO-Iter3.Q2_K | Q2_K | - | β³ Processing | π’ IMatrix | -
|
89 |
+
| Llama-3-Instruct-8B-SPPO-Iter3.Q2_K_S | Q2_K_S | - | β³ Processing | π’ IMatrix | -
|
90 |
+
| Llama-3-Instruct-8B-SPPO-Iter3.IQ2_M | IQ2_M | - | β³ Processing | π’ IMatrix | -
|
91 |
+
| Llama-3-Instruct-8B-SPPO-Iter3.IQ2_S | IQ2_S | - | β³ Processing | π’ IMatrix | -
|
92 |
+
| Llama-3-Instruct-8B-SPPO-Iter3.IQ2_XS | IQ2_XS | - | β³ Processing | π’ IMatrix | -
|
93 |
+
| Llama-3-Instruct-8B-SPPO-Iter3.IQ2_XXS | IQ2_XXS | - | β³ Processing | π’ IMatrix | -
|
94 |
+
| Llama-3-Instruct-8B-SPPO-Iter3.IQ1_M | IQ1_M | - | β³ Processing | π’ IMatrix | -
|
95 |
+
| Llama-3-Instruct-8B-SPPO-Iter3.IQ1_S | IQ1_S | - | β³ Processing | π’ IMatrix | -
|
96 |
+
|
97 |
+
|
98 |
+
## Downloading using huggingface-cli
|
99 |
+
If you do not have hugginface-cli installed:
|
100 |
+
```
|
101 |
+
pip install -U "huggingface_hub[cli]"
|
102 |
+
```
|
103 |
+
Download the specific file you want:
|
104 |
+
```
|
105 |
+
huggingface-cli download legraphista/Llama-3-Instruct-8B-SPPO-Iter3-IMat-GGUF --include "Llama-3-Instruct-8B-SPPO-Iter3.Q8_0.gguf" --local-dir ./
|
106 |
+
```
|
107 |
+
If the model file is big, it has been split into multiple files. In order to download them all to a local folder, run:
|
108 |
+
```
|
109 |
+
huggingface-cli download legraphista/Llama-3-Instruct-8B-SPPO-Iter3-IMat-GGUF --include "Llama-3-Instruct-8B-SPPO-Iter3.Q8_0/*" --local-dir ./
|
110 |
+
# see FAQ for merging GGUF's
|
111 |
+
```
|
112 |
+
|
113 |
+
---
|
114 |
+
|
115 |
+
## Inference
|
116 |
+
|
117 |
+
### Simple chat template
|
118 |
+
```
|
119 |
+
<|begin_of_text|><|start_header_id|>user<|end_header_id|>
|
120 |
+
|
121 |
+
{user_prompt}<|eot_id|><|start_header_id|>assistant<|end_header_id|>
|
122 |
+
|
123 |
+
{assistant_response}<|eot_id|><|start_header_id|>user<|end_header_id|>
|
124 |
+
|
125 |
+
{next_user_prompt}<|eot_id|>
|
126 |
+
```
|
127 |
+
|
128 |
+
### Chat template with system prompt
|
129 |
+
```
|
130 |
+
<|begin_of_text|><|start_header_id|>system<|end_header_id|>
|
131 |
+
|
132 |
+
{system_prompt}<|eot_id|><|start_header_id|>user<|end_header_id|>
|
133 |
+
|
134 |
+
{user_prompt}<|eot_id|><|start_header_id|>assistant<|end_header_id|>
|
135 |
+
|
136 |
+
{assistant_response}<|eot_id|><|start_header_id|>user<|end_header_id|>
|
137 |
+
|
138 |
+
{next_user_prompt}<|eot_id|>
|
139 |
+
```
|
140 |
+
|
141 |
+
### Llama.cpp
|
142 |
+
```
|
143 |
+
llama.cpp/main -m Llama-3-Instruct-8B-SPPO-Iter3.Q8_0.gguf --color -i -p "prompt here (according to the chat template)"
|
144 |
+
```
|
145 |
+
|
146 |
+
---
|
147 |
+
|
148 |
+
## FAQ
|
149 |
+
|
150 |
+
### Why is the IMatrix not applied everywhere?
|
151 |
+
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).
|
152 |
+
|
153 |
+
### How do I merge a split GGUF?
|
154 |
+
1. Make sure you have `gguf-split` available
|
155 |
+
- To get hold of `gguf-split`, navigate to https://github.com/ggerganov/llama.cpp/releases
|
156 |
+
- Download the appropriate zip for your system from the latest release
|
157 |
+
- Unzip the archive and you should be able to find `gguf-split`
|
158 |
+
2. Locate your GGUF chunks folder (ex: `Llama-3-Instruct-8B-SPPO-Iter3.Q8_0`)
|
159 |
+
3. Run `gguf-split --merge Llama-3-Instruct-8B-SPPO-Iter3.Q8_0/Llama-3-Instruct-8B-SPPO-Iter3.Q8_0-00001-of-XXXXX.gguf Llama-3-Instruct-8B-SPPO-Iter3.Q8_0.gguf`
|
160 |
+
- Make sure to point `gguf-split` to the first chunk of the split.
|
161 |
+
|
162 |
+
---
|
163 |
+
|
164 |
+
Got a suggestion? Ping me [@legraphista](https://x.com/legraphista)!
|