legraphista commited on
Commit
5d97f32
β€’
1 Parent(s): bf8221e

Upload README.md with huggingface_hub

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