bartowski commited on
Commit
821156e
1 Parent(s): ffe6b8b

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
+ sum-small-IQ1_M.gguf filter=lfs diff=lfs merge=lfs -text
37
+ sum-small-IQ1_S.gguf filter=lfs diff=lfs merge=lfs -text
38
+ sum-small-IQ2_M.gguf filter=lfs diff=lfs merge=lfs -text
39
+ sum-small-IQ2_S.gguf filter=lfs diff=lfs merge=lfs -text
40
+ sum-small-IQ2_XS.gguf filter=lfs diff=lfs merge=lfs -text
41
+ sum-small-IQ2_XXS.gguf filter=lfs diff=lfs merge=lfs -text
42
+ sum-small-IQ3_M.gguf filter=lfs diff=lfs merge=lfs -text
43
+ sum-small-IQ3_S.gguf filter=lfs diff=lfs merge=lfs -text
44
+ sum-small-IQ3_XS.gguf filter=lfs diff=lfs merge=lfs -text
45
+ sum-small-IQ3_XXS.gguf filter=lfs diff=lfs merge=lfs -text
46
+ sum-small-IQ4_NL.gguf filter=lfs diff=lfs merge=lfs -text
47
+ sum-small-IQ4_XS.gguf filter=lfs diff=lfs merge=lfs -text
48
+ sum-small-Q2_K.gguf filter=lfs diff=lfs merge=lfs -text
49
+ sum-small-Q3_K_L.gguf filter=lfs diff=lfs merge=lfs -text
50
+ sum-small-Q3_K_M.gguf filter=lfs diff=lfs merge=lfs -text
51
+ sum-small-Q3_K_S.gguf filter=lfs diff=lfs merge=lfs -text
52
+ sum-small-Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
53
+ sum-small-Q4_K_S.gguf filter=lfs diff=lfs merge=lfs -text
54
+ sum-small-Q5_K_M.gguf filter=lfs diff=lfs merge=lfs -text
55
+ sum-small-Q5_K_S.gguf filter=lfs diff=lfs merge=lfs -text
56
+ sum-small-Q6_K.gguf filter=lfs diff=lfs merge=lfs -text
57
+ sum-small-Q8_0.gguf filter=lfs diff=lfs merge=lfs -text
58
+ sum-small-f32.gguf filter=lfs diff=lfs merge=lfs -text
59
+ sum-small.imatrix filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,106 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ title: 'Sum Small: Medical Dialogue to SOAP Summarizer'
3
+ emoji: 📄
4
+ colorFrom: green
5
+ colorTo: pink
6
+ sdk: static
7
+ pinned: false
8
+ license: mit
9
+ datasets:
10
+ - omi-health/medical-dialogue-to-soap-summary
11
+ language:
12
+ - en
13
+ metrics:
14
+ - rouge
15
+ quantized_by: bartowski
16
+ pipeline_tag: text-generation
17
+ ---
18
+
19
+ ## Llamacpp imatrix Quantizations of sum-small
20
+
21
+ Using <a href="https://github.com/ggerganov/llama.cpp/">llama.cpp</a> release <a href="https://github.com/ggerganov/llama.cpp/releases/tag/b2854">b2854</a> for quantization.
22
+
23
+ Original model: https://huggingface.co/omi-health/sum-small
24
+
25
+ All quants made using imatrix option with dataset provided by Kalomaze [here](https://github.com/ggerganov/llama.cpp/discussions/5263#discussioncomment-8395384)
26
+
27
+ ## Prompt format
28
+
29
+ ```
30
+ <s><|user|> {prompt}<|end|><|assistant|><|end|>
31
+ ```
32
+
33
+ ## Download a file (not the whole branch) from below:
34
+
35
+ | Filename | Quant type | File Size | Description |
36
+ | -------- | ---------- | --------- | ----------- |
37
+ | [sum-small-Q8_0.gguf](https://huggingface.co/bartowski/sum-small-GGUF/blob/main/sum-small-Q8_0.gguf) | Q8_0 | 4.06GB | Extremely high quality, generally unneeded but max available quant. |
38
+ | [sum-small-Q6_K.gguf](https://huggingface.co/bartowski/sum-small-GGUF/blob/main/sum-small-Q6_K.gguf) | Q6_K | 3.13GB | Very high quality, near perfect, *recommended*. |
39
+ | [sum-small-Q5_K_M.gguf](https://huggingface.co/bartowski/sum-small-GGUF/blob/main/sum-small-Q5_K_M.gguf) | Q5_K_M | 2.81GB | High quality, *recommended*. |
40
+ | [sum-small-Q5_K_S.gguf](https://huggingface.co/bartowski/sum-small-GGUF/blob/main/sum-small-Q5_K_S.gguf) | Q5_K_S | 2.64GB | High quality, *recommended*. |
41
+ | [sum-small-Q4_K_M.gguf](https://huggingface.co/bartowski/sum-small-GGUF/blob/main/sum-small-Q4_K_M.gguf) | Q4_K_M | 2.39GB | Good quality, uses about 4.83 bits per weight, *recommended*. |
42
+ | [sum-small-Q4_K_S.gguf](https://huggingface.co/bartowski/sum-small-GGUF/blob/main/sum-small-Q4_K_S.gguf) | Q4_K_S | 2.18GB | Slightly lower quality with more space savings, *recommended*. |
43
+ | [sum-small-IQ4_NL.gguf](https://huggingface.co/bartowski/sum-small-GGUF/blob/main/sum-small-IQ4_NL.gguf) | IQ4_NL | 2.17GB | Decent quality, slightly smaller than Q4_K_S with similar performance *recommended*. |
44
+ | [sum-small-IQ4_XS.gguf](https://huggingface.co/bartowski/sum-small-GGUF/blob/main/sum-small-IQ4_XS.gguf) | IQ4_XS | 2.05GB | Decent quality, smaller than Q4_K_S with similar performance, *recommended*. |
45
+ | [sum-small-Q3_K_L.gguf](https://huggingface.co/bartowski/sum-small-GGUF/blob/main/sum-small-Q3_K_L.gguf) | Q3_K_L | 2.08GB | Lower quality but usable, good for low RAM availability. |
46
+ | [sum-small-Q3_K_M.gguf](https://huggingface.co/bartowski/sum-small-GGUF/blob/main/sum-small-Q3_K_M.gguf) | Q3_K_M | 1.95GB | Even lower quality. |
47
+ | [sum-small-IQ3_M.gguf](https://huggingface.co/bartowski/sum-small-GGUF/blob/main/sum-small-IQ3_M.gguf) | IQ3_M | 1.85GB | Medium-low quality, new method with decent performance comparable to Q3_K_M. |
48
+ | [sum-small-IQ3_S.gguf](https://huggingface.co/bartowski/sum-small-GGUF/blob/main/sum-small-IQ3_S.gguf) | IQ3_S | 1.68GB | Lower quality, new method with decent performance, recommended over Q3_K_S quant, same size with better performance. |
49
+ | [sum-small-Q3_K_S.gguf](https://huggingface.co/bartowski/sum-small-GGUF/blob/main/sum-small-Q3_K_S.gguf) | Q3_K_S | 1.68GB | Low quality, not recommended. |
50
+ | [sum-small-IQ3_XS.gguf](https://huggingface.co/bartowski/sum-small-GGUF/blob/main/sum-small-IQ3_XS.gguf) | IQ3_XS | 1.62GB | Lower quality, new method with decent performance, slightly better than Q3_K_S. |
51
+ | [sum-small-IQ3_XXS.gguf](https://huggingface.co/bartowski/sum-small-GGUF/blob/main/sum-small-IQ3_XXS.gguf) | IQ3_XXS | 1.51GB | Lower quality, new method with decent performance, comparable to Q3 quants. |
52
+ | [sum-small-Q2_K.gguf](https://huggingface.co/bartowski/sum-small-GGUF/blob/main/sum-small-Q2_K.gguf) | Q2_K | 1.41GB | Very low quality but surprisingly usable. |
53
+ | [sum-small-IQ2_M.gguf](https://huggingface.co/bartowski/sum-small-GGUF/blob/main/sum-small-IQ2_M.gguf) | IQ2_M | 1.31GB | Very low quality, uses SOTA techniques to also be surprisingly usable. |
54
+ | [sum-small-IQ2_S.gguf](https://huggingface.co/bartowski/sum-small-GGUF/blob/main/sum-small-IQ2_S.gguf) | IQ2_S | 1.21GB | Very low quality, uses SOTA techniques to be usable. |
55
+ | [sum-small-IQ2_XS.gguf](https://huggingface.co/bartowski/sum-small-GGUF/blob/main/sum-small-IQ2_XS.gguf) | IQ2_XS | 1.15GB | Very low quality, uses SOTA techniques to be usable. |
56
+ | [sum-small-IQ2_XXS.gguf](https://huggingface.co/bartowski/sum-small-GGUF/blob/main/sum-small-IQ2_XXS.gguf) | IQ2_XXS | 1.04GB | Lower quality, uses SOTA techniques to be usable. |
57
+ | [sum-small-IQ1_M.gguf](https://huggingface.co/bartowski/sum-small-GGUF/blob/main/sum-small-IQ1_M.gguf) | IQ1_M | .91GB | Extremely low quality, *not* recommended. |
58
+ | [sum-small-IQ1_S.gguf](https://huggingface.co/bartowski/sum-small-GGUF/blob/main/sum-small-IQ1_S.gguf) | IQ1_S | .84GB | Extremely low quality, *not* recommended. |
59
+
60
+ ## Downloading using huggingface-cli
61
+
62
+ First, make sure you have hugginface-cli installed:
63
+
64
+ ```
65
+ pip install -U "huggingface_hub[cli]"
66
+ ```
67
+
68
+ Then, you can target the specific file you want:
69
+
70
+ ```
71
+ huggingface-cli download bartowski/sum-small-GGUF --include "sum-small-Q4_K_M.gguf" --local-dir ./ --local-dir-use-symlinks False
72
+ ```
73
+
74
+ 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:
75
+
76
+ ```
77
+ huggingface-cli download bartowski/sum-small-GGUF --include "sum-small-Q8_0.gguf/*" --local-dir sum-small-Q8_0 --local-dir-use-symlinks False
78
+ ```
79
+
80
+ You can either specify a new local-dir (sum-small-Q8_0) or download them all in place (./)
81
+
82
+ ## Which file should I choose?
83
+
84
+ A great write up with charts showing various performances is provided by Artefact2 [here](https://gist.github.com/Artefact2/b5f810600771265fc1e39442288e8ec9)
85
+
86
+ 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.
87
+
88
+ 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.
89
+
90
+ 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.
91
+
92
+ Next, you'll need to decide if you want to use an 'I-quant' or a 'K-quant'.
93
+
94
+ 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.
95
+
96
+ If you want to get more into the weeds, you can check out this extremely useful feature chart:
97
+
98
+ [llama.cpp feature matrix](https://github.com/ggerganov/llama.cpp/wiki/Feature-matrix)
99
+
100
+ 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.
101
+
102
+ 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.
103
+
104
+ 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.
105
+
106
+ Want to support my work? Visit my ko-fi page here: https://ko-fi.com/bartowski
sum-small-IQ1_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fb44f907036f8ae356d3c1a4293190aa8ec7d37741a5a545078d868cbe7d7eb3
3
+ size 917106080
sum-small-IQ1_S.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3105af79a50d1b72f3df782e7dc4f6f050ec922f3cdeea6c9fd8807effbb2ea9
3
+ size 841608608
sum-small-IQ2_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c63c7b82d50e386d8aa476f69459cd639b93c23bc294bc0bbebc60f2eddeca89
3
+ size 1316393888
sum-small-IQ2_S.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f00b0b714e0bdf84d301f20906df59415a2133f454b077b620df5dce3fffc5e6
3
+ size 1215730592
sum-small-IQ2_XS.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1a25294b112ff36c45559691c29564e5935c3d9333a50f30320af507161f0f27
3
+ size 1153035680
sum-small-IQ2_XXS.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8f0e6ffe58c5f08df252522fff91630d1d26312440c27c832978e15bfb5b43db
3
+ size 1042935200
sum-small-IQ3_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5cd9b008fc6b84e1950954c30d5cc2ab3edad73a1084fe4bbf9434040947f92f
3
+ size 1855599008
sum-small-IQ3_S.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a7a9e331aa5701208292ca2268783020f6e921d9d5d7142b02ccca6b51984f74
3
+ size 1681797536
sum-small-IQ3_XS.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:417925bf7e60300b96d9db98f9bef16abf43fb1e1f55ba0b6fc384aa714ef389
3
+ size 1625174432
sum-small-IQ3_XXS.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f57c7098859a800348ca4d6eaa0c033402516585e89fe930eeccb05712c79ca1
3
+ size 1513001888
sum-small-IQ4_NL.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e0934dfa1834247680c6f18d9ad70be14d02b25b4a7148357b092a08e3801632
3
+ size 2176176032
sum-small-IQ4_XS.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:acb2449f0e80990eadc38760f010480e5024305b3e798942f093856a95fcb841
3
+ size 2059851680
sum-small-Q2_K.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2a2138906f6456528150d705b03324af7f3f016f351210a3f3751e9ec00cc84f
3
+ size 1416203168
sum-small-Q3_K_L.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f17254021f18a50ab6f348ed0eeaf8a10d7061c3a58b3f25c0f92a9f7b8db34f
3
+ size 2087596448
sum-small-Q3_K_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a2bae27435943ef9e02dbd8c8e4cab08f51af16e5ef7eacdd21d6f4089259f65
3
+ size 1955475872
sum-small-Q3_K_S.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0fcb93650e0933d73d583f090049dee1ae0539995bb05fb9fe3caac9f32a44a4
3
+ size 1681797536
sum-small-Q4_K_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:caff8ea593abe1224515ee3e40930cc41eb39ede4ae13a9378228fbd08232983
3
+ size 2393231264
sum-small-Q4_K_S.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:164b1dab389690155bc8204c1c11bd507faaf73340c2867f7f86999f65febdb4
3
+ size 2188758944
sum-small-Q5_K_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7d20bd35df412d4e471bd3e8ad59d325cb0fa6c2b688b74fae5b0d5934a10baa
3
+ size 2815274912
sum-small-Q5_K_S.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:720a6dae52b23b8ec4c80a79f1282c7e23a5dea6cfec1a9f71c6576c7e4ee548
3
+ size 2641473440
sum-small-Q6_K.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d5bf237798a566042cbf64bda5915c631f1780df1d6ec696921f0a45dfd742f3
3
+ size 3135851936
sum-small-Q8_0.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6ca906a792d5d4dc18346629bc01c6118f88483d75ec5f26919e0e613f7e26fc
3
+ size 4061221280
sum-small-f32.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:720b4fe98670786757d47e2e5c444cd780b1d5fc96e99b2f6895c31b1b68accc
3
+ size 15285055680
sum-small.imatrix ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6bc37f654844028cb528104091f16549a1af62d5558e60fc2eb9b12c5f1828ee
3
+ size 2232612