Llamacpp quants
Browse files- .gitattributes +11 -0
- Hercules-5.0-Qwen2-1.5B-IQ3_M.gguf +3 -0
- Hercules-5.0-Qwen2-1.5B-IQ4_XS.gguf +3 -0
- Hercules-5.0-Qwen2-1.5B-Q3_K_L.gguf +3 -0
- Hercules-5.0-Qwen2-1.5B-Q4_K_M.gguf +3 -0
- Hercules-5.0-Qwen2-1.5B-Q4_K_S.gguf +3 -0
- Hercules-5.0-Qwen2-1.5B-Q5_K_M.gguf +3 -0
- Hercules-5.0-Qwen2-1.5B-Q5_K_S.gguf +3 -0
- Hercules-5.0-Qwen2-1.5B-Q6_K.gguf +3 -0
- Hercules-5.0-Qwen2-1.5B-Q8_0.gguf +3 -0
- Hercules-5.0-Qwen2-1.5B-f32.gguf +3 -0
- Hercules-5.0-Qwen2-1.5B.imatrix +3 -0
- README.md +90 -0
.gitattributes
CHANGED
@@ -33,3 +33,14 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
36 |
+
Hercules-5.0-Qwen2-1.5B-IQ3_M.gguf filter=lfs diff=lfs merge=lfs -text
|
37 |
+
Hercules-5.0-Qwen2-1.5B-IQ4_XS.gguf filter=lfs diff=lfs merge=lfs -text
|
38 |
+
Hercules-5.0-Qwen2-1.5B-Q3_K_L.gguf filter=lfs diff=lfs merge=lfs -text
|
39 |
+
Hercules-5.0-Qwen2-1.5B-Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
40 |
+
Hercules-5.0-Qwen2-1.5B-Q4_K_S.gguf filter=lfs diff=lfs merge=lfs -text
|
41 |
+
Hercules-5.0-Qwen2-1.5B-Q5_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
42 |
+
Hercules-5.0-Qwen2-1.5B-Q5_K_S.gguf filter=lfs diff=lfs merge=lfs -text
|
43 |
+
Hercules-5.0-Qwen2-1.5B-Q6_K.gguf filter=lfs diff=lfs merge=lfs -text
|
44 |
+
Hercules-5.0-Qwen2-1.5B-Q8_0.gguf filter=lfs diff=lfs merge=lfs -text
|
45 |
+
Hercules-5.0-Qwen2-1.5B-f32.gguf filter=lfs diff=lfs merge=lfs -text
|
46 |
+
Hercules-5.0-Qwen2-1.5B.imatrix filter=lfs diff=lfs merge=lfs -text
|
Hercules-5.0-Qwen2-1.5B-IQ3_M.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:eab2b57e42b703c8ceca626aa49c6429d446383d15ccd52068e878253242b360
|
3 |
+
size 776661376
|
Hercules-5.0-Qwen2-1.5B-IQ4_XS.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:0fad42796e77505d857da2d7d3dbf3373b7c0f37a64482e9a59665cf87297a14
|
3 |
+
size 895729024
|
Hercules-5.0-Qwen2-1.5B-Q3_K_L.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:bc97778321d3fc998fb2dd65024c64269c63dd59610b6427b879cfa354b76e4e
|
3 |
+
size 880160128
|
Hercules-5.0-Qwen2-1.5B-Q4_K_M.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e87b4c3dfd87b40b74e8b7999a3df2ea1864f776243ba08bff6208c780d471ee
|
3 |
+
size 986045824
|
Hercules-5.0-Qwen2-1.5B-Q4_K_S.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:e49fc099675fb844d6916235cc07d6efe523fa254fe3902c4896aa51610abdf4
|
3 |
+
size 940309888
|
Hercules-5.0-Qwen2-1.5B-Q5_K_M.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:2b0e7aece439556840141935436c19ddb25b4ed14cef2355abac0695c617d5a8
|
3 |
+
size 1125047680
|
Hercules-5.0-Qwen2-1.5B-Q5_K_S.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:026a529cbf9804d22a16d9ccd57f374997da0475e88bfa52d99c0cdd3be960ea
|
3 |
+
size 1098726784
|
Hercules-5.0-Qwen2-1.5B-Q6_K.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ba030378ed0dbf89220a4ab5a85dc5f9aa4245057842ae9df6cd7319a15fd3cf
|
3 |
+
size 1272737152
|
Hercules-5.0-Qwen2-1.5B-Q8_0.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:bd88f71ffaf959726221f940ac57787f722d8584314245c7ccd7d541f3e6efe1
|
3 |
+
size 1646570368
|
Hercules-5.0-Qwen2-1.5B-f32.gguf
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:40fbb564e58d5d6343cd8baadf906aaa6a7106cb976fb2da787fc5a8616cb5a4
|
3 |
+
size 6180805216
|
Hercules-5.0-Qwen2-1.5B.imatrix
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:962c55efadc3c512ab6e99f440d310835714e45986803f06e0e4828fe73b6709
|
3 |
+
size 2042215
|
README.md
ADDED
@@ -0,0 +1,90 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: apache-2.0
|
3 |
+
datasets:
|
4 |
+
- Locutusque/hercules-v5.0
|
5 |
+
language:
|
6 |
+
- en
|
7 |
+
quantized_by: bartowski
|
8 |
+
pipeline_tag: text-generation
|
9 |
+
---
|
10 |
+
|
11 |
+
## Llamacpp imatrix Quantizations of Hercules-5.0-Qwen2-1.5B
|
12 |
+
|
13 |
+
Using <a href="https://github.com/ggerganov/llama.cpp/">llama.cpp</a> release <a href="https://github.com/ggerganov/llama.cpp/releases/tag/b3130">b3130</a> for quantization.
|
14 |
+
|
15 |
+
Original model: https://huggingface.co/M4-ai/Hercules-5.0-Qwen2-1.5B
|
16 |
+
|
17 |
+
All quants made using imatrix option with dataset from [here](https://gist.github.com/bartowski1182/eb213dccb3571f863da82e99418f81e8)
|
18 |
+
|
19 |
+
## Prompt format
|
20 |
+
|
21 |
+
```
|
22 |
+
<|im_start|>system
|
23 |
+
{system_prompt}<|im_end|>
|
24 |
+
<|im_start|>user
|
25 |
+
{prompt}<|im_end|>
|
26 |
+
<|im_start|>assistant
|
27 |
+
|
28 |
+
```
|
29 |
+
|
30 |
+
## Download a file (not the whole branch) from below:
|
31 |
+
|
32 |
+
| Filename | Quant type | File Size | Description |
|
33 |
+
| -------- | ---------- | --------- | ----------- |
|
34 |
+
| [Hercules-5.0-Qwen2-1.5B-Q8_0.gguf](https://huggingface.co/bartowski/Hercules-5.0-Qwen2-1.5B-GGUF/blob/main/Hercules-5.0-Qwen2-1.5B-Q8_0.gguf) | Q8_0 | 1646.57MB | Extremely high quality, generally unneeded but max available quant. |
|
35 |
+
| [Hercules-5.0-Qwen2-1.5B-Q6_K.gguf](https://huggingface.co/bartowski/Hercules-5.0-Qwen2-1.5B-GGUF/blob/main/Hercules-5.0-Qwen2-1.5B-Q6_K.gguf) | Q6_K | 1272.73MB | Very high quality, near perfect, *recommended*. |
|
36 |
+
| [Hercules-5.0-Qwen2-1.5B-Q5_K_M.gguf](https://huggingface.co/bartowski/Hercules-5.0-Qwen2-1.5B-GGUF/blob/main/Hercules-5.0-Qwen2-1.5B-Q5_K_M.gguf) | Q5_K_M | 1125.04MB | High quality, *recommended*. |
|
37 |
+
| [Hercules-5.0-Qwen2-1.5B-Q5_K_S.gguf](https://huggingface.co/bartowski/Hercules-5.0-Qwen2-1.5B-GGUF/blob/main/Hercules-5.0-Qwen2-1.5B-Q5_K_S.gguf) | Q5_K_S | 1098.72MB | High quality, *recommended*. |
|
38 |
+
| [Hercules-5.0-Qwen2-1.5B-Q4_K_M.gguf](https://huggingface.co/bartowski/Hercules-5.0-Qwen2-1.5B-GGUF/blob/main/Hercules-5.0-Qwen2-1.5B-Q4_K_M.gguf) | Q4_K_M | 986.04MB | Good quality, uses about 4.83 bits per weight, *recommended*. |
|
39 |
+
| [Hercules-5.0-Qwen2-1.5B-Q4_K_S.gguf](https://huggingface.co/bartowski/Hercules-5.0-Qwen2-1.5B-GGUF/blob/main/Hercules-5.0-Qwen2-1.5B-Q4_K_S.gguf) | Q4_K_S | 940.30MB | Slightly lower quality with more space savings, *recommended*. |
|
40 |
+
| [Hercules-5.0-Qwen2-1.5B-IQ4_XS.gguf](https://huggingface.co/bartowski/Hercules-5.0-Qwen2-1.5B-GGUF/blob/main/Hercules-5.0-Qwen2-1.5B-IQ4_XS.gguf) | IQ4_XS | 895.72MB | Decent quality, smaller than Q4_K_S with similar performance, *recommended*. |
|
41 |
+
| [Hercules-5.0-Qwen2-1.5B-Q3_K_L.gguf](https://huggingface.co/bartowski/Hercules-5.0-Qwen2-1.5B-GGUF/blob/main/Hercules-5.0-Qwen2-1.5B-Q3_K_L.gguf) | Q3_K_L | 880.16MB | Lower quality but usable, good for low RAM availability. |
|
42 |
+
| [Hercules-5.0-Qwen2-1.5B-IQ3_M.gguf](https://huggingface.co/bartowski/Hercules-5.0-Qwen2-1.5B-GGUF/blob/main/Hercules-5.0-Qwen2-1.5B-IQ3_M.gguf) | IQ3_M | 776.66MB | Medium-low quality, new method with decent performance comparable to Q3_K_M. |
|
43 |
+
|
44 |
+
## Downloading using huggingface-cli
|
45 |
+
|
46 |
+
First, make sure you have hugginface-cli installed:
|
47 |
+
|
48 |
+
```
|
49 |
+
pip install -U "huggingface_hub[cli]"
|
50 |
+
```
|
51 |
+
|
52 |
+
Then, you can target the specific file you want:
|
53 |
+
|
54 |
+
```
|
55 |
+
huggingface-cli download bartowski/Hercules-5.0-Qwen2-1.5B-GGUF --include "Hercules-5.0-Qwen2-1.5B-Q4_K_M.gguf" --local-dir ./
|
56 |
+
```
|
57 |
+
|
58 |
+
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:
|
59 |
+
|
60 |
+
```
|
61 |
+
huggingface-cli download bartowski/Hercules-5.0-Qwen2-1.5B-GGUF --include "Hercules-5.0-Qwen2-1.5B-Q8_0.gguf/*" --local-dir Hercules-5.0-Qwen2-1.5B-Q8_0
|
62 |
+
```
|
63 |
+
|
64 |
+
You can either specify a new local-dir (Hercules-5.0-Qwen2-1.5B-Q8_0) or download them all in place (./)
|
65 |
+
|
66 |
+
## Which file should I choose?
|
67 |
+
|
68 |
+
A great write up with charts showing various performances is provided by Artefact2 [here](https://gist.github.com/Artefact2/b5f810600771265fc1e39442288e8ec9)
|
69 |
+
|
70 |
+
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.
|
71 |
+
|
72 |
+
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.
|
73 |
+
|
74 |
+
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.
|
75 |
+
|
76 |
+
Next, you'll need to decide if you want to use an 'I-quant' or a 'K-quant'.
|
77 |
+
|
78 |
+
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.
|
79 |
+
|
80 |
+
If you want to get more into the weeds, you can check out this extremely useful feature chart:
|
81 |
+
|
82 |
+
[llama.cpp feature matrix](https://github.com/ggerganov/llama.cpp/wiki/Feature-matrix)
|
83 |
+
|
84 |
+
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.
|
85 |
+
|
86 |
+
These I-quants can also be used on CPU and Apple Metal, but will be slower than their K-quant equivalent, so speed vs performance is a tradeoff you'll have to decide.
|
87 |
+
|
88 |
+
The I-quants are *not* compatible with Vulcan, which is also AMD, so if you have an AMD card double check if you're using the rocBLAS build or the Vulcan build. At the time of writing this, LM Studio has a preview with ROCm support, and other inference engines have specific builds for ROCm.
|
89 |
+
|
90 |
+
Want to support my work? Visit my ko-fi page here: https://ko-fi.com/bartowski
|