bartowski commited on
Commit
9f0e934
1 Parent(s): b28178b

Llamacpp quants

Browse files
.gitattributes CHANGED
@@ -33,3 +33,23 @@ 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
+ dolphin-2.9.2-Phi-3-Medium-IQ2_M.gguf filter=lfs diff=lfs merge=lfs -text
37
+ dolphin-2.9.2-Phi-3-Medium-IQ2_S.gguf filter=lfs diff=lfs merge=lfs -text
38
+ dolphin-2.9.2-Phi-3-Medium-IQ2_XS.gguf filter=lfs diff=lfs merge=lfs -text
39
+ dolphin-2.9.2-Phi-3-Medium-IQ3_M.gguf filter=lfs diff=lfs merge=lfs -text
40
+ dolphin-2.9.2-Phi-3-Medium-IQ3_XS.gguf filter=lfs diff=lfs merge=lfs -text
41
+ dolphin-2.9.2-Phi-3-Medium-IQ3_XXS.gguf filter=lfs diff=lfs merge=lfs -text
42
+ dolphin-2.9.2-Phi-3-Medium-IQ4_XS.gguf filter=lfs diff=lfs merge=lfs -text
43
+ dolphin-2.9.2-Phi-3-Medium-Q2_K.gguf filter=lfs diff=lfs merge=lfs -text
44
+ dolphin-2.9.2-Phi-3-Medium-Q3_K_L.gguf filter=lfs diff=lfs merge=lfs -text
45
+ dolphin-2.9.2-Phi-3-Medium-Q3_K_M.gguf filter=lfs diff=lfs merge=lfs -text
46
+ dolphin-2.9.2-Phi-3-Medium-Q3_K_S.gguf filter=lfs diff=lfs merge=lfs -text
47
+ dolphin-2.9.2-Phi-3-Medium-Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
48
+ dolphin-2.9.2-Phi-3-Medium-Q4_K_S.gguf filter=lfs diff=lfs merge=lfs -text
49
+ dolphin-2.9.2-Phi-3-Medium-Q5_K_M.gguf filter=lfs diff=lfs merge=lfs -text
50
+ dolphin-2.9.2-Phi-3-Medium-Q5_K_S.gguf filter=lfs diff=lfs merge=lfs -text
51
+ dolphin-2.9.2-Phi-3-Medium-Q6_K.gguf filter=lfs diff=lfs merge=lfs -text
52
+ dolphin-2.9.2-Phi-3-Medium-Q8_0.gguf filter=lfs diff=lfs merge=lfs -text
53
+ dolphin-2.9.2-Phi-3-Medium-f32.gguf/dolphin-2.9.2-Phi-3-Medium-f32-00001-of-00002.gguf filter=lfs diff=lfs merge=lfs -text
54
+ dolphin-2.9.2-Phi-3-Medium-f32.gguf/dolphin-2.9.2-Phi-3-Medium-f32-00002-of-00002.gguf filter=lfs diff=lfs merge=lfs -text
55
+ dolphin-2.9.2-Phi-3-Medium.imatrix filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,107 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ language:
4
+ - en
5
+ base_model:
6
+ - unsloth/Phi-3-mini-4k-instruct
7
+ datasets:
8
+ - cognitivecomputations/Dolphin-2.9.2
9
+ - teknium/OpenHermes-2.5
10
+ - m-a-p/CodeFeedback-Filtered-Instruction
11
+ - cognitivecomputations/dolphin-coder
12
+ - cognitivecomputations/samantha-data
13
+ - microsoft/orca-math-word-problems-200k
14
+ - internlm/Agent-FLAN
15
+ - cognitivecomputations/SystemChat-2.0
16
+ quantized_by: bartowski
17
+ pipeline_tag: text-generation
18
+ ---
19
+
20
+ ## Llamacpp imatrix Quantizations of dolphin-2.9.2-Phi-3-Medium
21
+
22
+ Using <a href="https://github.com/ggerganov/llama.cpp/">llama.cpp</a> release <a href="https://github.com/ggerganov/llama.cpp/releases/tag/b3070">b3070</a> for quantization.
23
+
24
+ Original model: https://huggingface.co/cognitivecomputations/dolphin-2.9.2-Phi-3-Medium
25
+
26
+ All quants made using imatrix option with dataset from [here](https://gist.github.com/bartowski1182/eb213dccb3571f863da82e99418f81e8)
27
+
28
+ ## Prompt format
29
+
30
+ ```
31
+ <|im_start|>system
32
+ {system_prompt}<|im_end|>
33
+ <|im_start|>user
34
+ {prompt}<|im_end|>
35
+ <|im_start|>assistant
36
+
37
+ ```
38
+
39
+ ## Download a file (not the whole branch) from below:
40
+
41
+ | Filename | Quant type | File Size | Description |
42
+ | -------- | ---------- | --------- | ----------- |
43
+ | [dolphin-2.9.2-Phi-3-Medium-Q8_0.gguf](https://huggingface.co/bartowski/dolphin-2.9.2-Phi-3-Medium-GGUF/blob/main/dolphin-2.9.2-Phi-3-Medium-Q8_0.gguf) | Q8_0 | 14.83GB | Extremely high quality, generally unneeded but max available quant. |
44
+ | [dolphin-2.9.2-Phi-3-Medium-Q6_K.gguf](https://huggingface.co/bartowski/dolphin-2.9.2-Phi-3-Medium-GGUF/blob/main/dolphin-2.9.2-Phi-3-Medium-Q6_K.gguf) | Q6_K | 11.45GB | Very high quality, near perfect, *recommended*. |
45
+ | [dolphin-2.9.2-Phi-3-Medium-Q5_K_M.gguf](https://huggingface.co/bartowski/dolphin-2.9.2-Phi-3-Medium-GGUF/blob/main/dolphin-2.9.2-Phi-3-Medium-Q5_K_M.gguf) | Q5_K_M | 9.88GB | High quality, *recommended*. |
46
+ | [dolphin-2.9.2-Phi-3-Medium-Q5_K_S.gguf](https://huggingface.co/bartowski/dolphin-2.9.2-Phi-3-Medium-GGUF/blob/main/dolphin-2.9.2-Phi-3-Medium-Q5_K_S.gguf) | Q5_K_S | 9.62GB | High quality, *recommended*. |
47
+ | [dolphin-2.9.2-Phi-3-Medium-Q4_K_M.gguf](https://huggingface.co/bartowski/dolphin-2.9.2-Phi-3-Medium-GGUF/blob/main/dolphin-2.9.2-Phi-3-Medium-Q4_K_M.gguf) | Q4_K_M | 8.40GB | Good quality, uses about 4.83 bits per weight, *recommended*. |
48
+ | [dolphin-2.9.2-Phi-3-Medium-Q4_K_S.gguf](https://huggingface.co/bartowski/dolphin-2.9.2-Phi-3-Medium-GGUF/blob/main/dolphin-2.9.2-Phi-3-Medium-Q4_K_S.gguf) | Q4_K_S | 7.95GB | Slightly lower quality with more space savings, *recommended*. |
49
+ | [dolphin-2.9.2-Phi-3-Medium-IQ4_XS.gguf](https://huggingface.co/bartowski/dolphin-2.9.2-Phi-3-Medium-GGUF/blob/main/dolphin-2.9.2-Phi-3-Medium-IQ4_XS.gguf) | IQ4_XS | 7.50GB | Decent quality, smaller than Q4_K_S with similar performance, *recommended*. |
50
+ | [dolphin-2.9.2-Phi-3-Medium-Q3_K_L.gguf](https://huggingface.co/bartowski/dolphin-2.9.2-Phi-3-Medium-GGUF/blob/main/dolphin-2.9.2-Phi-3-Medium-Q3_K_L.gguf) | Q3_K_L | 7.34GB | Lower quality but usable, good for low RAM availability. |
51
+ | [dolphin-2.9.2-Phi-3-Medium-Q3_K_M.gguf](https://huggingface.co/bartowski/dolphin-2.9.2-Phi-3-Medium-GGUF/blob/main/dolphin-2.9.2-Phi-3-Medium-Q3_K_M.gguf) | Q3_K_M | 6.75GB | Even lower quality. |
52
+ | [dolphin-2.9.2-Phi-3-Medium-IQ3_M.gguf](https://huggingface.co/bartowski/dolphin-2.9.2-Phi-3-Medium-GGUF/blob/main/dolphin-2.9.2-Phi-3-Medium-IQ3_M.gguf) | IQ3_M | 6.29GB | Medium-low quality, new method with decent performance comparable to Q3_K_M. |
53
+ | [dolphin-2.9.2-Phi-3-Medium-Q3_K_S.gguf](https://huggingface.co/bartowski/dolphin-2.9.2-Phi-3-Medium-GGUF/blob/main/dolphin-2.9.2-Phi-3-Medium-Q3_K_S.gguf) | Q3_K_S | 6.06GB | Low quality, not recommended. |
54
+ | [dolphin-2.9.2-Phi-3-Medium-IQ3_XS.gguf](https://huggingface.co/bartowski/dolphin-2.9.2-Phi-3-Medium-GGUF/blob/main/dolphin-2.9.2-Phi-3-Medium-IQ3_XS.gguf) | IQ3_XS | 5.78GB | Lower quality, new method with decent performance, slightly better than Q3_K_S. |
55
+ | [dolphin-2.9.2-Phi-3-Medium-IQ3_XXS.gguf](https://huggingface.co/bartowski/dolphin-2.9.2-Phi-3-Medium-GGUF/blob/main/dolphin-2.9.2-Phi-3-Medium-IQ3_XXS.gguf) | IQ3_XXS | 5.41GB | Lower quality, new method with decent performance, comparable to Q3 quants. |
56
+ | [dolphin-2.9.2-Phi-3-Medium-Q2_K.gguf](https://huggingface.co/bartowski/dolphin-2.9.2-Phi-3-Medium-GGUF/blob/main/dolphin-2.9.2-Phi-3-Medium-Q2_K.gguf) | Q2_K | 5.20GB | Very low quality but surprisingly usable. |
57
+ | [dolphin-2.9.2-Phi-3-Medium-IQ2_M.gguf](https://huggingface.co/bartowski/dolphin-2.9.2-Phi-3-Medium-GGUF/blob/main/dolphin-2.9.2-Phi-3-Medium-IQ2_M.gguf) | IQ2_M | 4.78GB | Very low quality, uses SOTA techniques to also be surprisingly usable. |
58
+ | [dolphin-2.9.2-Phi-3-Medium-IQ2_S.gguf](https://huggingface.co/bartowski/dolphin-2.9.2-Phi-3-Medium-GGUF/blob/main/dolphin-2.9.2-Phi-3-Medium-IQ2_S.gguf) | IQ2_S | 4.40GB | Very low quality, uses SOTA techniques to be usable. |
59
+ | [dolphin-2.9.2-Phi-3-Medium-IQ2_XS.gguf](https://huggingface.co/bartowski/dolphin-2.9.2-Phi-3-Medium-GGUF/blob/main/dolphin-2.9.2-Phi-3-Medium-IQ2_XS.gguf) | IQ2_XS | 4.19GB | Very low quality, uses SOTA techniques to be usable. |
60
+
61
+ ## Downloading using huggingface-cli
62
+
63
+ First, make sure you have hugginface-cli installed:
64
+
65
+ ```
66
+ pip install -U "huggingface_hub[cli]"
67
+ ```
68
+
69
+ Then, you can target the specific file you want:
70
+
71
+ ```
72
+ huggingface-cli download bartowski/dolphin-2.9.2-Phi-3-Medium-GGUF --include "dolphin-2.9.2-Phi-3-Medium-Q4_K_M.gguf" --local-dir ./
73
+ ```
74
+
75
+ 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:
76
+
77
+ ```
78
+ huggingface-cli download bartowski/dolphin-2.9.2-Phi-3-Medium-GGUF --include "dolphin-2.9.2-Phi-3-Medium-Q8_0.gguf/*" --local-dir dolphin-2.9.2-Phi-3-Medium-Q8_0
79
+ ```
80
+
81
+ You can either specify a new local-dir (dolphin-2.9.2-Phi-3-Medium-Q8_0) or download them all in place (./)
82
+
83
+ ## Which file should I choose?
84
+
85
+ A great write up with charts showing various performances is provided by Artefact2 [here](https://gist.github.com/Artefact2/b5f810600771265fc1e39442288e8ec9)
86
+
87
+ 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.
88
+
89
+ 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.
90
+
91
+ 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.
92
+
93
+ Next, you'll need to decide if you want to use an 'I-quant' or a 'K-quant'.
94
+
95
+ 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.
96
+
97
+ If you want to get more into the weeds, you can check out this extremely useful feature chart:
98
+
99
+ [llama.cpp feature matrix](https://github.com/ggerganov/llama.cpp/wiki/Feature-matrix)
100
+
101
+ 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.
102
+
103
+ 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.
104
+
105
+ 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.
106
+
107
+ Want to support my work? Visit my ko-fi page here: https://ko-fi.com/bartowski
dolphin-2.9.2-Phi-3-Medium-IQ2_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6691588c1e19cb3f75db6e341df4aa283070c9a7ce0b9909e1143cde605ff235
3
+ size 4780500896
dolphin-2.9.2-Phi-3-Medium-IQ2_S.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6a209767c0e813eab055a0d490dc0d8cc8377163237fee4c1ee7e96c4952fd98
3
+ size 4409812896
dolphin-2.9.2-Phi-3-Medium-IQ2_XS.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6e46099be7fc7fb5fe07b49469b2e12f8b82a59569d5877f09e7ddeb1fc2310d
3
+ size 4199091616
dolphin-2.9.2-Phi-3-Medium-IQ3_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b869266dcc0f824b14fff347a05b42911838d1fcc8d70264c1957a38ed04b7aa
3
+ size 6299904416
dolphin-2.9.2-Phi-3-Medium-IQ3_XS.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:35c1dc2813778cd87ed2c42de6199ed932d78d07a8ab056408ed53c876de0f9e
3
+ size 5780224416
dolphin-2.9.2-Phi-3-Medium-IQ3_XXS.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:427999cf5bfe706ac834394c3675f8ea1fd950beda5b8e3e13ea95d4807e9cef
3
+ size 5418452896
dolphin-2.9.2-Phi-3-Medium-IQ4_XS.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e40c20df4eff618637e30410281c55b3401ac487d26ec08373e2900028d8f957
3
+ size 7506977696
dolphin-2.9.2-Phi-3-Medium-Q2_K.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:13a59fc8ff100a692dea88661f2df62980a77fe95d76f5ceb334294afb3b7563
3
+ size 5204447136
dolphin-2.9.2-Phi-3-Medium-Q3_K_L.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0d4dfb6e846e830166c7a6c1ae98e1ee9c20329e5ecfa933a79682da6f35e17e
3
+ size 7348992416
dolphin-2.9.2-Phi-3-Medium-Q3_K_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:063f6d6aacf135cff7b2fac32ddafcf41660ee0ff5d9585c5878b84fa3721dc1
3
+ size 6750976416
dolphin-2.9.2-Phi-3-Medium-Q3_K_S.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:53da0810b8edb8a761d99ed0a9d5676821e80cf5a2a7384a665dc03aea066d6c
3
+ size 6064896416
dolphin-2.9.2-Phi-3-Medium-Q4_K_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e817eae484a59780358cf91527b12585804d4914755d8a86d8d666b10bac57e5
3
+ size 8404011936
dolphin-2.9.2-Phi-3-Medium-Q4_K_S.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c01ae515726575e45e1c36971e01fe8730aed31c935dc89e2ee909552f8d1e1c
3
+ size 7957752736
dolphin-2.9.2-Phi-3-Medium-Q5_K_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:82ba48f1b49ba79c3e440ccf2f2b3651bb44abd8b394a77e75dccbe52c5d8d35
3
+ size 9882708896
dolphin-2.9.2-Phi-3-Medium-Q5_K_S.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cd736def1f852ef9c76cc65b931ee01b298c2e4f96f1fd0a35f2d40feb9265cd
3
+ size 9621588896
dolphin-2.9.2-Phi-3-Medium-Q6_K.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2b1d04b3dcdacac125206933aea8a27be3f10a527c206e367bae9727315425a6
3
+ size 11453824416
dolphin-2.9.2-Phi-3-Medium-Q8_0.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ed102771e45a0f3f25ffd88021f4ecd2d05b7fed109e6bdb1675d63b9706365b
3
+ size 14834719136
dolphin-2.9.2-Phi-3-Medium-f32.gguf/dolphin-2.9.2-Phi-3-Medium-f32-00001-of-00002.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:800a02201b2a575743a8320c7d545f6317a0b6b336d028ffa452a7b1a609ef0b
3
+ size 42916296064
dolphin-2.9.2-Phi-3-Medium-f32.gguf/dolphin-2.9.2-Phi-3-Medium-f32-00002-of-00002.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:714f4cc7315632be621a3cd27bbd5c5181906f31f84b5ff4f3258813dbc8bdb6
3
+ size 12925404096
dolphin-2.9.2-Phi-3-Medium.imatrix ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4a45aa119ca5b5839eb3e8642be774d9151b6f315c19ddb45b31f5fc490e920c
3
+ size 7791699