bartowski commited on
Commit
c83dd60
1 Parent(s): 2a62935

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +79 -155
README.md CHANGED
@@ -1,200 +1,124 @@
1
  ---
2
- base_model: nvidia/Mistral-NeMo-Minitron-8B-Instruct
3
- pipeline_tag: text-generation
4
  quantized_by: bartowski
 
5
  ---
6
 
7
- # Model Card for Model ID
8
-
9
- <!-- Provide a quick summary of what the model is/does. -->
10
-
11
-
12
-
13
- ## Model Details
14
-
15
- ### Model Description
16
-
17
- <!-- Provide a longer summary of what this model is. -->
18
-
19
-
20
-
21
- - **Developed by:** [More Information Needed]
22
- - **Funded by [optional]:** [More Information Needed]
23
- - **Shared by [optional]:** [More Information Needed]
24
- - **Model type:** [More Information Needed]
25
- - **Language(s) (NLP):** [More Information Needed]
26
- - **License:** [More Information Needed]
27
- - **Finetuned from model [optional]:** [More Information Needed]
28
-
29
- ### Model Sources [optional]
30
-
31
- <!-- Provide the basic links for the model. -->
32
-
33
- - **Repository:** [More Information Needed]
34
- - **Paper [optional]:** [More Information Needed]
35
- - **Demo [optional]:** [More Information Needed]
36
-
37
- ## Uses
38
-
39
- <!-- Address questions around how the model is intended to be used, including the foreseeable users of the model and those affected by the model. -->
40
-
41
- ### Direct Use
42
-
43
- <!-- This section is for the model use without fine-tuning or plugging into a larger ecosystem/app. -->
44
-
45
- [More Information Needed]
46
-
47
- ### Downstream Use [optional]
48
-
49
- <!-- This section is for the model use when fine-tuned for a task, or when plugged into a larger ecosystem/app -->
50
-
51
- [More Information Needed]
52
-
53
- ### Out-of-Scope Use
54
-
55
- <!-- This section addresses misuse, malicious use, and uses that the model will not work well for. -->
56
-
57
- [More Information Needed]
58
-
59
- ## Bias, Risks, and Limitations
60
-
61
- <!-- This section is meant to convey both technical and sociotechnical limitations. -->
62
-
63
- [More Information Needed]
64
-
65
- ### Recommendations
66
-
67
- <!-- This section is meant to convey recommendations with respect to the bias, risk, and technical limitations. -->
68
-
69
- Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
70
-
71
- ## How to Get Started with the Model
72
-
73
- Use the code below to get started with the model.
74
-
75
- [More Information Needed]
76
-
77
- ## Training Details
78
-
79
- ### Training Data
80
-
81
- <!-- This should link to a Dataset Card, perhaps with a short stub of information on what the training data is all about as well as documentation related to data pre-processing or additional filtering. -->
82
-
83
- [More Information Needed]
84
-
85
- ### Training Procedure
86
-
87
- <!-- This relates heavily to the Technical Specifications. Content here should link to that section when it is relevant to the training procedure. -->
88
-
89
- #### Preprocessing [optional]
90
-
91
- [More Information Needed]
92
-
93
-
94
- #### Training Hyperparameters
95
-
96
- - **Training regime:** [More Information Needed] <!--fp32, fp16 mixed precision, bf16 mixed precision, bf16 non-mixed precision, fp16 non-mixed precision, fp8 mixed precision -->
97
-
98
- #### Speeds, Sizes, Times [optional]
99
-
100
- <!-- This section provides information about throughput, start/end time, checkpoint size if relevant, etc. -->
101
-
102
- [More Information Needed]
103
-
104
- ## Evaluation
105
-
106
- <!-- This section describes the evaluation protocols and provides the results. -->
107
-
108
- ### Testing Data, Factors & Metrics
109
-
110
- #### Testing Data
111
-
112
- <!-- This should link to a Dataset Card if possible. -->
113
-
114
- [More Information Needed]
115
-
116
- #### Factors
117
 
118
- <!-- These are the things the evaluation is disaggregating by, e.g., subpopulations or domains. -->
119
 
120
- [More Information Needed]
121
 
