legraphista commited on
Commit
6da9a2a
β€’
1 Parent(s): 80bee7c

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +163 -0
README.md ADDED
@@ -0,0 +1,163 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: mistralai/Mistral-Small-Instruct-2409
3
+ extra_gated_description: If you want to learn more about how we process your personal
4
+ data, please read our <a href="https://mistral.ai/terms/">Privacy Policy</a>.
5
+ inference: false
6
+ language:
7
+ - en
8
+ - fr
9
+ - de
10
+ - es
11
+ - it
12
+ - pt
13
+ - zh
14
+ - ja
15
+ - ru
16
+ - ko
17
+ library_name: gguf
18
+ license: other
19
+ license_link: https://mistral.ai/licenses/MRL-0.1.md
20
+ license_name: mrl
21
+ pipeline_tag: text-generation
22
+ quantized_by: legraphista
23
+ tags:
24
+ - quantized
25
+ - GGUF
26
+ - quantization
27
+ - imat
28
+ - imatrix
29
+ - static
30
+ - 16bit
31
+ - 8bit
32
+ - 6bit
33
+ - 5bit
34
+ - 4bit
35
+ - 3bit
36
+ - 2bit
37
+ - 1bit
38
+ ---
39
+
40
+ # Mistral-Small-Instruct-2409-IMat-GGUF
41
+ _Llama.cpp imatrix quantization of mistralai/Mistral-Small-Instruct-2409_
42
+
43
+ Original Model: [mistralai/Mistral-Small-Instruct-2409](https://huggingface.co/mistralai/Mistral-Small-Instruct-2409)
44
+ Original dtype: `BF16` (`bfloat16`)
45
+ Quantized by: llama.cpp [b3785](https://github.com/ggerganov/llama.cpp/releases/tag/b3785)
46
+ IMatrix dataset: [here](https://gist.githubusercontent.com/bartowski1182/eb213dccb3571f863da82e99418f81e8/raw/b2869d80f5c16fd7082594248e80144677736635/calibration_datav3.txt)
47
+
48
+ - [Files](#files)
49
+ - [IMatrix](#imatrix)
50
+ - [Common Quants](#common-quants)
51
+ - [All Quants](#all-quants)
52
+ - [Downloading using huggingface-cli](#downloading-using-huggingface-cli)
53
+ - [Inference](#inference)
54
+ - [Simple chat template](#simple-chat-template)
55
+ - [Chat template with system prompt](#chat-template-with-system-prompt)
56
+ - [Llama.cpp](#llama-cpp)
57
+ - [FAQ](#faq)
58
+ - [Why is the IMatrix not applied everywhere?](#why-is-the-imatrix-not-applied-everywhere)
59
+ - [How do I merge a split GGUF?](#how-do-i-merge-a-split-gguf)
60
+
61
+ ---
62
+
63
+ ## Files
64
+
65
+ ### IMatrix
66
+ Status: ⏳ Processing
67
+ Link: [here](https://huggingface.co/legraphista/Mistral-Small-Instruct-2409-IMat-GGUF/blob/main/imatrix.dat)
68
+
69
+ ### Common Quants
70
+ | Filename | Quant type | File Size | Status | Uses IMatrix | Is Split |
71
+ | -------- | ---------- | --------- | ------ | ------------ | -------- |
72
+ | Mistral-Small-Instruct-2409.Q8_0 | Q8_0 | - | ⏳ Processing | βšͺ Static | -
73
+ | Mistral-Small-Instruct-2409.Q6_K | Q6_K | - | ⏳ Processing | βšͺ Static | -
74
+ | Mistral-Small-Instruct-2409.Q4_K | Q4_K | - | ⏳ Processing | 🟒 IMatrix | -
75
+ | Mistral-Small-Instruct-2409.Q3_K | Q3_K | - | ⏳ Processing | 🟒 IMatrix | -
76
+ | Mistral-Small-Instruct-2409.Q2_K | Q2_K | - | ⏳ Processing | 🟒 IMatrix | -
77
+
78
+
79
+ ### All Quants
80
+ | Filename | Quant type | File Size | Status | Uses IMatrix | Is Split |
81
+ | -------- | ---------- | --------- | ------ | ------------ | -------- |
82
+ | Mistral-Small-Instruct-2409.BF16 | BF16 | - | ⏳ Processing | βšͺ Static | -
83
+ | Mistral-Small-Instruct-2409.FP16 | F16 | - | ⏳ Processing | βšͺ Static | -
84
+ | Mistral-Small-Instruct-2409.Q8_0 | Q8_0 | - | ⏳ Processing | βšͺ Static | -
85
+ | Mistral-Small-Instruct-2409.Q6_K | Q6_K | - | ⏳ Processing | βšͺ Static | -
86
+ | Mistral-Small-Instruct-2409.Q5_K | Q5_K | - | ⏳ Processing | βšͺ Static | -
87
+ | Mistral-Small-Instruct-2409.Q5_K_S | Q5_K_S | - | ⏳ Processing | βšͺ Static | -
88
+ | Mistral-Small-Instruct-2409.Q4_K | Q4_K | - | ⏳ Processing | 🟒 IMatrix | -
89
+ | Mistral-Small-Instruct-2409.Q4_K_S | Q4_K_S | - | ⏳ Processing | 🟒 IMatrix | -
90
+ | Mistral-Small-Instruct-2409.IQ4_NL | IQ4_NL | - | ⏳ Processing | 🟒 IMatrix | -
91
+ | Mistral-Small-Instruct-2409.IQ4_XS | IQ4_XS | - | ⏳ Processing | 🟒 IMatrix | -
92
+ | Mistral-Small-Instruct-2409.Q3_K | Q3_K | - | ⏳ Processing | 🟒 IMatrix | -
93
+ | Mistral-Small-Instruct-2409.Q3_K_L | Q3_K_L | - | ⏳ Processing | 🟒 IMatrix | -
94
+ | Mistral-Small-Instruct-2409.Q3_K_S | Q3_K_S | - | ⏳ Processing | 🟒 IMatrix | -
95
+ | Mistral-Small-Instruct-2409.IQ3_M | IQ3_M | - | ⏳ Processing | 🟒 IMatrix | -
96
+ | Mistral-Small-Instruct-2409.IQ3_S | IQ3_S | - | ⏳ Processing | 🟒 IMatrix | -
97
+ | Mistral-Small-Instruct-2409.IQ3_XS | IQ3_XS | - | ⏳ Processing | 🟒 IMatrix | -
98
+ | Mistral-Small-Instruct-2409.IQ3_XXS | IQ3_XXS | - | ⏳ Processing | 🟒 IMatrix | -
99
+ | Mistral-Small-Instruct-2409.Q2_K | Q2_K | - | ⏳ Processing | 🟒 IMatrix | -
100
+ | Mistral-Small-Instruct-2409.Q2_K_S | Q2_K_S | - | ⏳ Processing | 🟒 IMatrix | -
101
+ | Mistral-Small-Instruct-2409.IQ2_M | IQ2_M | - | ⏳ Processing | 🟒 IMatrix | -
102
+ | Mistral-Small-Instruct-2409.IQ2_S | IQ2_S | - | ⏳ Processing | 🟒 IMatrix | -
103
+ | Mistral-Small-Instruct-2409.IQ2_XS | IQ2_XS | - | ⏳ Processing | 🟒 IMatrix | -
104
+ | Mistral-Small-Instruct-2409.IQ2_XXS | IQ2_XXS | - | ⏳ Processing | 🟒 IMatrix | -
105
+ | Mistral-Small-Instruct-2409.IQ1_M | IQ1_M | - | ⏳ Processing | 🟒 IMatrix | -
106
+ | Mistral-Small-Instruct-2409.IQ1_S | IQ1_S | - | ⏳ Processing | 🟒 IMatrix | -
107
+
108
+
109
+ ## Downloading using huggingface-cli
110
+ If you do not have hugginface-cli installed:
111
+ ```
112
+ pip install -U "huggingface_hub[cli]"
113
+ ```
114
+ Download the specific file you want:
115
+ ```
116
+ huggingface-cli download legraphista/Mistral-Small-Instruct-2409-IMat-GGUF --include "Mistral-Small-Instruct-2409.Q8_0.gguf" --local-dir ./
117
+ ```
118
+ If the model file is big, it has been split into multiple files. In order to download them all to a local folder, run:
119
+ ```
120
+ huggingface-cli download legraphista/Mistral-Small-Instruct-2409-IMat-GGUF --include "Mistral-Small-Instruct-2409.Q8_0/*" --local-dir ./
121
+ # see FAQ for merging GGUF's
122
+ ```
123
+
124
+ ---
125
+
126
+ ## Inference
127
+
128
+ ### Simple chat template
129
+ ```
130
+ <s>[INST] {user_prompt}[/INST] {assistant_response}</s>[INST] {next_user_prompt}[/INST]
131
+ ```
132
+
133
+ ### Chat template with system prompt
134
+ ```
135
+ <s>[INST] {user_prompt}[/INST] {assistant_response}</s>[INST] {system_prompt}
136
+
137
+ {next_user_prompt}[/INST]
138
+ ```
139
+
140
+ ### Llama.cpp
141
+ ```
142
+ llama.cpp/main -m Mistral-Small-Instruct-2409.Q8_0.gguf --color -i -p "prompt here (according to the chat template)"
143
+ ```
144
+
145
+ ---
146
+
147
+ ## FAQ
148
+
149
+ ### Why is the IMatrix not applied everywhere?
150
+ 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).
151
+
152
+ ### How do I merge a split GGUF?
153
+ 1. Make sure you have `gguf-split` available
154
+ - To get hold of `gguf-split`, navigate to https://github.com/ggerganov/llama.cpp/releases
155
+ - Download the appropriate zip for your system from the latest release
156
+ - Unzip the archive and you should be able to find `gguf-split`
157
+ 2. Locate your GGUF chunks folder (ex: `Mistral-Small-Instruct-2409.Q8_0`)
158
+ 3. Run `gguf-split --merge Mistral-Small-Instruct-2409.Q8_0/Mistral-Small-Instruct-2409.Q8_0-00001-of-XXXXX.gguf Mistral-Small-Instruct-2409.Q8_0.gguf`
159
+ - Make sure to point `gguf-split` to the first chunk of the split.
160
+
161
+ ---
162
+
163
+ Got a suggestion? Ping me [@legraphista](https://x.com/legraphista)!