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