bartowski commited on
Commit
6688a1d
1 Parent(s): e53b747

Llamacpp quants

Browse files
.gitattributes CHANGED
@@ -33,3 +33,22 @@ 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
+ AlchemistCoder-L-7B-IQ2_M.gguf filter=lfs diff=lfs merge=lfs -text
37
+ AlchemistCoder-L-7B-IQ2_S.gguf filter=lfs diff=lfs merge=lfs -text
38
+ AlchemistCoder-L-7B-IQ2_XS.gguf filter=lfs diff=lfs merge=lfs -text
39
+ AlchemistCoder-L-7B-IQ3_M.gguf filter=lfs diff=lfs merge=lfs -text
40
+ AlchemistCoder-L-7B-IQ3_XS.gguf filter=lfs diff=lfs merge=lfs -text
41
+ AlchemistCoder-L-7B-IQ3_XXS.gguf filter=lfs diff=lfs merge=lfs -text
42
+ AlchemistCoder-L-7B-IQ4_XS.gguf filter=lfs diff=lfs merge=lfs -text
43
+ AlchemistCoder-L-7B-Q2_K.gguf filter=lfs diff=lfs merge=lfs -text
44
+ AlchemistCoder-L-7B-Q3_K_L.gguf filter=lfs diff=lfs merge=lfs -text
45
+ AlchemistCoder-L-7B-Q3_K_M.gguf filter=lfs diff=lfs merge=lfs -text
46
+ AlchemistCoder-L-7B-Q3_K_S.gguf filter=lfs diff=lfs merge=lfs -text
47
+ AlchemistCoder-L-7B-Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
48
+ AlchemistCoder-L-7B-Q4_K_S.gguf filter=lfs diff=lfs merge=lfs -text
49
+ AlchemistCoder-L-7B-Q5_K_M.gguf filter=lfs diff=lfs merge=lfs -text
50
+ AlchemistCoder-L-7B-Q5_K_S.gguf filter=lfs diff=lfs merge=lfs -text
51
+ AlchemistCoder-L-7B-Q6_K.gguf filter=lfs diff=lfs merge=lfs -text
52
+ AlchemistCoder-L-7B-Q8_0.gguf filter=lfs diff=lfs merge=lfs -text
53
+ AlchemistCoder-L-7B-f32.gguf filter=lfs diff=lfs merge=lfs -text
54
+ AlchemistCoder-L-7B.imatrix filter=lfs diff=lfs merge=lfs -text
AlchemistCoder-L-7B-IQ2_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e648467818cd3f04370086094919576fd620c5696a082649bdeef96ac1b66346
3
+ size 2359750816
AlchemistCoder-L-7B-IQ2_S.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:22dd83ac782f4837b82644d102dc232fc6aa60d4a5f7989d87fc9338a79a7802
3
+ size 2196566176
AlchemistCoder-L-7B-IQ2_XS.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:992f99f9d2113b3c722ae98f4fca0545bbd2cf487b6b79633233b9d7e861aa25
3
+ size 2034913440
AlchemistCoder-L-7B-IQ3_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:33cc641e04f7e12d5812721966df1111f848453a2632ce94360509fd854cd299
3
+ size 3114864800
AlchemistCoder-L-7B-IQ3_XS.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d842aa12d169553ee19e726fe006ae38e43effdb668f41802fe464e642257656
3
+ size 2796523680
AlchemistCoder-L-7B-IQ3_XXS.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a86b27f217d9727eff2f50aae83c9cc9f99f6d3d145f5a75e2f28bed9d2a1948
3
+ size 2585391264
AlchemistCoder-L-7B-IQ4_XS.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bc24251eddd5cc94f9fe081b9797a137415c18518e4dbfe6fa35968b986147ec
3
+ size 3619336352
AlchemistCoder-L-7B-Q2_K.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:296bab39b94c3b95da9cd7d3df61579761fe3439dc06719ced60f3826b06ae97
3
+ size 2532864160
AlchemistCoder-L-7B-Q3_K_L.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:68a27fd8457ae8b2eae8eb3fc31d2dea310e08a05aa2a2ad48629d1d7332689e
3
+ size 3597111456
AlchemistCoder-L-7B-Q3_K_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e24fc67f52f680e0d6db10328c0665e22dd17cbae9443d7c82d00453d551ebfb
3
+ size 3298005152
AlchemistCoder-L-7B-Q3_K_S.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d40df7afae7674b338195185d82592691f360bcf3c1f19ca5826f566dad84670
3
+ size 2948305056
AlchemistCoder-L-7B-Q4_K_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:23beed9b49245f8beecb99d740a36b32e1f01dbe5db15a15950754d06e94b075
3
+ size 4081004704
AlchemistCoder-L-7B-Q4_K_S.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8b7e399cef83bbd9e933356e29c5d49adb099edd6e52110c834663a428218823
3
+ size 3856740512
AlchemistCoder-L-7B-Q5_K_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:44bae87dfeff51ea39c72401b4acaddc16e68d78e740851e88157dbb1558a66c
3
+ size 4783157408
AlchemistCoder-L-7B-Q5_K_S.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:630b31ec7e7ca2fa515653d61eeee258d3bbc4d9b46a15abd3366509db774534
3
+ size 4651692192
AlchemistCoder-L-7B-Q6_K.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:666647b0af8b3fa03de960bbb906b9e2243fe6d329251050b076e8abd7ce877d
3
+ size 5529194656
AlchemistCoder-L-7B-Q8_0.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c0f6657818009ee3bec283ee246893a3863ac4ea2f004cec76d0e817c7a0d156
3
+ size 7161090208
AlchemistCoder-L-7B-f32.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5ac7775a86e9f2e768d8e9f3b6ce3b7d563a86dacf2259fb9638a375141af1de
3
+ size 26954403712
AlchemistCoder-L-7B.imatrix ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bd9aaaf639f9af4c23f3c927647bd74ba7528e595c75f96388898c946c0ff4a5
3
+ size 4562187
README.md ADDED
@@ -0,0 +1,92 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ tags:
4
+ - code generation
5
+ quantized_by: bartowski
6
+ pipeline_tag: text-generation
7
+ ---
8
+
9
+ ## Llamacpp imatrix Quantizations of AlchemistCoder-L-7B
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/b3024">b3024</a> for quantization.
12
+
13
+ Original model: https://huggingface.co/internlm/AlchemistCoder-L-7B
14
+
15
+ All quants made using imatrix option with dataset from [here](https://gist.github.com/bartowski1182/eb213dccb3571f863da82e99418f81e8)
16
+
17
+ ## Prompt format
18
+
19
+ No chat template specified so default is used. This may be incorrect, check original model card for details.
20
+
21
+ ```
22
+ <s> [INST] <<SYS>>
23
+ {system_prompt}
24
+ <</SYS>>
25
+
26
+ {prompt} [/INST] </s>
27
+ ```
28
+
29
+ ## Download a file (not the whole branch) from below:
30
+
31
+ | Filename | Quant type | File Size | Description |
32
+ | -------- | ---------- | --------- | ----------- |
33
+ | [AlchemistCoder-L-7B-Q8_0.gguf](https://huggingface.co/bartowski/AlchemistCoder-L-7B-GGUF/blob/main/AlchemistCoder-L-7B-Q8_0.gguf) | Q8_0 | 7.16GB | Extremely high quality, generally unneeded but max available quant. |
34
+ | [AlchemistCoder-L-7B-Q5_K_M.gguf](https://huggingface.co/bartowski/AlchemistCoder-L-7B-GGUF/blob/main/AlchemistCoder-L-7B-Q5_K_M.gguf) | Q5_K_M | 4.78GB | High quality, *recommended*. |
35
+ | [AlchemistCoder-L-7B-Q4_K_M.gguf](https://huggingface.co/bartowski/AlchemistCoder-L-7B-GGUF/blob/main/AlchemistCoder-L-7B-Q4_K_M.gguf) | Q4_K_M | 4.08GB | Good quality, uses about 4.83 bits per weight, *recommended*. |
36
+ | [AlchemistCoder-L-7B-IQ4_XS.gguf](https://huggingface.co/bartowski/AlchemistCoder-L-7B-GGUF/blob/main/AlchemistCoder-L-7B-IQ4_XS.gguf) | IQ4_XS | 3.61GB | Decent quality, smaller than Q4_K_S with similar performance, *recommended*. |
37
+ | [AlchemistCoder-L-7B-Q3_K_M.gguf](https://huggingface.co/bartowski/AlchemistCoder-L-7B-GGUF/blob/main/AlchemistCoder-L-7B-Q3_K_M.gguf) | Q3_K_M | 3.29GB | Even lower quality. |
38
+ | [AlchemistCoder-L-7B-IQ3_M.gguf](https://huggingface.co/bartowski/AlchemistCoder-L-7B-GGUF/blob/main/AlchemistCoder-L-7B-IQ3_M.gguf) | IQ3_M | 3.11GB | Medium-low quality, new method with decent performance comparable to Q3_K_M. |
39
+ | [AlchemistCoder-L-7B-Q3_K_S.gguf](https://huggingface.co/bartowski/AlchemistCoder-L-7B-GGUF/blob/main/AlchemistCoder-L-7B-Q3_K_S.gguf) | Q3_K_S | 2.94GB | Low quality, not recommended. |
40
+ | [AlchemistCoder-L-7B-IQ3_XXS.gguf](https://huggingface.co/bartowski/AlchemistCoder-L-7B-GGUF/blob/main/AlchemistCoder-L-7B-IQ3_XXS.gguf) | IQ3_XXS | 2.58GB | Lower quality, new method with decent performance, comparable to Q3 quants. |
41
+ | [AlchemistCoder-L-7B-Q2_K.gguf](https://huggingface.co/bartowski/AlchemistCoder-L-7B-GGUF/blob/main/AlchemistCoder-L-7B-Q2_K.gguf) | Q2_K | 2.53GB | Very low quality but surprisingly usable. |
42
+ | [AlchemistCoder-L-7B-IQ2_M.gguf](https://huggingface.co/bartowski/AlchemistCoder-L-7B-GGUF/blob/main/AlchemistCoder-L-7B-IQ2_M.gguf) | IQ2_M | 2.35GB | Very low quality, uses SOTA techniques to also be surprisingly usable. |
43
+ | [AlchemistCoder-L-7B-IQ2_XXS.gguf](https://huggingface.co/bartowski/AlchemistCoder-L-7B-GGUF//main/AlchemistCoder-L-7B-IQ2_XXS.gguf) | IQ2_XXS | | Lower quality, uses SOTA techniques to be usable. |
44
+ | [AlchemistCoder-L-7B-IQ1_M.gguf](https://huggingface.co/bartowski/AlchemistCoder-L-7B-GGUF//main/AlchemistCoder-L-7B-IQ1_M.gguf) | IQ1_M | | Extremely low quality, *not* recommended. |
45
+
46
+ ## Downloading using huggingface-cli
47
+
48
+ First, make sure you have hugginface-cli installed:
49
+
50
+ ```
51
+ pip install -U "huggingface_hub[cli]"
52
+ ```
53
+
54
+ Then, you can target the specific file you want:
55
+
56
+ ```
57
+ huggingface-cli download bartowski/AlchemistCoder-L-7B-GGUF --include "AlchemistCoder-L-7B-Q4_K_M.gguf" --local-dir ./
58
+ ```
59
+
60
+ 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:
61
+
62
+ ```
63
+ huggingface-cli download bartowski/AlchemistCoder-L-7B-GGUF --include "AlchemistCoder-L-7B-Q8_0.gguf/*" --local-dir AlchemistCoder-L-7B-Q8_0
64
+ ```
65
+
66
+ You can either specify a new local-dir (AlchemistCoder-L-7B-Q8_0) or download them all in place (./)
67
+
68
+ ## Which file should I choose?
69
+
70
+ A great write up with charts showing various performances is provided by Artefact2 [here](https://gist.github.com/Artefact2/b5f810600771265fc1e39442288e8ec9)
71
+
72
+ 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.
73
+
74
+ 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.
75
+
76
+ 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.
77
+
78
+ Next, you'll need to decide if you want to use an 'I-quant' or a 'K-quant'.
79
+
80
+ 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.
81
+
82
+ If you want to get more into the weeds, you can check out this extremely useful feature chart:
83
+
84
+ [llama.cpp feature matrix](https://github.com/ggerganov/llama.cpp/wiki/Feature-matrix)
85
+
86
+ 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.
87
+
88
+ 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.
89
+
90
+ 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.
91
+
92
+ Want to support my work? Visit my ko-fi page here: https://ko-fi.com/bartowski