bartowski commited on
Commit
ad77b20
1 Parent(s): 12661d3

Upload folder using huggingface_hub

Browse files
.gitattributes CHANGED
@@ -43,3 +43,15 @@ DeepSeek-Coder-V2-Instruct-Q2_K-00003-of-00003.gguf filter=lfs diff=lfs merge=lf
43
  DeepSeek-Coder-V2-Instruct-Q3_K_M-00001-of-00003.gguf filter=lfs diff=lfs merge=lfs -text
44
  DeepSeek-Coder-V2-Instruct-Q3_K_M-00002-of-00003.gguf filter=lfs diff=lfs merge=lfs -text
45
  DeepSeek-Coder-V2-Instruct-Q3_K_M-00003-of-00003.gguf filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
 
 
 
 
 
 
43
  DeepSeek-Coder-V2-Instruct-Q3_K_M-00001-of-00003.gguf filter=lfs diff=lfs merge=lfs -text
44
  DeepSeek-Coder-V2-Instruct-Q3_K_M-00002-of-00003.gguf filter=lfs diff=lfs merge=lfs -text
45
  DeepSeek-Coder-V2-Instruct-Q3_K_M-00003-of-00003.gguf filter=lfs diff=lfs merge=lfs -text
46
+ DeepSeek-Coder-V2-Instruct-Q2_K_L.gguf/DeepSeek-Coder-V2-Instruct-Q2_K_L-00001-of-00003.gguf filter=lfs diff=lfs merge=lfs -text
47
+ DeepSeek-Coder-V2-Instruct-Q2_K_L.gguf/DeepSeek-Coder-V2-Instruct-Q2_K_L-00002-of-00003.gguf filter=lfs diff=lfs merge=lfs -text
48
+ DeepSeek-Coder-V2-Instruct-Q2_K_L.gguf/DeepSeek-Coder-V2-Instruct-Q2_K_L-00003-of-00003.gguf filter=lfs diff=lfs merge=lfs -text
49
+ DeepSeek-Coder-V2-Instruct-Q3_K_XL.gguf/DeepSeek-Coder-V2-Instruct-Q3_K_XL-00001-of-00004.gguf filter=lfs diff=lfs merge=lfs -text
50
+ DeepSeek-Coder-V2-Instruct-Q3_K_XL.gguf/DeepSeek-Coder-V2-Instruct-Q3_K_XL-00002-of-00004.gguf filter=lfs diff=lfs merge=lfs -text
51
+ DeepSeek-Coder-V2-Instruct-Q3_K_XL.gguf/DeepSeek-Coder-V2-Instruct-Q3_K_XL-00003-of-00004.gguf filter=lfs diff=lfs merge=lfs -text
52
+ DeepSeek-Coder-V2-Instruct-Q3_K_XL.gguf/DeepSeek-Coder-V2-Instruct-Q3_K_XL-00004-of-00004.gguf filter=lfs diff=lfs merge=lfs -text
53
+ DeepSeek-Coder-V2-Instruct-Q4_K_M.gguf/DeepSeek-Coder-V2-Instruct-Q4_K_M-00001-of-00004.gguf filter=lfs diff=lfs merge=lfs -text
54
+ DeepSeek-Coder-V2-Instruct-Q4_K_M.gguf/DeepSeek-Coder-V2-Instruct-Q4_K_M-00002-of-00004.gguf filter=lfs diff=lfs merge=lfs -text
55
+ DeepSeek-Coder-V2-Instruct-Q4_K_M.gguf/DeepSeek-Coder-V2-Instruct-Q4_K_M-00003-of-00004.gguf filter=lfs diff=lfs merge=lfs -text
56
+ DeepSeek-Coder-V2-Instruct-Q4_K_M.gguf/DeepSeek-Coder-V2-Instruct-Q4_K_M-00004-of-00004.gguf filter=lfs diff=lfs merge=lfs -text
57
+ DeepSeek-Coder-V2-Instruct.imatrix filter=lfs diff=lfs merge=lfs -text
DeepSeek-Coder-V2-Instruct-Q2_K_L.gguf/DeepSeek-Coder-V2-Instruct-Q2_K_L-00001-of-00003.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ddfecbc84db83edf83780e36a2bc97467f5e5becc5173eed29e1d0d032a72be6
3
+ size 39857118048
DeepSeek-Coder-V2-Instruct-Q2_K_L.gguf/DeepSeek-Coder-V2-Instruct-Q2_K_L-00002-of-00003.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:07f7e38c1348c7f410f383c0c6592f1699448f0377b4d07c50da0efa67a7f442
3
+ size 39950113408
DeepSeek-Coder-V2-Instruct-Q2_K_L.gguf/DeepSeek-Coder-V2-Instruct-Q2_K_L-00003-of-00003.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:eb4e0c793aa52856616671818a5340d65586967236b2783d27120277cb2f0967
3
+ size 7634483520
DeepSeek-Coder-V2-Instruct-Q3_K_XL.gguf/DeepSeek-Coder-V2-Instruct-Q3_K_XL-00001-of-00004.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e0872583d318309c128bd20d5cdb90c62419fc72dfb10414f800f9ea39457d2a
3
+ size 39474471648
DeepSeek-Coder-V2-Instruct-Q3_K_XL.gguf/DeepSeek-Coder-V2-Instruct-Q3_K_XL-00002-of-00004.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0d9d72586fae6f2cdeabe403cdd771c0878b13d810e5cee17dcc1065fa109cd4
3
+ size 39136649088
DeepSeek-Coder-V2-Instruct-Q3_K_XL.gguf/DeepSeek-Coder-V2-Instruct-Q3_K_XL-00003-of-00004.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c71f32b0d54389abfcc87fb20daf07c2fa6cffde03341b0a85db1713158fac99
3
+ size 39888361216
DeepSeek-Coder-V2-Instruct-Q3_K_XL.gguf/DeepSeek-Coder-V2-Instruct-Q3_K_XL-00004-of-00004.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1779ca47740446f0b5771fc3a0db82238161c63e44efad4f4ba2a4847a0a56bc
3
+ size 5314375200
DeepSeek-Coder-V2-Instruct-Q4_K_M.gguf/DeepSeek-Coder-V2-Instruct-Q4_K_M-00001-of-00004.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:27dcb2e04763e4e98e15338b312f834e2dcb72ccdf825e4ac3ac3af95e8521cc
3
+ size 39800070880
DeepSeek-Coder-V2-Instruct-Q4_K_M.gguf/DeepSeek-Coder-V2-Instruct-Q4_K_M-00002-of-00004.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:531b066491e2db4321485b40f887286d263525d988a80a1b0f1e32670f1cb315
3
+ size 39981466880
DeepSeek-Coder-V2-Instruct-Q4_K_M.gguf/DeepSeek-Coder-V2-Instruct-Q4_K_M-00003-of-00004.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9172f1751a2b33afefd7eadc094d1e2ccccc75e80f99a656a417f1cd32140aad
3
+ size 39699572192
DeepSeek-Coder-V2-Instruct-Q4_K_M.gguf/DeepSeek-Coder-V2-Instruct-Q4_K_M-00004-of-00004.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:659d3ac632b71bf43ae7fccb9b53d96a3d893cdc43123c18f32971bfa98f63ba
3
+ size 22972854784
DeepSeek-Coder-V2-Instruct.imatrix ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:81fdcc1356bb61a4214c6f9e6f1abe4db0b41f8a4433c0cd5b565a8bfa5cc25f
3
+ size 456009866
README.md CHANGED
@@ -4,14 +4,82 @@ license_name: deepseek-license
4
  license_link: LICENSE
