legraphista commited on
Commit
1136926
β€’
1 Parent(s): 4d99063

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +131 -0
README.md ADDED
@@ -0,0 +1,131 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: mistralai/Mistral-7B-Instruct-v0.3
3
+ inference: false
4
+ library_name: gguf
5
+ license: apache-2.0
6
+ pipeline_tag: text-generation
7
+ quantized_by: legraphista
8
+ tags:
9
+ - quantized
10
+ - GGUF
11
+ - imatrix
12
+ - quantization
13
+ - imat
14
+ - imatrix
15
+ - static
16
+ ---
17
+
18
+ # Mistral-7B-Instruct-v0.3-IMat-GGUF
19
+ _Llama.cpp imatrix quantization of mistralai/Mistral-7B-Instruct-v0.3_
20
+
21
+ Original Model: [mistralai/Mistral-7B-Instruct-v0.3](https://huggingface.co/mistralai/Mistral-7B-Instruct-v0.3)
22
+ Original dtype: `BF16` (`bfloat16`)
23
+ Quantized by: llama.cpp [b3003](https://github.com/ggerganov/llama.cpp/releases/tag/b3003)
24
+ IMatrix dataset: [here](https://gist.githubusercontent.com/legraphista/d6d93f1a254bcfc58e0af3777eaec41e/raw/d380e7002cea4a51c33fffd47db851942754e7cc/imatrix.calibration.medium.raw)
25
+
26
+ - [Mistral-7B-Instruct-v0.3-IMat-GGUF](#mistral-7b-instruct-v0-3-imat-gguf)
27
+ - [Files](#files)
28
+ - [IMatrix](#imatrix)
29
+ - [Common Quants](#common-quants)
30
+ - [All Quants](#all-quants)
31
+ - [Downloading using huggingface-cli](#downloading-using-huggingface-cli)
32
+ - [Inference](#inference)
33
+ - [Simple chat template](#simple-chat-template)
34
+ - [Llama.cpp](#llama-cpp)
35
+ - [FAQ](#faq)
36
+ - [Why is the IMatrix not applied everywhere?](#why-is-the-imatrix-not-applied-everywhere)
37
+ - [How do I merge a split GGUF?](#how-do-i-merge-a-split-gguf)
38
+
39
+ ---
40
+
41
+ ## Files
42
+
43
+ ### IMatrix
44
+ Status: ⏳ Processing
45
+ Link: [here](https://huggingface.co/legraphista/Mistral-7B-Instruct-v0.3-IMat-GGUF/blob/main/imatrix.dat)
46
+
47
+ ### Common Quants
48
+ | Filename | Quant type | File Size | Status | Uses IMatrix | Is Split |
49
+ | -------- | ---------- | --------- | ------ | ------------ | -------- |
50
+ | Mistral-7B-Instruct-v0.3.Q8_0 | Q8_0 | - | ⏳ Processing | βšͺ No | -
51
+ | Mistral-7B-Instruct-v0.3.Q6_K | Q6_K | - | ⏳ Processing | βšͺ No | -
52
+ | Mistral-7B-Instruct-v0.3.Q4_K | Q4_K | - | ⏳ Processing | 🟒 Yes | -
53
+ | Mistral-7B-Instruct-v0.3.Q3_K | Q3_K | - | ⏳ Processing | 🟒 Yes | -
54
+ | Mistral-7B-Instruct-v0.3.Q2_K | Q2_K | - | ⏳ Processing | 🟒 Yes | -
55
+
56
+
57
+ ### All Quants
58
+ | Filename | Quant type | File Size | Status | Uses IMatrix | Is Split |
59
+ | -------- | ---------- | --------- | ------ | ------------ | -------- |
60
+ | Mistral-7B-Instruct-v0.3.FP16 | F16 | - | ⏳ Processing | βšͺ No | -
61
+ | Mistral-7B-Instruct-v0.3.BF16 | BF16 | - | ⏳ Processing | βšͺ No | -
62
+ | Mistral-7B-Instruct-v0.3.Q5_K | Q5_K | - | ⏳ Processing | βšͺ No | -
63
+ | Mistral-7B-Instruct-v0.3.Q5_K_S | Q5_K_S | - | ⏳ Processing | βšͺ No | -
64
+ | Mistral-7B-Instruct-v0.3.Q4_K_S | Q4_K_S | - | ⏳ Processing | 🟒 Yes | -
65
+ | Mistral-7B-Instruct-v0.3.Q3_K_L | Q3_K_L | - | ⏳ Processing | 🟒 Yes | -
66
+ | Mistral-7B-Instruct-v0.3.Q3_K_S | Q3_K_S | - | ⏳ Processing | 🟒 Yes | -
67
+ | Mistral-7B-Instruct-v0.3.Q2_K_S | Q2_K_S | - | ⏳ Processing | 🟒 Yes | -
68
+ | Mistral-7B-Instruct-v0.3.IQ4_NL | IQ4_NL | - | ⏳ Processing | 🟒 Yes | -
69
+ | Mistral-7B-Instruct-v0.3.IQ4_XS | IQ4_XS | - | ⏳ Processing | 🟒 Yes | -
70
+ | Mistral-7B-Instruct-v0.3.IQ3_M | IQ3_M | - | ⏳ Processing | 🟒 Yes | -
71
+ | Mistral-7B-Instruct-v0.3.IQ3_S | IQ3_S | - | ⏳ Processing | 🟒 Yes | -
72
+ | Mistral-7B-Instruct-v0.3.IQ3_XS | IQ3_XS | - | ⏳ Processing | 🟒 Yes | -
73
+ | Mistral-7B-Instruct-v0.3.IQ3_XXS | IQ3_XXS | - | ⏳ Processing | 🟒 Yes | -
74
+ | Mistral-7B-Instruct-v0.3.IQ2_M | IQ2_M | - | ⏳ Processing | 🟒 Yes | -
75
+ | Mistral-7B-Instruct-v0.3.IQ2_S | IQ2_S | - | ⏳ Processing | 🟒 Yes | -
76
+ | Mistral-7B-Instruct-v0.3.IQ2_XS | IQ2_XS | - | ⏳ Processing | 🟒 Yes | -
77
+ | Mistral-7B-Instruct-v0.3.IQ2_XXS | IQ2_XXS | - | ⏳ Processing | 🟒 Yes | -
78
+ | Mistral-7B-Instruct-v0.3.IQ1_M | IQ1_M | - | ⏳ Processing | 🟒 Yes | -
79
+ | Mistral-7B-Instruct-v0.3.IQ1_S | IQ1_S | - | ⏳ Processing | 🟒 Yes | -
80
+
81
+
82
+ ## Downloading using huggingface-cli
83
+ If you do not have hugginface-cli installed:
84
+ ```
85
+ pip install -U "huggingface_hub[cli]"
86
+ ```
87
+ Download the specific file you want:
88
+ ```
89
+ huggingface-cli download legraphista/Mistral-7B-Instruct-v0.3-IMat-GGUF --include "Mistral-7B-Instruct-v0.3.Q8_0.gguf" --local-dir ./
90
+ ```
91
+ If the model file is big, it has been split into multiple files. In order to download them all to a local folder, run:
92
+ ```
93
+ huggingface-cli download legraphista/Mistral-7B-Instruct-v0.3-IMat-GGUF --include "Mistral-7B-Instruct-v0.3.Q8_0/*" --local-dir Mistral-7B-Instruct-v0.3.Q8_0
94
+ # see FAQ for merging GGUF's
95
+ ```
96
+
97
+ ---
98
+
99
+ ## Inference
100
+
101
+ ### Simple chat template
102
+ ```
103
+ <s>[INST] Can you provide ways to eat combinations of bananas and dragonfruits? [/INST]Sure! Here are some ways to eat bananas and dragonfruits together:
104
+ 1. Banana and dragonfruit smoothie: Blend bananas and dragonfruits together with some milk and honey.
105
+ 2. Banana and dragonfruit salad: Mix sliced bananas and dragonfruits together with some lemon juice and honey.</s>[INST] What about solving an 2x + 3 = 7 equation? [/INST]
106
+ ```
107
+
108
+ ### Llama.cpp
109
+ ```
110
+ llama.cpp/main -m Mistral-7B-Instruct-v0.3.Q8_0.gguf --color -i -p "prompt here (according to the chat template)"
111
+ ```
112
+
113
+ ---
114
+
115
+ ## FAQ
116
+
117
+ ### Why is the IMatrix not applied everywhere?
118
+ According to [this investigation](https://www.reddit.com/r/LocalLLaMA/comments/1993iro/ggufs_quants_can_punch_above_their_weights_now/), it appears that lower quantizations are the only ones that benefit from the imatrix input (as per hellaswag results).
119
+
120
+ ### How do I merge a split GGUF?
121
+ 1. Make sure you have `gguf-split` available
122
+ - To get hold of `gguf-split`, navigate to https://github.com/ggerganov/llama.cpp/releases
123
+ - Download the appropriate zip for your system from the latest release
124
+ - Unzip the archive and you should be able to find `gguf-split`
125
+ 2. Locate your GGUF chunks folder (ex: `Mistral-7B-Instruct-v0.3.Q8_0`)
126
+ 3. Run `gguf-split --merge Mistral-7B-Instruct-v0.3.Q8_0/Mistral-7B-Instruct-v0.3.Q8_0-00001-of-XXXXX.gguf Mistral-7B-Instruct-v0.3.Q8_0.gguf`
127
+ - Make sure to point `gguf-split` to the first chunk of the split.
128
+
129
+ ---
130
+
131
+ Got a suggestion? Ping me [@legraphista](https://x.com/legraphista)!