TouchNight commited on
Commit
9b5f260
·
verified ·
1 Parent(s): 805b867

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +292 -0
README.md ADDED
@@ -0,0 +1,292 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: TouchNight/Ministral-8B-Instruct-2410-HF
3
+ language:
4
+ - en
5
+ - fr
6
+ - de
7
+ - es
8
+ - it
9
+ - pt
10
+ - zh
11
+ - ja
12
+ - ru
13
+ - ko
14
+ library_name: vllm
15
+ license: other
16
+ license_name: mrl
17
+ license_link: https://mistral.ai/licenses/MRL-0.1.md
18
+ tags:
19
+ - llama-cpp
20
+ - gguf-my-repo
21
+ inference: false
22
+ extra_gated_prompt: '# Mistral AI Research License
23
+
24
+ If You want to use a Mistral Model, a Derivative or an Output for any purpose that
25
+ is not expressly authorized under this Agreement, You must request a license from
26
+ Mistral AI, which Mistral AI may grant to You in Mistral AI''s sole discretion.
27
+ To discuss such a license, please contact Mistral AI via the website contact form:
28
+ https://mistral.ai/contact/
29
+
30
+ ## 1. Scope and acceptance
31
+
32
+ **1.1. Scope of the Agreement.** This Agreement applies to any use, modification,
33
+ or Distribution of any Mistral Model by You, regardless of the source You obtained
34
+ a copy of such Mistral Model.
35
+
36
+ **1.2. Acceptance.** By accessing, using, modifying, Distributing a Mistral Model,
37
+ or by creating, using or distributing a Derivative of the Mistral Model, You agree
38
+ to be bound by this Agreement.
39
+
40
+ **1.3. Acceptance on behalf of a third-party.** If You accept this Agreement on
41
+ behalf of Your employer or another person or entity, You warrant and represent that
42
+ You have the authority to act and accept this Agreement on their behalf. In such
43
+ a case, the word "You" in this Agreement will refer to Your employer or such other
44
+ person or entity.
45
+
46
+ ## 2. License
47
+
48
+ **2.1. Grant of rights**. Subject to Section 3 below, Mistral AI hereby grants
49
+ You a non-exclusive, royalty-free, worldwide, non-sublicensable, non-transferable,
50
+ limited license to use, copy, modify, and Distribute under the conditions provided
51
+ in Section 2.2 below, the Mistral Model and any Derivatives made by or for Mistral
52
+ AI and to create Derivatives of the Mistral Model.
53
+
54
+ **2.2. Distribution of Mistral Model and Derivatives made by or for Mistral AI.**
55
+ Subject to Section 3 below, You may Distribute copies of the Mistral Model and/or
56
+ Derivatives made by or for Mistral AI, under the following conditions: You must
57
+ make available a copy of this Agreement to third-party recipients of the Mistral
58
+ Models and/or Derivatives made by or for Mistral AI you Distribute, it being specified
59
+ that any rights to use the Mistral Models and/or Derivatives made by or for Mistral
60
+ AI shall be directly granted by Mistral AI to said third-party recipients pursuant
61
+ to the Mistral AI Research License agreement executed between these parties; You
62
+ must retain in all copies of the Mistral Models the following attribution notice
63
+ within a "Notice" text file distributed as part of such copies: "Licensed by Mistral
64
+ AI under the Mistral AI Research License".
65
+
66
+ **2.3. Distribution of Derivatives made by or for You.** Subject to Section 3 below,
67
+ You may Distribute any Derivatives made by or for You under additional or different
68
+ terms and conditions, provided that: In any event, the use and modification of Mistral
69
+ Model and/or Derivatives made by or for Mistral AI shall remain governed by the
70
+ terms and conditions of this Agreement; You include in any such Derivatives made
71
+ by or for You prominent notices stating that You modified the concerned Mistral
72
+ Model; and Any terms and conditions You impose on any third-party recipients relating
73
+ to Derivatives made by or for You shall neither limit such third-party recipients''
74
+ use of the Mistral Model or any Derivatives made by or for Mistral AI in accordance
75
+ with the Mistral AI Research License nor conflict with any of its terms and conditions.
76
+
77
+ ## 3. Limitations
78
+
79
+ **3.1. Misrepresentation.** You must not misrepresent or imply, through any means,
80
+ that the Derivatives made by or for You and/or any modified version of the Mistral
81
+ Model You Distribute under your name and responsibility is an official product of
82
+ Mistral AI or has been endorsed, approved or validated by Mistral AI, unless You
83
+ are authorized by Us to do so in writing.
84
+
85
+ **3.2. Usage Limitation.** You shall only use the Mistral Models, Derivatives (whether
86
+ or not created by Mistral AI) and Outputs for Research Purposes.
87
+
88
+ ## 4. Intellectual Property
89
+
90
+ **4.1. Trademarks.** No trademark licenses are granted under this Agreement, and
91
+ in connection with the Mistral Models, You may not use any name or mark owned by
92
+ or associated with Mistral AI or any of its affiliates, except (i) as required for
93
+ reasonable and customary use in describing and Distributing the Mistral Models and
94
+ Derivatives made by or for Mistral AI and (ii) for attribution purposes as required
95
+ by this Agreement.
96
+
97
+ **4.2. Outputs.** We claim no ownership rights in and to the Outputs. You are solely
98
+ responsible for the Outputs You generate and their subsequent uses in accordance
99
+ with this Agreement. Any Outputs shall be subject to the restrictions set out in
100
+ Section 3 of this Agreement.
101
+
102
+ **4.3. Derivatives.** By entering into this Agreement, You accept that any Derivatives
103
+ that You may create or that may be created for You shall be subject to the restrictions
104
+ set out in Section 3 of this Agreement.
105
+
106
+ ## 5. Liability
107
+
108
+ **5.1. Limitation of liability.** In no event, unless required by applicable law
109
+ (such as deliberate and grossly negligent acts) or agreed to in writing, shall Mistral
110
+ AI be liable to You for damages, including any direct, indirect, special, incidental,
111
+ or consequential damages of any character arising as a result of this Agreement
112
+ or out of the use or inability to use the Mistral Models and Derivatives (including
113
+ but not limited to damages for loss of data, loss of goodwill, loss of expected
114
+ profit or savings, work stoppage, computer failure or malfunction, or any damage
115
+ caused by malware or security breaches), even if Mistral AI has been advised of
116
+ the possibility of such damages.
117
+
118
+ **5.2. Indemnification.** You agree to indemnify and hold harmless Mistral AI from
119
+ and against any claims, damages, or losses arising out of or related to Your use
120
+ or Distribution of the Mistral Models and Derivatives.
121
+
122
+ ## 6. Warranty
123
+
124
+ **6.1. Disclaimer.** Unless required by applicable law or prior agreed to by Mistral
125
+ AI in writing, Mistral AI provides the Mistral Models and Derivatives on an "AS
126
+ IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied,
127
+ including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT,
128
+ MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. Mistral AI does not represent
129
+ nor warrant that the Mistral Models and Derivatives will be error-free, meet Your
130
+ or any third party''s requirements, be secure or will allow You or any third party
131
+ to achieve any kind of result or generate any kind of content. You are solely responsible
132
+ for determining the appropriateness of using or Distributing the Mistral Models
133
+ and Derivatives and assume any risks associated with Your exercise of rights under
134
+ this Agreement.
135
+
136
+ ## 7. Termination
137
+
138
+ **7.1. Term.** This Agreement is effective as of the date of your acceptance of
139
+ this Agreement or access to the concerned Mistral Models or Derivatives and will
140
+ continue until terminated in accordance with the following terms.
141
+
142
+ **7.2. Termination.** Mistral AI may terminate this Agreement at any time if You
143
+ are in breach of this Agreement. Upon termination of this Agreement, You must cease
144
+ to use all Mistral Models and Derivatives and shall permanently delete any copy
145
+ thereof. The following provisions, in their relevant parts, will survive any termination
146
+ or expiration of this Agreement, each for the duration necessary to achieve its
147
+ own intended purpose (e.g. the liability provision will survive until the end of
148
+ the applicable limitation period):Sections 5 (Liability), 6(Warranty), 7 (Termination)
149
+ and 8 (General Provisions).
150
+
151
+ **7.3. Litigation.** If You initiate any legal action or proceedings against Us
152
+ or any other entity (including a cross-claim or counterclaim in a lawsuit), alleging
153
+ that the Model or a Derivative, or any part thereof, infringe upon intellectual
154
+ property or other rights owned or licensable by You, then any licenses granted to
155
+ You under this Agreement will immediately terminate as of the date such legal action
156
+ or claim is filed or initiated.
157
+
158
+ ## 8. General provisions
159
+
160
+ **8.1. Governing laws.** This Agreement will be governed by the laws of France,
161
+ without regard to choice of law principles, and the UN Convention on Contracts for
162
+ the International Sale of Goods does not apply to this Agreement.
163
+
164
+ **8.2. Competent jurisdiction.** The courts of Paris shall have exclusive jurisdiction
165
+ of any dispute arising out of this Agreement.
166
+
167
+ **8.3. Severability.** If any provision of this Agreement is held to be invalid,
168
+ illegal or unenforceable, the remaining provisions shall be unaffected thereby and
169
+ remain valid as if such provision had not been set forth herein.
170
+
171
+ ## 9. Definitions
172
+
173
+ "Agreement": means this Mistral AI Research License agreement governing the access,
174
+ use, and Distribution of the Mistral Models, Derivatives and Outputs.
175
+
176
+ "Derivative": means any (i) modified version of the Mistral Model (including but
177
+ not limited to any customized or fine-tuned version thereof), (ii) work based on
178
+ the Mistral Model, or (iii) any other derivative work thereof.
179
+
180
+ "Distribution", "Distributing", "Distribute" or "Distributed": means supplying,
181
+ providing or making available, by any means, a copy of the Mistral Models and/or
182
+ the Derivatives as the case may be, subject to Section 3 of this Agreement.
183
+
184
+ "Mistral AI", "We" or "Us": means Mistral AI, a French société par actions simplifiée
185
+ registered in the Paris commercial registry under the number 952 418 325, and having
186
+ its registered seat at 15, rue des Halles, 75001 Paris.
187
+
188
+ "Mistral Model": means the foundational large language model(s), and its elements
189
+ which include algorithms, software, instructed checkpoints, parameters, source code
190
+ (inference code, evaluation code and, if applicable, fine-tuning code) and any other
191
+ elements associated thereto made available by Mistral AI under this Agreement, including,
192
+ if any, the technical documentation, manuals and instructions for the use and operation
193
+ thereof.
194
+
195
+ "Research Purposes": means any use of a Mistral Model, Derivative, or Output that
196
+ is solely for (a) personal, scientific or academic research, and (b) for non-profit
197
+ and non-commercial purposes, and not directly or indirectly connected to any commercial
198
+ activities or business operations. For illustration purposes, Research Purposes
199
+ does not include (1) any usage of the Mistral Model, Derivative or Output by individuals
200
+ or contractors employed in or engaged by companies in the context of (a) their daily
201
+ tasks, or (b) any activity (including but not limited to any testing or proof-of-concept)
202
+ that is intended to generate revenue, nor (2) any Distribution by a commercial entity
203
+ of the Mistral Model, Derivative or Output whether in return for payment or free
204
+ of charge, in any medium or form, including but not limited to through a hosted
205
+ or managed service (e.g. SaaS, cloud instances, etc.), or behind a software layer.
206
+
207
+ "Outputs": means any content generated by the operation of the Mistral Models or
208
+ the Derivatives from a prompt (i.e., text instructions) provided by users. For
209
+ the avoidance of doubt, Outputs do not include any components of a Mistral Models,
210
+ such as any fine-tuned versions of the Mistral Models, the weights, or parameters.
211
+
212
+ "You": means the individual or entity entering into this Agreement with Mistral
213
+ AI.
214
+
215
+
216
+ *Mistral AI processes your personal data below to provide the model and enforce
217
+ its license. If you are affiliated with a commercial entity, we may also send you
218
+ communications about our models. For more information on your rights and data handling,
219
+ please see our <a href="https://mistral.ai/terms/">privacy policy</a>.*'
220
+ extra_gated_fields:
221
+ First Name: text
222
+ Last Name: text
223
+ Country: country
224
+ Affiliation: text
225
+ Job title: text
226
+ I understand that I can only use the model, any derivative versions and their outputs for non-commercial research purposes: checkbox
227
+ ? I understand that if I am a commercial entity, I am not permitted to use or distribute
228
+ the model internally or externally, or expose it in my own offerings without a
229
+ commercial license
230
+ : checkbox
231
+ ? I understand that if I upload the model, or any derivative version, on any platform,
232
+ I must include the Mistral Research License
233
+ : checkbox
234
+ ? I understand that for commercial use of the model, I can contact Mistral or use
235
+ the Mistral AI API on la Plateforme or any of our cloud provider partners
236
+ : checkbox
237
+ ? By clicking Submit below I accept the terms of the license and acknowledge that
238
+ the information I provide will be collected stored processed and shared in accordance
239
+ with the Mistral Privacy Policy
240
+ : checkbox
241
+ geo: ip_location
242
+ extra_gated_description: Mistral AI processes your personal data below to provide
243
+ the model and enforce its license. If you are affiliated with a commercial entity,
244
+ we may also send you communications about our models. For more information on your
245
+ rights and data handling, please see our <a href="https://mistral.ai/terms/">privacy
246
+ policy</a>.
247
+ extra_gated_button_content: Submit
248
+ ---
249
+
250
+ # TouchNight/Ministral-8B-Instruct-2410-HF-Q5_K_M-GGUF
251
+ This model was converted to GGUF format from [`TouchNight/Ministral-8B-Instruct-2410-HF`](https://huggingface.co/TouchNight/Ministral-8B-Instruct-2410-HF) using llama.cpp via the ggml.ai's [GGUF-my-repo](https://huggingface.co/spaces/ggml-org/gguf-my-repo) space.
252
+ Refer to the [original model card](https://huggingface.co/TouchNight/Ministral-8B-Instruct-2410-HF) for more details on the model.
253
+
254
+ ## Use with llama.cpp
255
+ Install llama.cpp through brew (works on Mac and Linux)
256
+
257
+ ```bash
258
+ brew install llama.cpp
259
+
260
+ ```
261
+ Invoke the llama.cpp server or the CLI.
262
+
263
+ ### CLI:
264
+ ```bash
265
+ llama-cli --hf-repo TouchNight/Ministral-8B-Instruct-2410-HF-Q5_K_M-GGUF --hf-file ministral-8b-instruct-2410-hf-q5_k_m.gguf -p "The meaning to life and the universe is"
266
+ ```
267
+
268
+ ### Server:
269
+ ```bash
270
+ llama-server --hf-repo TouchNight/Ministral-8B-Instruct-2410-HF-Q5_K_M-GGUF --hf-file ministral-8b-instruct-2410-hf-q5_k_m.gguf -c 2048
271
+ ```
272
+
273
+ Note: You can also use this checkpoint directly through the [usage steps](https://github.com/ggerganov/llama.cpp?tab=readme-ov-file#usage) listed in the Llama.cpp repo as well.
274
+
275
+ Step 1: Clone llama.cpp from GitHub.
276
+ ```
277
+ git clone https://github.com/ggerganov/llama.cpp
278
+ ```
279
+
280
+ Step 2: Move into the llama.cpp folder and build it with `LLAMA_CURL=1` flag along with other hardware-specific flags (for ex: LLAMA_CUDA=1 for Nvidia GPUs on Linux).
281
+ ```
282
+ cd llama.cpp && LLAMA_CURL=1 make
283
+ ```
284
+
285
+ Step 3: Run inference through the main binary.
286
+ ```
287
+ ./llama-cli --hf-repo TouchNight/Ministral-8B-Instruct-2410-HF-Q5_K_M-GGUF --hf-file ministral-8b-instruct-2410-hf-q5_k_m.gguf -p "The meaning to life and the universe is"
288
+ ```
289
+ or
290
+ ```
291
+ ./llama-server --hf-repo TouchNight/Ministral-8B-Instruct-2410-HF-Q5_K_M-GGUF --hf-file ministral-8b-instruct-2410-hf-q5_k_m.gguf -c 2048
292
+ ```