bartowski commited on
Commit
f733f62
1 Parent(s): 4bf542b

Llamacpp quants

Browse files
.gitattributes CHANGED
@@ -33,3 +33,27 @@ 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
+ Smegmma-9B-v1-IQ2_M.gguf filter=lfs diff=lfs merge=lfs -text
37
+ Smegmma-9B-v1-IQ2_S.gguf filter=lfs diff=lfs merge=lfs -text
38
+ Smegmma-9B-v1-IQ2_XS.gguf filter=lfs diff=lfs merge=lfs -text
39
+ Smegmma-9B-v1-IQ3_M.gguf filter=lfs diff=lfs merge=lfs -text
40
+ Smegmma-9B-v1-IQ3_XS.gguf filter=lfs diff=lfs merge=lfs -text
41
+ Smegmma-9B-v1-IQ3_XXS.gguf filter=lfs diff=lfs merge=lfs -text
42
+ Smegmma-9B-v1-IQ4_XS.gguf filter=lfs diff=lfs merge=lfs -text
43
+ Smegmma-9B-v1-Q2_K.gguf filter=lfs diff=lfs merge=lfs -text
44
+ Smegmma-9B-v1-Q2_K_L.gguf filter=lfs diff=lfs merge=lfs -text
45
+ Smegmma-9B-v1-Q3_K_L.gguf filter=lfs diff=lfs merge=lfs -text
46
+ Smegmma-9B-v1-Q3_K_M.gguf filter=lfs diff=lfs merge=lfs -text
47
+ Smegmma-9B-v1-Q3_K_S.gguf filter=lfs diff=lfs merge=lfs -text
48
+ Smegmma-9B-v1-Q3_K_XL.gguf filter=lfs diff=lfs merge=lfs -text
49
+ Smegmma-9B-v1-Q4_K_L.gguf filter=lfs diff=lfs merge=lfs -text
50
+ Smegmma-9B-v1-Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
51
+ Smegmma-9B-v1-Q4_K_S.gguf filter=lfs diff=lfs merge=lfs -text
52
+ Smegmma-9B-v1-Q5_K_L.gguf filter=lfs diff=lfs merge=lfs -text
53
+ Smegmma-9B-v1-Q5_K_M.gguf filter=lfs diff=lfs merge=lfs -text
54
+ Smegmma-9B-v1-Q5_K_S.gguf filter=lfs diff=lfs merge=lfs -text
55
+ Smegmma-9B-v1-Q6_K.gguf filter=lfs diff=lfs merge=lfs -text
56
+ Smegmma-9B-v1-Q6_K_L.gguf filter=lfs diff=lfs merge=lfs -text
57
+ Smegmma-9B-v1-Q8_0.gguf filter=lfs diff=lfs merge=lfs -text
58
+ Smegmma-9B-v1-f32.gguf filter=lfs diff=lfs merge=lfs -text
59
+ Smegmma-9B-v1.imatrix filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,111 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc-by-nc-4.0
3
+ license_name: freeuse
4
+ license_link: LICENSE
5
+ tags:
6
+ - not-for-all-audiences
7
+ quantized_by: bartowski
8
+ pipeline_tag: text-generation
9
+ ---
10
+
11
+ ## Llamacpp imatrix Quantizations of Smegmma-9B-v1
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/b3291">b3291</a> for quantization.
14
+
15
+ Original model: https://huggingface.co/TheDrummer/Smegmma-9B-v1
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
+ <bos><start_of_turn>user
23
+ {prompt}<end_of_turn>
24
+ <start_of_turn>model
25
+ <end_of_turn>
26
+ <start_of_turn>model
27
+
28
+ ```
29
+
30
+ Note that this model does not support a System prompt.
31
+
32
+ ## Download a file (not the whole branch) from below:
33
+
34
+ | Filename | Quant type | File Size | Description |
35
+ | -------- | ---------- | --------- | ----------- |
36
+ | [Smegmma-9B-v1-Q8_0.gguf](https://huggingface.co/bartowski/Smegmma-9B-v1-GGUF/blob/main/Smegmma-9B-v1-Q8_0.gguf) | Q8_0 | 9.82GB | Extremely high quality, generally unneeded but max available quant. |
37
+ | [Smegmma-9B-v1-Q6_K_L.gguf](https://huggingface.co/bartowski/Smegmma-9B-v1-GGUF/blob/main/Smegmma-9B-v1-Q6_K_L.gguf) | Q6_K_L | 7.81GB | Uses Q8_0 for embed and output weights. Very high quality, near perfect, *recommended*. |
38
+ | [Smegmma-9B-v1-Q6_K.gguf](https://huggingface.co/bartowski/Smegmma-9B-v1-GGUF/blob/main/Smegmma-9B-v1-Q6_K.gguf) | Q6_K | 7.58GB | Very high quality, near perfect, *recommended*. |
39
+ | [Smegmma-9B-v1-Q5_K_L.gguf](https://huggingface.co/bartowski/Smegmma-9B-v1-GGUF/blob/main/Smegmma-9B-v1-Q5_K_L.gguf) | Q5_K_L | 6.86GB | Uses Q8_0 for embed and output weights. High quality, *recommended*. |
40
+ | [Smegmma-9B-v1-Q5_K_M.gguf](https://huggingface.co/bartowski/Smegmma-9B-v1-GGUF/blob/main/Smegmma-9B-v1-Q5_K_M.gguf) | Q5_K_M | 6.64GB | High quality, *recommended*. |
41
+ | [Smegmma-9B-v1-Q5_K_S.gguf](https://huggingface.co/bartowski/Smegmma-9B-v1-GGUF/blob/main/Smegmma-9B-v1-Q5_K_S.gguf) | Q5_K_S | 6.48GB | High quality, *recommended*. |
42
+ | [Smegmma-9B-v1-Q4_K_L.gguf](https://huggingface.co/bartowski/Smegmma-9B-v1-GGUF/blob/main/Smegmma-9B-v1-Q4_K_L.gguf) | Q4_K_L | 5.98GB | Uses Q8_0 for embed and output weights. Good quality, uses about 4.83 bits per weight, *recommended*. |
43
+ | [Smegmma-9B-v1-Q4_K_M.gguf](https://huggingface.co/bartowski/Smegmma-9B-v1-GGUF/blob/main/Smegmma-9B-v1-Q4_K_M.gguf) | Q4_K_M | 5.76GB | Good quality, uses about 4.83 bits per weight, *recommended*. |
44
+ | [Smegmma-9B-v1-Q4_K_S.gguf](https://huggingface.co/bartowski/Smegmma-9B-v1-GGUF/blob/main/Smegmma-9B-v1-Q4_K_S.gguf) | Q4_K_S | 5.47GB | Slightly lower quality with more space savings, *recommended*. |
45
+ | [Smegmma-9B-v1-IQ4_XS.gguf](https://huggingface.co/bartowski/Smegmma-9B-v1-GGUF/blob/main/Smegmma-9B-v1-IQ4_XS.gguf) | IQ4_XS | 5.18GB | Decent quality, smaller than Q4_K_S with similar performance, *recommended*. |
46
+ | [Smegmma-9B-v1-Q3_K_XL.gguf](https://huggingface.co/bartowski/Smegmma-9B-v1-GGUF/blob/main/Smegmma-9B-v1-Q3_K_XL.gguf) | Q3_K_XL | 5.35GB | Uses Q8_0 for embed and output weights. Lower quality but usable, good for low RAM availability. |
47
+ | [Smegmma-9B-v1-Q3_K_L.gguf](https://huggingface.co/bartowski/Smegmma-9B-v1-GGUF/blob/main/Smegmma-9B-v1-Q3_K_L.gguf) | Q3_K_L | 5.13GB | Lower quality but usable, good for low RAM availability. |
48
+ | [Smegmma-9B-v1-Q3_K_M.gguf](https://huggingface.co/bartowski/Smegmma-9B-v1-GGUF/blob/main/Smegmma-9B-v1-Q3_K_M.gguf) | Q3_K_M | 4.76GB | Even lower quality. |
49
+ | [Smegmma-9B-v1-IQ3_M.gguf](https://huggingface.co/bartowski/Smegmma-9B-v1-GGUF/blob/main/Smegmma-9B-v1-IQ3_M.gguf) | IQ3_M | 4.49GB | Medium-low quality, new method with decent performance comparable to Q3_K_M. |
50
+ | [Smegmma-9B-v1-Q3_K_S.gguf](https://huggingface.co/bartowski/Smegmma-9B-v1-GGUF/blob/main/Smegmma-9B-v1-Q3_K_S.gguf) | Q3_K_S | 4.33GB | Low quality, not recommended. |
51
+ | [Smegmma-9B-v1-IQ3_XS.gguf](https://huggingface.co/bartowski/Smegmma-9B-v1-GGUF/blob/main/Smegmma-9B-v1-IQ3_XS.gguf) | IQ3_XS | 4.14GB | Lower quality, new method with decent performance, slightly better than Q3_K_S. |
52
+ | [Smegmma-9B-v1-IQ3_XXS.gguf](https://huggingface.co/bartowski/Smegmma-9B-v1-GGUF/blob/main/Smegmma-9B-v1-IQ3_XXS.gguf) | IQ3_XXS | 3.79GB | Lower quality, new method with decent performance, comparable to Q3 quants. |
53
+ | [Smegmma-9B-v1-Q2_K_L.gguf](https://huggingface.co/bartowski/Smegmma-9B-v1-GGUF/blob/main/Smegmma-9B-v1-Q2_K_L.gguf) | Q2_K_L | 4.02GB | Uses Q8_0 for embed and output weights. Very low quality but surprisingly usable. |
54
+ | [Smegmma-9B-v1-Q2_K.gguf](https://huggingface.co/bartowski/Smegmma-9B-v1-GGUF/blob/main/Smegmma-9B-v1-Q2_K.gguf) | Q2_K | 3.80GB | Very low quality but surprisingly usable. |
55
+ | [Smegmma-9B-v1-IQ2_M.gguf](https://huggingface.co/bartowski/Smegmma-9B-v1-GGUF/blob/main/Smegmma-9B-v1-IQ2_M.gguf) | IQ2_M | 3.43GB | Very low quality, uses SOTA techniques to also be surprisingly usable. |
56
+ | [Smegmma-9B-v1-IQ2_S.gguf](https://huggingface.co/bartowski/Smegmma-9B-v1-GGUF/blob/main/Smegmma-9B-v1-IQ2_S.gguf) | IQ2_S | 3.21GB | Very low quality, uses SOTA techniques to be usable. |
57
+ | [Smegmma-9B-v1-IQ2_XS.gguf](https://huggingface.co/bartowski/Smegmma-9B-v1-GGUF/blob/main/Smegmma-9B-v1-IQ2_XS.gguf) | IQ2_XS | 3.06GB | Very low quality, uses SOTA techniques to be usable. |
58
+
59
+ ## Credits
60
+
61
+ Thank you kalomaze and Dampf for assistance in creating the imatrix calibration dataset
62
+
63
+ Thank you ZeroWw for the inspiration to experiment with embed/output
64
+
65
+ ## Downloading using huggingface-cli
66
+
67
+ First, make sure you have hugginface-cli installed:
68
+
69
+ ```
70
+ pip install -U "huggingface_hub[cli]"
71
+ ```
72
+
73
+ Then, you can target the specific file you want:
74
+
75
+ ```
76
+ huggingface-cli download bartowski/Smegmma-9B-v1-GGUF --include "Smegmma-9B-v1-Q4_K_M.gguf" --local-dir ./
77
+ ```
78
+
79
+ 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:
80
+
81
+ ```
82
+ huggingface-cli download bartowski/Smegmma-9B-v1-GGUF --include "Smegmma-9B-v1-Q8_0.gguf/*" --local-dir Smegmma-9B-v1-Q8_0
83
+ ```
84
+
85
+ You can either specify a new local-dir (Smegmma-9B-v1-Q8_0) or download them all in place (./)
86
+
87
+ ## Which file should I choose?
88
+
89
+ A great write up with charts showing various performances is provided by Artefact2 [here](https://gist.github.com/Artefact2/b5f810600771265fc1e39442288e8ec9)
90
+
91
+ 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.
92
+
93
+ 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.
94
+
95
+ 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.
96
+
97
+ Next, you'll need to decide if you want to use an 'I-quant' or a 'K-quant'.
98
+
99
+ 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.
100
+
101
+ If you want to get more into the weeds, you can check out this extremely useful feature chart:
102
+
103
+ [llama.cpp feature matrix](https://github.com/ggerganov/llama.cpp/wiki/Feature-matrix)
104
+
105
+ 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.
106
+
107
+ 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.
108
+
109
+ 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.
110
+
111
+ Want to support my work? Visit my ko-fi page here: https://ko-fi.com/bartowski
Smegmma-9B-v1-IQ2_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c22356c526f12ac103a5fc931ad36134d408c561d8895043801c7dbbcc1641d4
3
+ size 3434669952
Smegmma-9B-v1-IQ2_S.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4dcd0d7e1b15a72db5a41d4be8990077800b95d40da208dfe0240efdec47e789
3
+ size 3211487104
Smegmma-9B-v1-IQ2_XS.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:30cd87aceb3d43aabcde53bd483214a04fdcfd08f2b889840bb2683b38612352
3
+ size 3067381632
Smegmma-9B-v1-IQ3_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5b401507ec54cb22f062f0f144bd84352d3adb75b912e8b8a98b6656f2e04a7c
3
+ size 4494616448
Smegmma-9B-v1-IQ3_XS.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8e7b6152d7b441d6eb00a61d7d3cddab7bff90566db46d6350df7167583ae7b9
3
+ size 4144990080
Smegmma-9B-v1-IQ3_XXS.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4b0a786a9bfd4c768c7000fc7801f08378e826b590d1fe573095fe6be032ae71
3
+ size 3796739968
Smegmma-9B-v1-IQ4_XS.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f10f8dd1708be6939374ffb43d98c9c470ef20fb4e58c65140b3c0c8cfb9fd61
3
+ size 5183031168
Smegmma-9B-v1-Q2_K.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4f52a4bd73f2399160f65e5b07631f48d6b6be13355581de3da96d28bafa5dc9
3
+ size 3805398912
Smegmma-9B-v1-Q2_K_L.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a9b99f0e37f6a75e5f63a7e94b133dd548eab27965e10c25d13714a37c9dd670
3
+ size 4027606912
Smegmma-9B-v1-Q3_K_L.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:77d3d3c06d5661cd19e8adf9904558cdd2f6465e3345c77260563d10b17da250
3
+ size 5132453760
Smegmma-9B-v1-Q3_K_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0dde2924719ba1b57b96b4e34d74fb724b9133ac2e62c4d86b92075952a2c42d
3
+ size 4761782144
Smegmma-9B-v1-Q3_K_S.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:820abe3faff9f164d19733a7c6e4d7c0c580d9a267a456646797b13efa12af90
3
+ size 4337665920
Smegmma-9B-v1-Q3_K_XL.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b61c63d2b114bf8d393f16d4b3a353141d143fd794b29d05cf8a7df8d78286bf
3
+ size 5354661760
Smegmma-9B-v1-Q4_K_L.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5eeba7731672105d43979909def8c855b5e34350de7b5a05b610b2cd64f44dfb
3
+ size 5983266688
Smegmma-9B-v1-Q4_K_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:abd9da0a6bf5cbc0ed6bb0d7e3ee7aea3f6b1edbf8c64e51d0fa25001975aed7
3
+ size 5761058688
Smegmma-9B-v1-Q4_K_S.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:32a2c771244bcda5ad6f2b5af56bcdc4de4c7ed0c569893fd6056c212a600e6b
3
+ size 5478926208
Smegmma-9B-v1-Q5_K_L.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4ae292f93a7fdf5aa7f18c5e502583fa10e89acc73146ee0dd3a7b911970c58f
3
+ size 6869575552
Smegmma-9B-v1-Q5_K_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3f99ac6c60063705afaf1b071d062d4276c1a023bf41fc26efb92f5bcd58e537
3
+ size 6647367552
Smegmma-9B-v1-Q5_K_S.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b216542eec55c2696d29603035b1b90e1eb8fb2e6e90ce03c995c185ad6edc98
3
+ size 6483593088
Smegmma-9B-v1-Q6_K.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:673f1642ba73ee680010001e2c50f5298887b93a02f541d5dcc4c52965a6e544
3
+ size 7589070720
Smegmma-9B-v1-Q6_K_L.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b0b8e9c019661f1b532ff97c6b66f30f8813b62852b781eb11a5817d24d8f4e8
3
+ size 7811278720
Smegmma-9B-v1-Q8_0.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b00e51f5cc2395b09376a343e5d507aea9d47c6e114d21c35629f660867be903
3
+ size 9827149696
Smegmma-9B-v1-f32.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a39dca7eb73b4fec1a1460d34eeee6de299a905a028c93b00904889853050876
3
+ size 36972881536
Smegmma-9B-v1.imatrix ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e6dfa8f5e84b79cd4205a65b19fc9778c6f951f14791e65fbaf3f55a0a141fbb
3
+ size 6116901