122
- #### Metrics
123
 
124
- <!-- These are the evaluation metrics being used, ideally with a description of why. -->
125
 
126
- [More Information Needed]
127
 
128
- ### Results
 
 
129
 
130
- [More Information Needed]
 
 
 
131
 
132
- #### Summary
133
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
134
 
 
135
 
136
- ## Model Examination [optional]
137
 
138
- <!-- Relevant interpretability work for the model goes here -->
139
 
140
- [More Information Needed]
141
 
142
- ## Environmental Impact
143
 
144
- <!-- Total emissions (in grams of CO2eq) and additional considerations, such as electricity usage, go here. Edit the suggested text below accordingly -->
145
 
146
- Carbon emissions can be estimated using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700).
 
 
147
 
148
- - **Hardware Type:** [More Information Needed]
149
- - **Hours used:** [More Information Needed]
150
- - **Cloud Provider:** [More Information Needed]
151
- - **Compute Region:** [More Information Needed]
152
- - **Carbon Emitted:** [More Information Needed]
153
 
154
- ## Technical Specifications [optional]
 
 
155
 
156
- ### Model Architecture and Objective
157
 
158
- [More Information Needed]
 
 
159
 
160
- ### Compute Infrastructure
161
 
162
- [More Information Needed]
163
 
164
- #### Hardware
165
 
166
- [More Information Needed]
167
 
168
- #### Software
169
 
170
- [More Information Needed]
171
 
172
- ## Citation [optional]
173
 
174
- <!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
175
 
176
- **BibTeX:**
177
 
178
- [More Information Needed]
179
 
180
- **APA:**
181
 
182
- [More Information Needed]
183
 
184
- ## Glossary [optional]
185
 
186
- <!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
187
 
188
- [More Information Needed]
189
 
190
- ## More Information [optional]
191
 
192
- [More Information Needed]
193
 
194
- ## Model Card Authors [optional]
195
 
196
- [More Information Needed]
197
 
198
- ## Model Card Contact
199
 
200
- [More Information Needed]
 
1
  ---
 
 
2
  quantized_by: bartowski
3
+ pipeline_tag: text-generation
4
  ---
5
 
6
+ ## Llamacpp imatrix Quantizations of Mistral-NeMo-Minitron-8B-Instruct
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7
 
8
+ Using <a href="https://github.com/ggerganov/llama.cpp/">llama.cpp</a> release <a href="https://github.com/ggerganov/llama.cpp/releases/tag/b3901">b3901</a> for quantization.
9
 
10
+ Original model: https://huggingface.co/nvidia/Mistral-NeMo-Minitron-8B-Instruct
11
 
