bartowski commited on
Commit
61fd416
1 Parent(s): 6a7be5a

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
+ Mistral-7B-Instruct-v0.3-IQ1_M.gguf filter=lfs diff=lfs merge=lfs -text
37
+ Mistral-7B-Instruct-v0.3-IQ1_S.gguf filter=lfs diff=lfs merge=lfs -text
38
+ Mistral-7B-Instruct-v0.3-IQ2_M.gguf filter=lfs diff=lfs merge=lfs -text
39
+ Mistral-7B-Instruct-v0.3-IQ2_S.gguf filter=lfs diff=lfs merge=lfs -text
40
+ Mistral-7B-Instruct-v0.3-IQ2_XS.gguf filter=lfs diff=lfs merge=lfs -text
41
+ Mistral-7B-Instruct-v0.3-IQ2_XXS.gguf filter=lfs diff=lfs merge=lfs -text
42
+ Mistral-7B-Instruct-v0.3-IQ3_M.gguf filter=lfs diff=lfs merge=lfs -text
43
+ Mistral-7B-Instruct-v0.3-IQ3_S.gguf filter=lfs diff=lfs merge=lfs -text
44
+ Mistral-7B-Instruct-v0.3-IQ3_XS.gguf filter=lfs diff=lfs merge=lfs -text
45
+ Mistral-7B-Instruct-v0.3-IQ3_XXS.gguf filter=lfs diff=lfs merge=lfs -text
46
+ Mistral-7B-Instruct-v0.3-IQ4_NL.gguf filter=lfs diff=lfs merge=lfs -text
47
+ Mistral-7B-Instruct-v0.3-IQ4_XS.gguf filter=lfs diff=lfs merge=lfs -text
48
+ Mistral-7B-Instruct-v0.3-Q2_K.gguf filter=lfs diff=lfs merge=lfs -text
49
+ Mistral-7B-Instruct-v0.3-Q3_K_L.gguf filter=lfs diff=lfs merge=lfs -text
50
+ Mistral-7B-Instruct-v0.3-Q3_K_M.gguf filter=lfs diff=lfs merge=lfs -text
51
+ Mistral-7B-Instruct-v0.3-Q3_K_S.gguf filter=lfs diff=lfs merge=lfs -text
52
+ Mistral-7B-Instruct-v0.3-Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
53
+ Mistral-7B-Instruct-v0.3-Q4_K_S.gguf filter=lfs diff=lfs merge=lfs -text
54
+ Mistral-7B-Instruct-v0.3-Q5_K_M.gguf filter=lfs diff=lfs merge=lfs -text
55
+ Mistral-7B-Instruct-v0.3-Q5_K_S.gguf filter=lfs diff=lfs merge=lfs -text
56
+ Mistral-7B-Instruct-v0.3-Q6_K.gguf filter=lfs diff=lfs merge=lfs -text
57
+ Mistral-7B-Instruct-v0.3-Q8_0.gguf filter=lfs diff=lfs merge=lfs -text
58
+ Mistral-7B-Instruct-v0.3-f32.gguf filter=lfs diff=lfs merge=lfs -text
59
+ Mistral-7B-Instruct-v0.3.imatrix filter=lfs diff=lfs merge=lfs -text
Mistral-7B-Instruct-v0.3-IQ1_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:554d3089591e9bb89f6d8861d70021c7ee54fd68b82c6b65cd416a477dde6af6
3
+ size 1757663456
Mistral-7B-Instruct-v0.3-IQ1_S.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:638ca17a98a00935d1ebb570910d4729e52925902c662416b949c8757c4fa198
3
+ size 1615319264
Mistral-7B-Instruct-v0.3-IQ2_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b54e1139f0940dd0d59369389064488bc9663bfcd985e7c6e6d74da2ad2b4654
3
+ size 2504249568
Mistral-7B-Instruct-v0.3-IQ2_S.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:622b6bafc2fa05811a8b15186927d7758fc869ad0305ff26ae3f15e0263d95c0
3
+ size 2314457312
Mistral-7B-Instruct-v0.3-IQ2_XS.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:da7cb13e0d184c15e32dd1a7ceb3e496463a95eadb75e8497d006f8786e4e414
3
+ size 2201473248
Mistral-7B-Instruct-v0.3-IQ2_XXS.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5d993ed907dfdfe24e24d4f081a7b999c45498ecce39902983115d0d09d013db
3
+ size 1994903776
Mistral-7B-Instruct-v0.3-IQ3_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4ea14c5a6c787ac2703505f04a4ee746f746d1ace3ffd907af28f6f179e6b224
3
+ size 3288846560
Mistral-7B-Instruct-v0.3-IQ3_S.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8d137b444f93f15be78b749c72d6a5a25e3fa719310d166260abbce8175a15fc
3
+ size 3186348256
Mistral-7B-Instruct-v0.3-IQ3_XS.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:adb9a2dce4675f8e730c6519582637ef76df1b8b623981789de6940abc75ad71
3
+ size 3022770400
Mistral-7B-Instruct-v0.3-IQ3_XXS.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:131c8b3e5ab9877dd921c81cc8674e797d7ca701a828c54552ae31d24111c123
3
+ size 2830880992
Mistral-7B-Instruct-v0.3-IQ4_NL.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c2048801d2895ac26048eae97ccf4d502f07fbde782564f12692063d54415643
3
+ size 4130066656
Mistral-7B-Instruct-v0.3-IQ4_XS.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0f027bb80c65d1a81c5c4b88b9bc79337d30058b7a78b036a033b9f0b44b7a0d
3
+ size 3911962848
Mistral-7B-Instruct-v0.3-Q2_K.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6696020e424ccf3bc4ab6ac2bc639220f3d09ad6a225d5c3e16033a1ff9a4885
3
+ size 2722877664
Mistral-7B-Instruct-v0.3-Q3_K_L.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ee484d7f5a871f8ddefec262c818808e7a34019c02168f52b2849fa1a7911696
3
+ size 3825979616
Mistral-7B-Instruct-v0.3-Q3_K_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:145b11df092f04bbecb9fd99e83d1f3d8a6d1e53805682bfba1fe314f306e1d5
3
+ size 3522941152
Mistral-7B-Instruct-v0.3-Q3_K_S.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3716a9190b8e2061ba51b813270b5d218c2c53daf8cefe8b0986bac5bcf53d2d
3
+ size 3168522464
Mistral-7B-Instruct-v0.3-Q4_K_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1270d22c0fbb3d092fb725d4d96c457b7b687a5f5a715abe1e818da303e562b6
3
+ size 4372812000
Mistral-7B-Instruct-v0.3-Q4_K_S.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0415e35c7e6e156b949410f9d89ffb2cd058e4696a7f82dfcfcdf6a2e04d6320
3
+ size 4144746720
Mistral-7B-Instruct-v0.3-Q5_K_M.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0374072546aaf1257d1e34610edb11b691730d8ef7d44b5629693a2dd8e8d472
3
+ size 5136175328
Mistral-7B-Instruct-v0.3-Q5_K_S.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:27df061e4e10b08c0c2c3c170038f7b4028ebf3d2dc2a8f0705a6235632bff30
3
+ size 5002481888
Mistral-7B-Instruct-v0.3-Q6_K.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:757d75df89821a94841f341f3270b0709d36891dd8fbc41dfd059d213b54c3f5
3
+ size 5947248864
Mistral-7B-Instruct-v0.3-Q8_0.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:404857e776114baada71a08ebd3bba79d721ec7fca99705e7e7b892ae8bc583f
3
+ size 7702565088
Mistral-7B-Instruct-v0.3-f32.gguf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cf49fe1559d48ab2f68a0add81c3742a2cad7cdfc764fcd215ac942a6bb56ca9
3
+ size 28992851904
Mistral-7B-Instruct-v0.3.imatrix ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2e79af97172cc6ed110cbdaf46f500f7df2306afb22a78a43f16318cfabb189f
3
+ size 4988169
README.md ADDED
@@ -0,0 +1,96 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ quantized_by: bartowski
4
+ pipeline_tag: text-generation
5
+ ---
6
+
7
+ ## Llamacpp imatrix Quantizations of Mistral-7B-Instruct-v0.3
8
+
9
+ Using <a href="https://github.com/ggerganov/llama.cpp/">llama.cpp</a> release <a href="https://github.com/ggerganov/llama.cpp/releases/tag/b2965">b2965</a> for quantization.
10
+
11
+ Original model: https://huggingface.co/mistralai/Mistral-7B-Instruct-v0.3
12
+
13
+ All quants made using imatrix option with dataset from [here](https://gist.github.com/bartowski1182/b6ac44691e994344625687afe3263b3a)
14
+
15
+ ## Prompt format
16
+
17
+ ```
18
+ <s>[INST] {prompt} [/INST]</s>
19
+ ```
20
+
21
+ Note that this model does not support a System prompt.
22
+
23
+ ## Download a file (not the whole branch) from below:
24
+
25
+ | Filename | Quant type | File Size | Description |
26
+ | -------- | ---------- | --------- | ----------- |
27
+ | [Mistral-7B-Instruct-v0.3-Q8_0.gguf](https://huggingface.co/bartowski/Mistral-7B-Instruct-v0.3-GGUF/blob/main/Mistral-7B-Instruct-v0.3-Q8_0.gguf) | Q8_0 | 7.70GB | Extremely high quality, generally unneeded but max available quant. |
28
+ | [Mistral-7B-Instruct-v0.3-Q6_K.gguf](https://huggingface.co/bartowski/Mistral-7B-Instruct-v0.3-GGUF/blob/main/Mistral-7B-Instruct-v0.3-Q6_K.gguf) | Q6_K | 5.94GB | Very high quality, near perfect, *recommended*. |
29
+ | [Mistral-7B-Instruct-v0.3-Q5_K_M.gguf](https://huggingface.co/bartowski/Mistral-7B-Instruct-v0.3-GGUF/blob/main/Mistral-7B-Instruct-v0.3-Q5_K_M.gguf) | Q5_K_M | 5.13GB | High quality, *recommended*. |
30
+ | [Mistral-7B-Instruct-v0.3-Q5_K_S.gguf](https://huggingface.co/bartowski/Mistral-7B-Instruct-v0.3-GGUF/blob/main/Mistral-7B-Instruct-v0.3-Q5_K_S.gguf) | Q5_K_S | 5.00GB | High quality, *recommended*. |
31
+ | [Mistral-7B-Instruct-v0.3-Q4_K_M.gguf](https://huggingface.co/bartowski/Mistral-7B-Instruct-v0.3-GGUF/blob/main/Mistral-7B-Instruct-v0.3-Q4_K_M.gguf) | Q4_K_M | 4.37GB | Good quality, uses about 4.83 bits per weight, *recommended*. |
32
+ | [Mistral-7B-Instruct-v0.3-Q4_K_S.gguf](https://huggingface.co/bartowski/Mistral-7B-Instruct-v0.3-GGUF/blob/main/Mistral-7B-Instruct-v0.3-Q4_K_S.gguf) | Q4_K_S | 4.14GB | Slightly lower quality with more space savings, *recommended*. |
33
+ | [Mistral-7B-Instruct-v0.3-IQ4_NL.gguf](https://huggingface.co/bartowski/Mistral-7B-Instruct-v0.3-GGUF/blob/main/Mistral-7B-Instruct-v0.3-IQ4_NL.gguf) | IQ4_NL | 4.13GB | Decent quality, slightly smaller than Q4_K_S with similar performance *recommended*. |
34
+ | [Mistral-7B-Instruct-v0.3-IQ4_XS.gguf](https://huggingface.co/bartowski/Mistral-7B-Instruct-v0.3-GGUF/blob/main/Mistral-7B-Instruct-v0.3-IQ4_XS.gguf) | IQ4_XS | 3.91GB | Decent quality, smaller than Q4_K_S with similar performance, *recommended*. |
35
+ | [Mistral-7B-Instruct-v0.3-Q3_K_L.gguf](https://huggingface.co/bartowski/Mistral-7B-Instruct-v0.3-GGUF/blob/main/Mistral-7B-Instruct-v0.3-Q3_K_L.gguf) | Q3_K_L | 3.82GB | Lower quality but usable, good for low RAM availability. |
36
+ | [Mistral-7B-Instruct-v0.3-Q3_K_M.gguf](https://huggingface.co/bartowski/Mistral-7B-Instruct-v0.3-GGUF/blob/main/Mistral-7B-Instruct-v0.3-Q3_K_M.gguf) | Q3_K_M | 3.52GB | Even lower quality. |
37
+ | [Mistral-7B-Instruct-v0.3-IQ3_M.gguf](https://huggingface.co/bartowski/Mistral-7B-Instruct-v0.3-GGUF/blob/main/Mistral-7B-Instruct-v0.3-IQ3_M.gguf) | IQ3_M | 3.28GB | Medium-low quality, new method with decent performance comparable to Q3_K_M. |
38
+ | [Mistral-7B-Instruct-v0.3-IQ3_S.gguf](https://huggingface.co/bartowski/Mistral-7B-Instruct-v0.3-GGUF/blob/main/Mistral-7B-Instruct-v0.3-IQ3_S.gguf) | IQ3_S | 3.18GB | Lower quality, new method with decent performance, recommended over Q3_K_S quant, same size with better performance. |
39
+ | [Mistral-7B-Instruct-v0.3-Q3_K_S.gguf](https://huggingface.co/bartowski/Mistral-7B-Instruct-v0.3-GGUF/blob/main/Mistral-7B-Instruct-v0.3-Q3_K_S.gguf) | Q3_K_S | 3.16GB | Low quality, not recommended. |
40
+ | [Mistral-7B-Instruct-v0.3-IQ3_XS.gguf](https://huggingface.co/bartowski/Mistral-7B-Instruct-v0.3-GGUF/blob/main/Mistral-7B-Instruct-v0.3-IQ3_XS.gguf) | IQ3_XS | 3.02GB | Lower quality, new method with decent performance, slightly better than Q3_K_S. |
41
+ | [Mistral-7B-Instruct-v0.3-IQ3_XXS.gguf](https://huggingface.co/bartowski/Mistral-7B-Instruct-v0.3-GGUF/blob/main/Mistral-7B-Instruct-v0.3-IQ3_XXS.gguf) | IQ3_XXS | 2.83GB | Lower quality, new method with decent performance, comparable to Q3 quants. |
42
+ | [Mistral-7B-Instruct-v0.3-Q2_K.gguf](https://huggingface.co/bartowski/Mistral-7B-Instruct-v0.3-GGUF/blob/main/Mistral-7B-Instruct-v0.3-Q2_K.gguf) | Q2_K | 2.72GB | Very low quality but surprisingly usable. |
43
+ | [Mistral-7B-Instruct-v0.3-IQ2_M.gguf](https://huggingface.co/bartowski/Mistral-7B-Instruct-v0.3-GGUF/blob/main/Mistral-7B-Instruct-v0.3-IQ2_M.gguf) | IQ2_M | 2.50GB | Very low quality, uses SOTA techniques to also be surprisingly usable. |
44
+ | [Mistral-7B-Instruct-v0.3-IQ2_S.gguf](https://huggingface.co/bartowski/Mistral-7B-Instruct-v0.3-GGUF/blob/main/Mistral-7B-Instruct-v0.3-IQ2_S.gguf) | IQ2_S | 2.31GB | Very low quality, uses SOTA techniques to be usable. |
45
+ | [Mistral-7B-Instruct-v0.3-IQ2_XS.gguf](https://huggingface.co/bartowski/Mistral-7B-Instruct-v0.3-GGUF/blob/main/Mistral-7B-Instruct-v0.3-IQ2_XS.gguf) | IQ2_XS | 2.20GB | Very low quality, uses SOTA techniques to be usable. |
46
+ | [Mistral-7B-Instruct-v0.3-IQ2_XXS.gguf](https://huggingface.co/bartowski/Mistral-7B-Instruct-v0.3-GGUF/blob/main/Mistral-7B-Instruct-v0.3-IQ2_XXS.gguf) | IQ2_XXS | 1.99GB | Lower quality, uses SOTA techniques to be usable. |
47
+ | [Mistral-7B-Instruct-v0.3-IQ1_M.gguf](https://huggingface.co/bartowski/Mistral-7B-Instruct-v0.3-GGUF/blob/main/Mistral-7B-Instruct-v0.3-IQ1_M.gguf) | IQ1_M | 1.75GB | Extremely low quality, *not* recommended. |
48
+ | [Mistral-7B-Instruct-v0.3-IQ1_S.gguf](https://huggingface.co/bartowski/Mistral-7B-Instruct-v0.3-GGUF/blob/main/Mistral-7B-Instruct-v0.3-IQ1_S.gguf) | IQ1_S | 1.61GB | Extremely low quality, *not* recommended. |
49
+
50
+ ## Downloading using huggingface-cli
51
+
52
+ First, make sure you have hugginface-cli installed:
53
+
54
+ ```
55
+ pip install -U "huggingface_hub[cli]"
56
+ ```
57
+
58
+ Then, you can target the specific file you want:
59
+
60
+ ```
61
+ huggingface-cli download bartowski/Mistral-7B-Instruct-v0.3-GGUF --include "Mistral-7B-Instruct-v0.3-Q4_K_M.gguf" --local-dir ./
62
+ ```
63
+
64
+ 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:
65
+
66
+ ```
67
+ huggingface-cli download bartowski/Mistral-7B-Instruct-v0.3-GGUF --include "Mistral-7B-Instruct-v0.3-Q8_0.gguf/*" --local-dir Mistral-7B-Instruct-v0.3-Q8_0
68
+ ```
69
+
70
+ You can either specify a new local-dir (Mistral-7B-Instruct-v0.3-Q8_0) or download them all in place (./)
71
+
72
+ ## Which file should I choose?
73
+
74
+ A great write up with charts showing various performances is provided by Artefact2 [here](https://gist.github.com/Artefact2/b5f810600771265fc1e39442288e8ec9)
75
+
76
+ 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.
77
+
78
+ 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.
79
+
80
+ 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.
81
+
82
+ Next, you'll need to decide if you want to use an 'I-quant' or a 'K-quant'.
83
+
84
+ 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.
85
+
86
+ If you want to get more into the weeds, you can check out this extremely useful feature chart:
87
+
88
+ [llama.cpp feature matrix](https://github.com/ggerganov/llama.cpp/wiki/Feature-matrix)
89
+
90
+ 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.
91
+
92
+ 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.
93
+
94
+ 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.
95
+
96
+ Want to support my work? Visit my ko-fi page here: https://ko-fi.com/bartowski