5
  quantized_by: bartowski
6
  pipeline_tag: text-generation
7
- base_model: deepseek-ai/DeepSeek-Coder-V2-Instruct
8
  ---
9
- Slowly creating, with imatrix, will add my usual details later
10
 
11
- So far IQ1_M is up with an eyewatering size of 52.7GB
12
 
13
- [IQ1_M](https://huggingface.co/bartowski/DeepSeek-Coder-V2-Instruct-GGUF/tree/main/DeepSeek-Coder-V2-Instruct-IQ1_M.gguf)
14
 
15
- [IQ2_XS](https://huggingface.co/bartowski/DeepSeek-Coder-V2-Instruct-GGUF/tree/main/DeepSeek-Coder-V2-Instruct-IQ2_XS.gguf)
16
 
17
- [Q2_K](https://huggingface.co/bartowski/DeepSeek-Coder-V2-Instruct-GGUF/tree/main/DeepSeek-Coder-V2-Instruct-Q2_K.gguf)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4
  license_link: LICENSE
5
  quantized_by: bartowski
6
  pipeline_tag: text-generation
 
7
  ---
 
8
 
9
+ ## Llamacpp imatrix Quantizations of DeepSeek-Coder-V2-Instruct
10
 
11
+ Using <a href="https://github.com/ggerganov/llama.cpp/">llama.cpp</a> release <a href="https://github.com/ggerganov/llama.cpp/releases/tag/b3166">b3166</a> for quantization.
12
 
13
+ Original model: https://huggingface.co/deepseek-ai/DeepSeek-Coder-V2-Instruct
14
 
15
+ All quants made using imatrix option with dataset from [here](https://gist.github.com/bartowski1182/eb213dccb3571f863da82e99418f81e8)
16
+
17
+ ## Prompt format
18
+
19
+ ```
20
+ <|begin▁of▁sentence|>{system_prompt}
21
+
22
+ User: {prompt}
23
+
24
+ Assistant: <|end▁of▁sentence|>Assistant:
25
+ ```
26
+
27
+ ## Download a file (not the whole branch) from below:
28
+
29
+ | Filename | Quant type | File Size | Description |
30
+ | -------- | ---------- | --------- | ----------- |
31
+ | [DeepSeek-Coder-V2-Instruct-Q4_K_M.gguf](https://huggingface.co/bartowski/DeepSeek-Coder-V2-Instruct-GGUF/tree/main/DeepSeek-Coder-V2-Instruct-Q4_K_M.gguf) | Q4_K_M | 142.45GB | Good quality, uses about 4.83 bits per weight, *recommended*. |
32
+ | [DeepSeek-Coder-V2-Instruct-Q3_K_XL.gguf](https://huggingface.co/bartowski/DeepSeek-Coder-V2-Instruct-GGUF/tree/main/DeepSeek-Coder-V2-Instruct-Q3_K_XL.gguf) | Q3_K_XL | | *Experimental*, uses f16 for embed and output weights. Please provide any feedback of differences. Lower quality but usable, good for low RAM availability. |
33
+ | [DeepSeek-Coder-V2-Instruct-Q3_K_M.gguf](https://huggingface.co/bartowski/DeepSeek-Coder-V2-Instruct-GGUF/tree/main/DeepSeek-Coder-V2-Instruct-Q3_K_M.gguf) | Q3_K_M | 112.7GB | Relatively low quality but usable. |
34
+ | [DeepSeek-Coder-V2-Instruct-Q2_K_L.gguf](https://huggingface.co/bartowski/DeepSeek-Coder-V2-Instruct-GGUF/tree/main/DeepSeek-Coder-V2-Instruct-Q2_K_L.gguf) | Q2_K_L | | *Experimental*, uses f16 for embed and output weights. Please provide any feedback of differences. Low quality but usable. |
35
+ | [DeepSeek-Coder-V2-Instruct-Q2_K.gguf](https://huggingface.co/bartowski/DeepSeek-Coder-V2-Instruct-GGUF/tree/main/DeepSeek-Coder-V2-Instruct-Q2_K.gguf) | Q2_K | 86.0GB | Low quality but usable. |
36
+ | [DeepSeek-Coder-V2-Instruct-IQ2_XS.gguf](https://huggingface.co/bartowski/DeepSeek-Coder-V2-Instruct-GGUF/tree/main/DeepSeek-Coder-V2-Instruct-IQ2_XS.gguf) | IQ2_XS | 68.7GB | Lower quality, uses SOTA techniques to be usable. |
37
+ | [DeepSeek-Coder-V2-Instruct-IQ1_M.gguf](https://huggingface.co/bartowski/DeepSeek-Coder-V2-Instruct-GGUF/tree/main/DeepSeek-Coder-V2-Instruct-IQ1_M.gguf) | IQ1_M | 52.7GB | Extremely low quality, *not* recommended. |
38
+
39
+ ## Downloading using huggingface-cli
40
+
41
+ First, make sure you have hugginface-cli installed:
42
+
43
+ ```
44
+ pip install -U "huggingface_hub[cli]"
45
+ ```
46
+
47
+ Then, you can target the specific file you want:
48
+
49
+ ```
50
+ huggingface-cli download bartowski/DeepSeek-Coder-V2-Instruct-GGUF --include "DeepSeek-Coder-V2-Instruct-Q4_K_M.gguf" --local-dir ./
51
+ ```
52
+
53
+ 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:
54
+
55
+ ```
56
+ huggingface-cli download bartowski/DeepSeek-Coder-V2-Instruct-GGUF --include "DeepSeek-Coder-V2-Instruct-Q8_0.gguf/*" --local-dir DeepSeek-Coder-V2-Instruct-Q8_0
57
+ ```
58
+
59
+ You can either specify a new local-dir (DeepSeek-Coder-V2-Instruct-Q8_0) or download them all in place (./)
60
+
61
+ ## Which file should I choose?
62
+
63
+ A great write up with charts showing various performances is provided by Artefact2 [here](https://gist.github.com/Artefact2/b5f810600771265fc1e39442288e8ec9)
64
+
65
+ 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.
66
+
67
+ 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.
68
+
69
+ 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.
70
+
71
+ Next, you'll need to decide if you want to use an 'I-quant' or a 'K-quant'.
72
+
73
+ 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.
74
+
75
+ If you want to get more into the weeds, you can check out this extremely useful feature chart:
76
+
77
+ [llama.cpp feature matrix](https://github.com/ggerganov/llama.cpp/wiki/Feature-matrix)
78
+
79
+ 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.
80
+
81
+ 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.
82
+
83
+ 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.
84
+
85
+ Want to support my work? Visit my ko-fi page here: https://ko-fi.com/bartowski