12
+ All quants made using imatrix option with dataset from [here](https://gist.github.com/bartowski1182/eb213dccb3571f863da82e99418f81e8)
13
 
14
+ Run them in [LM Studio](https://lmstudio.ai/)
15
 
16
+ ## Prompt format
17
 
18
+ ```
19
+ <extra_id_0>System
20
+ {system_prompt}
21
 
22
+ <extra_id_1>User
23
+ {prompt}
24
+ <extra_id_1>Assistant
25
+ ```
26
 
27
+ ## Download a file (not the whole branch) from below:
28
 
29
+ | Filename | Quant type | File Size | Split | Description |
30
+ | -------- | ---------- | --------- | ----- | ----------- |
31
+ | [Mistral-NeMo-Minitron-8B-Instruct-f16.gguf](https://huggingface.co/bartowski/Mistral-NeMo-Minitron-8B-Instruct-GGUF/blob/main/Mistral-NeMo-Minitron-8B-Instruct-f16.gguf) | f16 | 16.84GB | false | Full F16 weights. |
32
+ | [Mistral-NeMo-Minitron-8B-Instruct-Q8_0.gguf](https://huggingface.co/bartowski/Mistral-NeMo-Minitron-8B-Instruct-GGUF/blob/main/Mistral-NeMo-Minitron-8B-Instruct-Q8_0.gguf) | Q8_0 | 8.95GB | false | Extremely high quality, generally unneeded but max available quant. |
33
+ | [Mistral-NeMo-Minitron-8B-Instruct-Q6_K_L.gguf](https://huggingface.co/bartowski/Mistral-NeMo-Minitron-8B-Instruct-GGUF/blob/main/Mistral-NeMo-Minitron-8B-Instruct-Q6_K_L.gguf) | Q6_K_L | 7.17GB | false | Uses Q8_0 for embed and output weights. Very high quality, near perfect, *recommended*. |
34
+ | [Mistral-NeMo-Minitron-8B-Instruct-Q6_K.gguf](https://huggingface.co/bartowski/Mistral-NeMo-Minitron-8B-Instruct-GGUF/blob/main/Mistral-NeMo-Minitron-8B-Instruct-Q6_K.gguf) | Q6_K | 6.91GB | false | Very high quality, near perfect, *recommended*. |
35
+ | [Mistral-NeMo-Minitron-8B-Instruct-Q5_K_L.gguf](https://huggingface.co/bartowski/Mistral-NeMo-Minitron-8B-Instruct-GGUF/blob/main/Mistral-NeMo-Minitron-8B-Instruct-Q5_K_L.gguf) | Q5_K_L | 6.33GB | false | Uses Q8_0 for embed and output weights. High quality, *recommended*. |
36
+ | [Mistral-NeMo-Minitron-8B-Instruct-Q5_K_M.gguf](https://huggingface.co/bartowski/Mistral-NeMo-Minitron-8B-Instruct-GGUF/blob/main/Mistral-NeMo-Minitron-8B-Instruct-Q5_K_M.gguf) | Q5_K_M | 6.00GB | false | High quality, *recommended*. |
37
+ | [Mistral-NeMo-Minitron-8B-Instruct-Q5_K_S.gguf](https://huggingface.co/bartowski/Mistral-NeMo-Minitron-8B-Instruct-GGUF/blob/main/Mistral-NeMo-Minitron-8B-Instruct-Q5_K_S.gguf) | Q5_K_S | 5.86GB | false | High quality, *recommended*. |
38
+ | [Mistral-NeMo-Minitron-8B-Instruct-Q4_K_L.gguf](https://huggingface.co/bartowski/Mistral-NeMo-Minitron-8B-Instruct-GGUF/blob/main/Mistral-NeMo-Minitron-8B-Instruct-Q4_K_L.gguf) | Q4_K_L | 5.54GB | false | Uses Q8_0 for embed and output weights. Good quality, *recommended*. |
39
+ | [Mistral-NeMo-Minitron-8B-Instruct-Q4_K_M.gguf](https://huggingface.co/bartowski/Mistral-NeMo-Minitron-8B-Instruct-GGUF/blob/main/Mistral-NeMo-Minitron-8B-Instruct-Q4_K_M.gguf) | Q4_K_M | 5.15GB | false | Good quality, default size for must use cases, *recommended*. |
40
+ | [Mistral-NeMo-Minitron-8B-Instruct-Q3_K_XL.gguf](https://huggingface.co/bartowski/Mistral-NeMo-Minitron-8B-Instruct-GGUF/blob/main/Mistral-NeMo-Minitron-8B-Instruct-Q3_K_XL.gguf) | Q3_K_XL | 5.01GB | false | Uses Q8_0 for embed and output weights. Lower quality but usable, good for low RAM availability. |
41
+ | [Mistral-NeMo-Minitron-8B-Instruct-Q4_K_S.gguf](https://huggingface.co/bartowski/Mistral-NeMo-Minitron-8B-Instruct-GGUF/blob/main/Mistral-NeMo-Minitron-8B-Instruct-Q4_K_S.gguf) | Q4_K_S | 4.91GB | false | Slightly lower quality with more space savings, *recommended*. |
42
+ | [Mistral-NeMo-Minitron-8B-Instruct-Q4_0.gguf](https://huggingface.co/bartowski/Mistral-NeMo-Minitron-8B-Instruct-GGUF/blob/main/Mistral-NeMo-Minitron-8B-Instruct-Q4_0.gguf) | Q4_0 | 4.90GB | false | Legacy format, generally not worth using over similarly sized formats |
43
+ | [Mistral-NeMo-Minitron-8B-Instruct-Q4_0_8_8.gguf](https://huggingface.co/bartowski/Mistral-NeMo-Minitron-8B-Instruct-GGUF/blob/main/Mistral-NeMo-Minitron-8B-Instruct-Q4_0_8_8.gguf) | Q4_0_8_8 | 4.88GB | false | Optimized for ARM inference. Requires 'sve' support (see link below). *Don't use on Mac or Windows*. |
44
+ | [Mistral-NeMo-Minitron-8B-Instruct-Q4_0_4_8.gguf](https://huggingface.co/bartowski/Mistral-NeMo-Minitron-8B-Instruct-GGUF/blob/main/Mistral-NeMo-Minitron-8B-Instruct-Q4_0_4_8.gguf) | Q4_0_4_8 | 4.88GB | false | Optimized for ARM inference. Requires 'i8mm' support (see link below). *Don't use on Mac or Windows*. |
45
+ | [Mistral-NeMo-Minitron-8B-Instruct-Q4_0_4_4.gguf](https://huggingface.co/bartowski/Mistral-NeMo-Minitron-8B-Instruct-GGUF/blob/main/Mistral-NeMo-Minitron-8B-Instruct-Q4_0_4_4.gguf) | Q4_0_4_4 | 4.88GB | false | Optimized for ARM inference. Should work well on all ARM chips, pick this if you're unsure. *Don't use on Mac or Windows*. |
46
+ | [Mistral-NeMo-Minitron-8B-Instruct-IQ4_XS.gguf](https://huggingface.co/bartowski/Mistral-NeMo-Minitron-8B-Instruct-GGUF/blob/main/Mistral-NeMo-Minitron-8B-Instruct-IQ4_XS.gguf) | IQ4_XS | 4.66GB | false | Decent quality, smaller than Q4_K_S with similar performance, *recommended*. |
47
+ | [Mistral-NeMo-Minitron-8B-Instruct-Q3_K_L.gguf](https://huggingface.co/bartowski/Mistral-NeMo-Minitron-8B-Instruct-GGUF/blob/main/Mistral-NeMo-Minitron-8B-Instruct-Q3_K_L.gguf) | Q3_K_L | 4.54GB | false | Lower quality but usable, good for low RAM availability. |
48
+ | [Mistral-NeMo-Minitron-8B-Instruct-Q3_K_M.gguf](https://huggingface.co/bartowski/Mistral-NeMo-Minitron-8B-Instruct-GGUF/blob/main/Mistral-NeMo-Minitron-8B-Instruct-Q3_K_M.gguf) | Q3_K_M | 4.21GB | false | Low quality. |
49
+ | [Mistral-NeMo-Minitron-8B-Instruct-IQ3_M.gguf](https://huggingface.co/bartowski/Mistral-NeMo-Minitron-8B-Instruct-GGUF/blob/main/Mistral-NeMo-Minitron-8B-Instruct-IQ3_M.gguf) | IQ3_M | 3.98GB | false | Medium-low quality, new method with decent performance comparable to Q3_K_M. |
50
+ | [Mistral-NeMo-Minitron-8B-Instruct-Q2_K_L.gguf](https://huggingface.co/bartowski/Mistral-NeMo-Minitron-8B-Instruct-GGUF/blob/main/Mistral-NeMo-Minitron-8B-Instruct-Q2_K_L.gguf) | Q2_K_L | 3.86GB | false | Uses Q8_0 for embed and output weights. Very low quality but surprisingly usable. |
51
+ | [Mistral-NeMo-Minitron-8B-Instruct-Q3_K_S.gguf](https://huggingface.co/bartowski/Mistral-NeMo-Minitron-8B-Instruct-GGUF/blob/main/Mistral-NeMo-Minitron-8B-Instruct-Q3_K_S.gguf) | Q3_K_S | 3.83GB | false | Low quality, not recommended. |
52
+ | [Mistral-NeMo-Minitron-8B-Instruct-IQ3_XS.gguf](https://huggingface.co/bartowski/Mistral-NeMo-Minitron-8B-Instruct-GGUF/blob/main/Mistral-NeMo-Minitron-8B-Instruct-IQ3_XS.gguf) | IQ3_XS | 3.68GB | false | Lower quality, new method with decent performance, slightly better than Q3_K_S. |
53
+ | [Mistral-NeMo-Minitron-8B-Instruct-Q2_K.gguf](https://huggingface.co/bartowski/Mistral-NeMo-Minitron-8B-Instruct-GGUF/blob/main/Mistral-NeMo-Minitron-8B-Instruct-Q2_K.gguf) | Q2_K | 3.33GB | false | Very low quality but surprisingly usable. |
54
+ | [Mistral-NeMo-Minitron-8B-Instruct-IQ2_M.gguf](https://huggingface.co/bartowski/Mistral-NeMo-Minitron-8B-Instruct-GGUF/blob/main/Mistral-NeMo-Minitron-8B-Instruct-IQ2_M.gguf) | IQ2_M | 3.10GB | false | Relatively low quality, uses SOTA techniques to be surprisingly usable. |
55
 
56
+ ## Embed/output weights
57
 
58
+ Some of these quants (Q3_K_XL, Q4_K_L etc) are the standard quantization method with the embeddings and output weights quantized to Q8_0 instead of what they would normally default to.
59
 
60
+ Some say that this improves the quality, others don't notice any difference. If you use these models PLEASE COMMENT with your findings. I would like feedback that these are actually used and useful so I don't keep uploading quants no one is using.
61
 
62
+ Thanks!
63
 
64
+ ## Downloading using huggingface-cli
65
 
66
+ First, make sure you have hugginface-cli installed:
67
 
68
+ ```
69
+ pip install -U "huggingface_hub[cli]"
70
+ ```
71
 
72
+ Then, you can target the specific file you want:
 
 
 
 
73
 
74
+ ```
75
+ huggingface-cli download bartowski/Mistral-NeMo-Minitron-8B-Instruct-GGUF --include "Mistral-NeMo-Minitron-8B-Instruct-Q4_K_M.gguf" --local-dir ./
76
+ ```
77
 
78
+ 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:
79
 
80
+ ```
81
+ huggingface-cli download bartowski/Mistral-NeMo-Minitron-8B-Instruct-GGUF --include "Mistral-NeMo-Minitron-8B-Instruct-Q8_0/*" --local-dir ./
82
+ ```
83
 
84
+ You can either specify a new local-dir (Mistral-NeMo-Minitron-8B-Instruct-Q8_0) or download them all in place (./)
85
 
86
+ ## Q4_0_X_X
87
 
88
+ These are *NOT* for Metal (Apple) offloading, only ARM chips.
89
 
90
+ If you're using an ARM chip, the Q4_0_X_X quants will have a substantial speedup. Check out Q4_0_4_4 speed comparisons [on the original pull request](https://github.com/ggerganov/llama.cpp/pull/5780#pullrequestreview-21657544660)
91
 
92
+ To check which one would work best for your ARM chip, you can check [AArch64 SoC features](https://gpages.juszkiewicz.com.pl/arm-socs-table/arm-socs.html) (thanks EloyOn!).
93
 
94
+ ## Which file should I choose?
95
 
96
+ A great write up with charts showing various performances is provided by Artefact2 [here](https://gist.github.com/Artefact2/b5f810600771265fc1e39442288e8ec9)
97
 
98
+ 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.
99
 
100
+ 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.
101
 
102
+ 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.
103
 
104
+ Next, you'll need to decide if you want to use an 'I-quant' or a 'K-quant'.
105
 
106
+ 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.
107
 
108
+ If you want to get more into the weeds, you can check out this extremely useful feature chart:
109
 
110
+ [llama.cpp feature matrix](https://github.com/ggerganov/llama.cpp/wiki/Feature-matrix)
111
 
112
+ 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.
113
 
114
+ 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.
115
 
116
+ 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.
117
 
118
+ ## Credits
119
 
120
+ Thank you kalomaze and Dampf for assistance in creating the imatrix calibration dataset
121
 
122
+ Thank you ZeroWw for the inspiration to experiment with embed/output
123
 
124
+ Want to support my work? Visit my ko-fi page here: https://ko-fi.com/bartowski