alexmarques commited on
Commit
1091ecd
·
verified ·
1 Parent(s): 7d5ca2a

Add files using upload-large-folder tool

Browse files
Files changed (50) hide show
  1. .gitattributes +2 -0
  2. README.md +438 -0
  3. SYSTEM_PROMPT.txt +28 -0
  4. chat_template.jinja +121 -0
  5. consolidated-00005-of-00272.safetensors +3 -0
  6. consolidated-00031-of-00272.safetensors +3 -0
  7. consolidated-00032-of-00272.safetensors +3 -0
  8. consolidated-00034-of-00272.safetensors +3 -0
  9. consolidated-00037-of-00272.safetensors +3 -0
  10. consolidated-00044-of-00272.safetensors +3 -0
  11. consolidated-00048-of-00272.safetensors +3 -0
  12. consolidated-00070-of-00272.safetensors +3 -0
  13. consolidated-00073-of-00272.safetensors +3 -0
  14. consolidated-00075-of-00272.safetensors +3 -0
  15. consolidated-00076-of-00272.safetensors +3 -0
  16. consolidated-00080-of-00272.safetensors +3 -0
  17. consolidated-00083-of-00272.safetensors +3 -0
  18. consolidated-00085-of-00272.safetensors +3 -0
  19. consolidated-00086-of-00272.safetensors +3 -0
  20. consolidated-00110-of-00272.safetensors +3 -0
  21. consolidated-00113-of-00272.safetensors +3 -0
  22. consolidated-00115-of-00272.safetensors +3 -0
  23. consolidated-00116-of-00272.safetensors +3 -0
  24. consolidated-00124-of-00272.safetensors +3 -0
  25. consolidated-00128-of-00272.safetensors +3 -0
  26. consolidated-00151-of-00272.safetensors +3 -0
  27. consolidated-00152-of-00272.safetensors +3 -0
  28. consolidated-00154-of-00272.safetensors +3 -0
  29. consolidated-00157-of-00272.safetensors +3 -0
  30. consolidated-00165-of-00272.safetensors +3 -0
  31. consolidated-00169-of-00272.safetensors +3 -0
  32. consolidated-00196-of-00272.safetensors +3 -0
  33. consolidated-00199-of-00272.safetensors +3 -0
  34. consolidated-00201-of-00272.safetensors +3 -0
  35. consolidated-00202-of-00272.safetensors +3 -0
  36. consolidated-00204-of-00272.safetensors +3 -0
  37. consolidated-00207-of-00272.safetensors +3 -0
  38. consolidated-00233-of-00272.safetensors +3 -0
  39. consolidated-00239-of-00272.safetensors +3 -0
  40. consolidated-00240-of-00272.safetensors +3 -0
  41. consolidated-00243-of-00272.safetensors +3 -0
  42. consolidated-00245-of-00272.safetensors +3 -0
  43. consolidated-00246-of-00272.safetensors +3 -0
  44. consolidated-00272-of-00272.safetensors +3 -0
  45. consolidated.safetensors.index.json +0 -0
  46. params.json +116 -0
  47. processor_config.json +42 -0
  48. special_tokens_map.json +0 -0
  49. tekken.json +3 -0
  50. tokenizer_config.json +0 -0
.gitattributes CHANGED
@@ -33,3 +33,5 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ tekken.json filter=lfs diff=lfs merge=lfs -text
37
+ tokenizer.json filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,438 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: vllm
3
+ language:
4
+ - en
5
+ - fr
6
+ - es
7
+ - de
8
+ - it
9
+ - pt
10
+ - nl
11
+ - zh
12
+ - ja
13
+ - ko
14
+ - ar
15
+ license: apache-2.0
16
+ inference: false
17
+ extra_gated_description: >-
18
+ If you want to learn more about how we process your personal data, please read
19
+ our <a href="https://mistral.ai/terms/">Privacy Policy</a>.
20
+ base_model:
21
+ - mistralai/Mistral-Large-3-675B-Base-2512
22
+ tags:
23
+ - mistral-common
24
+ - compressed-tensors
25
+ ---
26
+
27
+ # Mistral Large 3 675B Instruct 2512
28
+ From our family of large models, **Mistral Large 3** is a state-of-the-art general-purpose **Multimodal granular Mixture-of-Experts** model with **41B active parameters** and **675B total parameters** trained from the ground up with 3000 H200s.
29
+
30
+ This model is the instruct post-trained version in **FP8**, fine-tuned for instruction tasks, making it ideal for chat, agentic and instruction based use cases.
31
+ Designed for reliability and long-context comprehension - It is engineered for production-grade assistants, retrieval-augmented systems, scientific workloads, and complex enterprise workflows.
32
+
33
+ Learn more in our blog post [here](https://mistral.ai/news/mistral-3).
34
+
35
+ Mistral Large 3 is deployable on-premises in:
36
+ - **FP8** on a single node of B200s or H200s.
37
+ - [NVFP4](https://huggingface.co/mistralai/Mistral-Large-3-675B-Instruct-2512-NVFP4) on a single node of H100s or A100s.
38
+
39
+ We provide a [BF16](https://huggingface.co/mistralai/Mistral-Large-3-675B-Instruct-2512-BF16) version if needed.
40
+
41
+ ## Key Features
42
+ Mistral Large 3 consists of two main architectural components:
43
+ - **A Granular MoE Language Model with 673B params and 39B active**
44
+ - **A 2.5B Vision Encoder**
45
+
46
+ The Mistral Large 3 Instruct model offers the following capabilities:
47
+ - **Vision**: Enables the model to analyze images and provide insights based on visual content, in addition to text.
48
+ - **Multilingual**: Supports dozens of languages, including English, French, Spanish, German, Italian, Portuguese, Dutch, Chinese, Japanese, Korean, Arabic.
49
+ - **System Prompt**: Maintains strong adherence and support for system prompts.
50
+ - **Agentic**: Offers best-in-class agentic capabilities with native function calling and JSON outputting.
51
+ - **Frontier**: Delivers best-in-class performance.
52
+ - **Apache 2.0 License**: Open-source license allowing usage and modification for both commercial and non-commercial purposes.
53
+ - **Large Context Window**: Supports a 256k context window.
54
+
55
+ ## Use Cases
56
+ With powerful long-context performance, stable and consistent cross-domain behavior, Mistral Large 3 is perfect for:
57
+ - Long Document Understanding
58
+ - Powerful Daily-Driver AI Assistants
59
+ - State-of-the-Art Agentic and Tool-Use Capabilities
60
+ - Enterprise Knowledge Work
61
+ - General Coding Assistant
62
+
63
+ And enterprise-grade use cases requiring frontier capabilities.
64
+
65
+ ## Recommended Settings
66
+
67
+ We recommend deploying Large 3 in a client-server configuration with the following best practices:
68
+
69
+ - **System Prompt**: Define a clear environment and use case, including guidance on how to effectively leverage tools in agentic systems.
70
+ - **Sampling Parameters**: Use a temperature below 0.1 for daily-driver and production environments ; Higher temperatures may be explored for creative use cases - developers are encouraged to experiment with alternative settings.
71
+ - **Tools**: Keep the set of tools well-defined and limit their number to the minimum required for the use case - Avoiding overloading the model with an excessive number of tools.
72
+ - **Vision**: When deploying with vision capabilities, we recommend maintaining an aspect ratio close to 1:1 (width-to-height) for images. Avoiding the use of overly thin or wide images - crop them as needed to ensure optimal performance.
73
+
74
+ ### Known Issues / Limitations
75
+
76
+ - **Not a dedicated reasoning model**: Dedicated reasoning models can outperform Mistral Large 3 in strict reasoning use cases.
77
+ - **Behind vision-first models in multimodal tasks**: Mistral Large 3 can lag behind models optimized for vision tasks and use cases.
78
+ - **Complex deployment**: Due to its large size and architecture, the model can be challenging to deploy efficiently with constrained resources or at scale.
79
+
80
+ ## Benchmark Results
81
+
82
+ We compare Mistral Large 3 to similar sized models.
83
+
84
+ ![image](https://cdn-uploads.huggingface.co/production/uploads/64161701107962562e9b1006/IrPlvUUD-5-Phwi9QSevh.png)
85
+
86
+ ![image](https://cdn-uploads.huggingface.co/production/uploads/64161701107962562e9b1006/fDFEymz4HZNsqFARB4u9Y.png)
87
+
88
+ ![image](https://cdn-uploads.huggingface.co/production/uploads/64161701107962562e9b1006/eMdaAPcjOo8VyoGyFKxrE.png)
89
+
90
+ ## Usage
91
+
92
+ The model can be used with the following frameworks;
93
+ - [`vllm`](https://github.com/vllm-project/vllm): See [here](#vllm)
94
+
95
+ > [!Note]
96
+ > We sadly didn't have enough time to add Mistral Large 3 to transformers, but we would be very happy for a community contribution by opening a PR to [huggingface/transformers](https://github.com/huggingface/transformers).
97
+
98
+ ### vLLM
99
+
100
+ We recommend using this model with [vLLM](https://github.com/vllm-project/vllm).
101
+
102
+ #### Installation
103
+
104
+ Make sure to install **vllm >= 1.12.0**:
105
+
106
+ ```
107
+ pip install vllm --upgrade
108
+ ```
109
+
110
+ Doing so should automatically install [`mistral_common >= 1.8.6`](https://github.com/mistralai/mistral-common/releases/tag/v1.8.6).
111
+
112
+ To check:
113
+ ```
114
+ python -c "import mistral_common; print(mistral_common.__version__)"
115
+ ```
116
+
117
+ You can also make use of a ready-to-go [docker image](https://github.com/vllm-project/vllm/blob/main/docker/Dockerfile) or on the [docker hub](https://hub.docker.com/layers/vllm/vllm-openai/latest).
118
+
119
+ #### Serve
120
+
121
+ The Mistral Large 3 Instruct FP8 format can be used on one 8xH200 node. We recommend to use this format if you plan to fine-tuning as it can be more precise than NVFP4 in some situations.
122
+
123
+ **Simple**
124
+
125
+ A simple launch command is:
126
+
127
+ ```bash
128
+ vllm serve mistralai/Mistral-Large-3-675B-Instruct-2512 \
129
+ --max-model-len 262144 --tensor-parallel-size 8 \
130
+ --tokenizer_mode mistral --config_format mistral --load_format mistral \
131
+ --enable-auto-tool-choice --tool-call-parser mistral
132
+ ```
133
+
134
+ Key parameter notes:
135
+
136
+ * enable-auto-tool-choice: Required when enabling tool usage.
137
+ * tool-call-parser mistral: Required when enabling tool usage.
138
+
139
+
140
+ Additional flags:
141
+
142
+ * You can set `--max-model-len` to preserve memory. By default it is set to `262144` which is quite large but not necessary for most scenarios.
143
+ * You can set `--max-num-batched-tokens` to balance throughput and latency, higher means higher throughput but higher latency.
144
+
145
+ **Accelerated with speculative decoding**
146
+
147
+ For maximum performance we recommend serving the checkpoint with its customized draft model [Mistral-Large-3-675B-Instruct-2512-Eagle](https://huggingface.co/mistralai/Mistral-Large-3-675B-Instruct-2512-Eagle):
148
+
149
+ ```bash
150
+ vllm serve mistralai/Mistral-Large-3-675B-Instruct-2512 \
151
+ --tensor-parallel-size 8 \
152
+ --load-format mistral \
153
+ --tokenizer-mode mistral \
154
+ --config-format mistral \
155
+ --enable-auto-tool-choice \
156
+ --tool-call-parser mistral \
157
+ --limit-mm-per-prompt '{"image": 10}' \
158
+ --speculative_config '{
159
+ "model": "mistralai/Mistral-Large-3-675B-Instruct-2512-Eagle",
160
+ "num_speculative_tokens": 3,
161
+ "method": "eagle",
162
+ "max_model_len": "16384"
163
+ }'
164
+ ```
165
+
166
+ For more information on the draft model, please have a look at [Mistral-Large-3-675B-Instruct-2512-Eagle](https://huggingface.co/mistralai/Mistral-Large-3-675B-Instruct-2512-Eagle).
167
+
168
+
169
+ #### Usage of the model
170
+
171
+ Here we asumme that the model `mistralai/Mistral-Large-3-675B-Instruct-2512` is served and you can ping it to the domain `localhost` with the port `8000` which is the default for vLLM.
172
+
173
+ <details>
174
+ <summary>Vision Reasoning</summary>
175
+
176
+ Let's see if Mistral Large 3 knows when to pick a fight !
177
+
178
+ ```python
179
+ from datetime import datetime, timedelta
180
+
181
+ from openai import OpenAI
182
+ from huggingface_hub import hf_hub_download
183
+
184
+ # Modify OpenAI's API key and API base to use vLLM's API server.
185
+ openai_api_key = "EMPTY"
186
+ openai_api_base = "http://localhost:8000/v1"
187
+
188
+ TEMP = 0.15
189
+ MAX_TOK = 262144
190
+
191
+ client = OpenAI(
192
+ api_key=openai_api_key,
193
+ base_url=openai_api_base,
194
+ )
195
+
196
+ models = client.models.list()
197
+ model = models.data[0].id
198
+
199
+
200
+ def load_system_prompt(repo_id: str, filename: str) -> str:
201
+ file_path = hf_hub_download(repo_id=repo_id, filename=filename)
202
+ with open(file_path, "r") as file:
203
+ system_prompt = file.read()
204
+ today = datetime.today().strftime("%Y-%m-%d")
205
+ yesterday = (datetime.today() - timedelta(days=1)).strftime("%Y-%m-%d")
206
+ model_name = repo_id.split("/")[-1]
207
+ return system_prompt.format(name=model_name, today=today, yesterday=yesterday)
208
+
209
+
210
+ SYSTEM_PROMPT = load_system_prompt(model, "SYSTEM_PROMPT.txt")
211
+ image_url = "https://static.wikia.nocookie.net/essentialsdocs/images/7/70/Battle.png/revision/latest?cb=20220523172438"
212
+
213
+ messages = [
214
+ {"role": "system", "content": SYSTEM_PROMPT},
215
+ {
216
+ "role": "user",
217
+ "content": [
218
+ {
219
+ "type": "text",
220
+ "text": "What action do you think I should take in this situation? List all the possible actions and explain why you think they are good or bad.",
221
+ },
222
+ {"type": "image_url", "image_url": {"url": image_url}},
223
+ ],
224
+ },
225
+ ]
226
+
227
+
228
+ response = client.chat.completions.create(
229
+ model=model,
230
+ messages=messages,
231
+ temperature=TEMP,
232
+ max_tokens=MAX_TOK,
233
+ )
234
+
235
+ print(response.choices[0].message.content)
236
+ ```
237
+ </details>
238
+
239
+ <details>
240
+ <summary>Function Calling</summary>
241
+
242
+ Let's solve some equations thanks to our simple Python calculator tool.
243
+
244
+ ```python
245
+ import json
246
+ from openai import OpenAI
247
+ from huggingface_hub import hf_hub_download
248
+
249
+ # Modify OpenAI's API key and API base to use vLLM's API server.
250
+ openai_api_key = "EMPTY"
251
+ openai_api_base = "http://localhost:8000/v1"
252
+
253
+ TEMP = 0.15
254
+ MAX_TOK = 262144
255
+
256
+ client = OpenAI(
257
+ api_key=openai_api_key,
258
+ base_url=openai_api_base,
259
+ )
260
+
261
+ models = client.models.list()
262
+ model = models.data[0].id
263
+
264
+
265
+ def load_system_prompt(repo_id: str, filename: str) -> str:
266
+ file_path = hf_hub_download(repo_id=repo_id, filename=filename)
267
+ with open(file_path, "r") as file:
268
+ system_prompt = file.read()
269
+ return system_prompt
270
+
271
+
272
+ SYSTEM_PROMPT = load_system_prompt(model, "SYSTEM_PROMPT.txt")
273
+
274
+ image_url = "https://math-coaching.com/img/fiche/46/expressions-mathematiques.jpg"
275
+
276
+
277
+ def my_calculator(expression: str) -> str:
278
+ return str(eval(expression))
279
+
280
+
281
+ tools = [
282
+ {
283
+ "type": "function",
284
+ "function": {
285
+ "name": "my_calculator",
286
+ "description": "A calculator that can evaluate a mathematical equation and compute its results.",
287
+ "parameters": {
288
+ "type": "object",
289
+ "properties": {
290
+ "expression": {
291
+ "type": "string",
292
+ "description": "The mathematical expression to evaluate.",
293
+ },
294
+ },
295
+ "required": ["expression"],
296
+ },
297
+ },
298
+ },
299
+ {
300
+ "type": "function",
301
+ "function": {
302
+ "name": "rewrite",
303
+ "description": "Rewrite a given text for improved clarity",
304
+ "parameters": {
305
+ "type": "object",
306
+ "properties": {
307
+ "text": {
308
+ "type": "string",
309
+ "description": "The input text to rewrite",
310
+ }
311
+ },
312
+ },
313
+ },
314
+ },
315
+ ]
316
+
317
+ messages = [
318
+ {"role": "system", "content": SYSTEM_PROMPT},
319
+ {
320
+ "role": "user",
321
+ "content": [
322
+ {
323
+ "type": "text",
324
+ "text": "Thanks to your calculator, compute the results for the equations that involve numbers displayed in the image.",
325
+ },
326
+ {
327
+ "type": "image_url",
328
+ "image_url": {
329
+ "url": image_url,
330
+ },
331
+ },
332
+ ],
333
+ },
334
+ ]
335
+
336
+ response = client.chat.completions.create(
337
+ model=model,
338
+ messages=messages,
339
+ temperature=TEMP,
340
+ max_tokens=MAX_TOK,
341
+ tools=tools,
342
+ tool_choice="auto",
343
+ )
344
+
345
+ tool_calls = response.choices[0].message.tool_calls
346
+
347
+ results = []
348
+ for tool_call in tool_calls:
349
+ function_name = tool_call.function.name
350
+ function_args = tool_call.function.arguments
351
+ if function_name == "my_calculator":
352
+ result = my_calculator(**json.loads(function_args))
353
+ results.append(result)
354
+
355
+ messages.append({"role": "assistant", "tool_calls": tool_calls})
356
+ for tool_call, result in zip(tool_calls, results):
357
+ messages.append(
358
+ {
359
+ "role": "tool",
360
+ "tool_call_id": tool_call.id,
361
+ "name": tool_call.function.name,
362
+ "content": result,
363
+ }
364
+ )
365
+
366
+
367
+ response = client.chat.completions.create(
368
+ model=model,
369
+ messages=messages,
370
+ temperature=TEMP,
371
+ max_tokens=MAX_TOK,
372
+ )
373
+
374
+ print(response.choices[0].message.content)
375
+ ```
376
+
377
+ </details>
378
+
379
+ <details>
380
+ <summary>Text-Only Request</summary>
381
+
382
+ Mistral Large 3 can follow your instructions down to the letter.
383
+
384
+ ```python
385
+ from openai import OpenAI
386
+ from huggingface_hub import hf_hub_download
387
+
388
+ # Modify OpenAI's API key and API base to use vLLM's API server.
389
+ openai_api_key = "EMPTY"
390
+ openai_api_base = "http://localhost:8000/v1"
391
+
392
+ TEMP = 0.15
393
+ MAX_TOK = 262144
394
+
395
+ client = OpenAI(
396
+ api_key=openai_api_key,
397
+ base_url=openai_api_base,
398
+ )
399
+
400
+ models = client.models.list()
401
+ model = models.data[0].id
402
+
403
+
404
+ def load_system_prompt(repo_id: str, filename: str) -> str:
405
+ file_path = hf_hub_download(repo_id=repo_id, filename=filename)
406
+ with open(file_path, "r") as file:
407
+ system_prompt = file.read()
408
+ return system_prompt
409
+
410
+
411
+ SYSTEM_PROMPT = load_system_prompt(model, "SYSTEM_PROMPT.txt")
412
+
413
+ messages = [
414
+ {"role": "system", "content": SYSTEM_PROMPT},
415
+ {
416
+ "role": "user",
417
+ "content": "Write me a sentence where every word starts with the next letter in the alphabet - start with 'a' and end with 'z'.",
418
+ },
419
+ ]
420
+
421
+ response = client.chat.completions.create(
422
+ model=model,
423
+ messages=messages,
424
+ temperature=TEMP,
425
+ max_tokens=MAX_TOK,
426
+ )
427
+
428
+ assistant_message = response.choices[0].message.content
429
+ print(assistant_message)
430
+ ```
431
+
432
+ </details>
433
+
434
+ ## License
435
+
436
+ This model is licensed under the [Apache 2.0 License](https://www.apache.org/licenses/LICENSE-2.0.txt).
437
+
438
+ *You must not use this model in a manner that infringes, misappropriates, or otherwise violates any third party’s rights, including intellectual property rights.*
SYSTEM_PROMPT.txt ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ You are Mistral-Large-3-675B-Instruct-2512, a Large Language Model (LLM) created by Mistral AI, a French startup headquartered in Paris.
2
+ You power an AI assistant called Le Chat.
3
+ Your knowledge base was last updated on 2023-10-01.
4
+ The current date is {today}.
5
+
6
+ When you're not sure about some information or when the user's request requires up-to-date or specific data, you must use the available tools to fetch the information. Do not hesitate to use tools whenever they can provide a more accurate or complete response. If no relevant tools are available, then clearly state that you don't have the information and avoid making up anything.
7
+ If the user's question is not clear, ambiguous, or does not provide enough context for you to accurately answer the question, you do not try to answer it right away and you rather ask the user to clarify their request (e.g. "What are some good restaurants around me?" => "Where are you?" or "When is the next flight to Tokyo" => "Where do you travel from?").
8
+ You are always very attentive to dates, in particular you try to resolve dates (e.g. "yesterday" is {yesterday}) and when asked about information at specific dates, you discard information that is at another date.
9
+ You follow these instructions in all languages, and always respond to the user in the language they use or request.
10
+ Next sections describe the capabilities that you have.
11
+
12
+ # WEB BROWSING INSTRUCTIONS
13
+
14
+ You cannot perform any web search or access internet to open URLs, links etc. If it seems like the user is expecting you to do so, you clarify the situation and ask the user to copy paste the text directly in the chat.
15
+
16
+ # MULTI-MODAL INSTRUCTIONS
17
+
18
+ You have the ability to read images, but you cannot generate images. You also cannot read nor transcribe audio files or videos.
19
+
20
+ # TOOL CALLING INSTRUCTIONS
21
+
22
+ You may have access to tools that you can use to fetch information or perform actions. You must use these tools in the following situations:
23
+
24
+ 1. When the request requires up-to-date information.
25
+ 2. When the request requires specific data that you do not have in your knowledge base.
26
+ 3. When the request involves actions that you cannot perform without tools.
27
+
28
+ Always prioritize using tools to provide the most accurate and helpful response. If tools are not available, inform the user that you cannot perform the requested action at the moment.
chat_template.jinja ADDED
@@ -0,0 +1,121 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {#- Default system message if no system prompt is passed. #}
2
+ {%- set default_system_message = 'You are Mistral-Large-3-675B-Instruct-2512, a Large Language Model (LLM) created by Mistral AI, a French startup headquartered in Paris.\nYou power an AI assistant called Le Chat.\nYour knowledge base was last updated on 2023-10-01.\nThe current date is {today}.\n\nWhen you\'re not sure about some information or when the user\'s request requires up-to-date or specific data, you must use the available tools to fetch the information. Do not hesitate to use tools whenever they can provide a more accurate or complete response. If no relevant tools are available, then clearly state that you don\'t have the information and avoid making up anything.\nIf the user\'s question is not clear, ambiguous, or does not provide enough context for you to accurately answer the question, you do not try to answer it right away and you rather ask the user to clarify their request (e.g. "What are some good restaurants around me?" => "Where are you?" or "When is the next flight to Tokyo" => "Where do you travel from?").\nYou are always very attentive to dates, in particular you try to resolve dates (e.g. "yesterday" is {yesterday}) and when asked about information at specific dates, you discard information that is at another date.\nYou follow these instructions in all languages, and always respond to the user in the language they use or request.\nNext sections describe the capabilities that you have.\n\n# WEB BROWSING INSTRUCTIONS\n\nYou cannot perform any web search or access internet to open URLs, links etc. If it seems like the user is expecting you to do so, you clarify the situation and ask the user to copy paste the text directly in the chat.\n\n# MULTI-MODAL INSTRUCTIONS\n\nYou have the ability to read images, but you cannot generate images. You also cannot transcribe audio files or videos.\nYou cannot read nor transcribe audio files or videos.\n\n# TOOL CALLING INSTRUCTIONS\n\nYou may have access to tools that you can use to fetch information or perform actions. You must use these tools in the following situations:\n\n1. When the request requires up-to-date information.\n2. When the request requires specific data that you do not have in your knowledge base.\n3. When the request involves actions that you cannot perform without tools.\n\nAlways prioritize using tools to provide the most accurate and helpful response. If tools are not available, inform the user that you cannot perform the requested action at the moment.' %}
3
+
4
+ {#- Begin of sequence token. #}
5
+ {{- bos_token }}
6
+
7
+ {#- Handle system prompt if it exists. #}
8
+ {#- System prompt supports text content or text chunks. #}
9
+ {%- if messages[0]['role'] == 'system' %}
10
+ {{- '[SYSTEM_PROMPT]' -}}
11
+ {%- if messages[0]['content'] is string %}
12
+ {{- messages[0]['content'] -}}
13
+ {%- else %}
14
+ {%- for block in messages[0]['content'] %}
15
+ {%- if block['type'] == 'text' %}
16
+ {{- block['text'] }}
17
+ {%- else %}
18
+ {{- raise_exception('Only text chunks are supported in system message contents.') }}
19
+ {%- endif %}
20
+ {%- endfor %}
21
+ {%- endif %}
22
+ {{- '[/SYSTEM_PROMPT]' -}}
23
+ {%- set loop_messages = messages[1:] %}
24
+ {%- else %}
25
+ {%- set loop_messages = messages %}
26
+ {%- if default_system_message != '' %}
27
+ {{- '[SYSTEM_PROMPT]' + default_system_message + '[/SYSTEM_PROMPT]' }}
28
+ {%- endif %}
29
+ {%- endif %}
30
+
31
+
32
+ {#- Tools definition #}
33
+ {%- set tools_definition = '' %}
34
+ {%- set has_tools = false %}
35
+ {%- if tools is defined and tools is not none and tools|length > 0 %}
36
+ {%- set has_tools = true %}
37
+ {%- set tools_definition = '[AVAILABLE_TOOLS]' + (tools| tojson) + '[/AVAILABLE_TOOLS]' %}
38
+ {{- tools_definition }}
39
+ {%- endif %}
40
+
41
+ {#- Checks for alternating user/assistant messages. #}
42
+ {%- set ns = namespace(index=0) %}
43
+ {%- for message in loop_messages %}
44
+ {%- if message.role == 'user' or (message.role == 'assistant' and (message.tool_calls is not defined or message.tool_calls is none or message.tool_calls | length == 0)) %}
45
+ {%- if (message['role'] == 'user') != (ns.index % 2 == 0) %}
46
+ {{- raise_exception('After the optional system message, conversation roles must alternate user and assistant roles except for tool calls and results.') }}
47
+ {%- endif %}
48
+ {%- set ns.index = ns.index + 1 %}
49
+ {%- endif %}
50
+ {%- endfor %}
51
+
52
+ {#- Handle conversation messages. #}
53
+ {%- for message in loop_messages %}
54
+
55
+ {#- User messages supports text content or text and image chunks. #}
56
+ {%- if message['role'] == 'user' %}
57
+ {%- if message['content'] is string %}
58
+ {{- '[INST]' + message['content'] + '[/INST]' }}
59
+ {%- elif message['content'] | length > 0 %}
60
+ {{- '[INST]' }}
61
+ {%- if message['content'] | length == 2 %}
62
+ {%- set blocks = message['content'] | sort(attribute='type') %}
63
+ {%- else %}
64
+ {%- set blocks = message['content'] %}
65
+ {%- endif %}
66
+ {%- for block in blocks %}
67
+ {%- if block['type'] == 'text' %}
68
+ {{- block['text'] }}
69
+ {%- elif block['type'] in ['image', 'image_url'] %}
70
+ {{- '[IMG]' }}
71
+ {%- else %}
72
+ {{- raise_exception('Only text, image and image_url chunks are supported in user message content.') }}
73
+ {%- endif %}
74
+ {%- endfor %}
75
+ {{- '[/INST]' }}
76
+ {%- else %}
77
+ {{- raise_exception('User message must have a string or a list of chunks in content') }}
78
+ {%- endif %}
79
+
80
+ {#- Assistant messages supports text content or text and image chunks. #}
81
+ {%- elif message['role'] == 'assistant' %}
82
+ {%- if (message['content'] is none or message['content'] == '' or message['content']|length == 0) and (message['tool_calls'] is not defined or message['tool_calls'] is none or message['tool_calls']|length == 0) %}
83
+ {{- raise_exception('Assistant message must have a string or a list of chunks in content or a list of tool calls.') }}
84
+ {%- endif %}
85
+
86
+ {%- if message['content'] is string %}
87
+ {{- message['content'] }}
88
+ {%- elif message['content'] | length > 0 %}
89
+ {%- for block in message['content'] %}
90
+ {%- if block['type'] == 'text' %}
91
+ {{- block['text'] }}
92
+ {%- else %}
93
+ {{- raise_exception('Only text chunks are supported in assistant message contents.') }}
94
+ {%- endif %}
95
+ {%- endfor %}
96
+ {%- endif %}
97
+
98
+ {%- if message['tool_calls'] is defined and message['tool_calls'] is not none and message['tool_calls']|length > 0 %}
99
+ {%- for tool in message['tool_calls'] %}
100
+ {%- set arguments = tool['function']['arguments'] %}
101
+ {%- if arguments is not string %}
102
+ {%- set arguments = arguments|tojson|safe %}
103
+ {%- elif arguments == '' %}
104
+ {%- set arguments = '{}' %}
105
+ {%- endif %}
106
+ {{- '[TOOL_CALLS]' + tool['function']['name'] + '[ARGS]' + arguments }}
107
+ {%- endfor %}
108
+ {%- endif %}
109
+
110
+ {#- End of sequence token for each assistant messages. #}
111
+ {{- eos_token }}
112
+
113
+ {#- Tool messages only supports text content. #}
114
+ {%- elif message['role'] == 'tool' %}
115
+ {{- '[TOOL_RESULTS]' + message['content']|string + '[/TOOL_RESULTS]' }}
116
+
117
+ {#- Raise exception for unsupported roles. #}
118
+ {%- else %}
119
+ {{- raise_exception('Only user, assistant and tool roles are supported, got ' + message['role'] + '.') }}
120
+ {%- endif %}
121
+ {%- endfor %}
consolidated-00005-of-00272.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7ac3ad87f939936e32ef5f511099d161d338fdb9b41d256c09e2ff818d47190d
3
+ size 2495933656
consolidated-00031-of-00272.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:11e542b847b4a27cf19079a92528ce45ed5088e5df4e305a850fb3097faf5379
3
+ size 2495933648
consolidated-00032-of-00272.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6d5eb4b9b79960ce6abfe005fbf04693a5880a682f83f8190e4937d5e6c3cd73
3
+ size 2495933656
consolidated-00034-of-00272.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b42e7085249fb541eb1ef3660c59eab10af368817fbdff78df8a7ac9990cb5a0
3
+ size 2495933800
consolidated-00037-of-00272.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e1b753481c356148d1c9b7a80e2685d84c6e577721254d593f19ddf1ab7f8aaa
3
+ size 2495933656
consolidated-00044-of-00272.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3c675490f8789cfeabae64800df0122be5db48526002ce1002e476678f97fdaa
3
+ size 2495933728
consolidated-00048-of-00272.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fe38f623f5b8e683caadf32651679b894ed9f4184e0d5ad1a33e2c6c858d59d6
3
+ size 2492685136
consolidated-00070-of-00272.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1c1de23ca328cc2f6c9258a03be3353f98f39c2d510ad1832fb3f43af2f84002
3
+ size 2495933648
consolidated-00073-of-00272.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bd461d134572c4a3917eba45af32c8abbe3ecc38e24231a37b09c4d5b6b49eba
3
+ size 2495933648
consolidated-00075-of-00272.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e0c0d3a3df6128fe56d460fdb8fe252f699f4bd395a7756003b410fbfd2950e0
3
+ size 2494520448
consolidated-00076-of-00272.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c34586647d64b356d480269455ea9d1a32dbe46f436ff0b7d980619963489860
3
+ size 2495933800
consolidated-00080-of-00272.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ba8af1edeacf9eb47161e90f4d91e4c6d0a6da818adb744849c287fe52782e61
3
+ size 2494520616
consolidated-00083-of-00272.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7a6d319a503fc90f8d808e94b953c9204b8964c5589f1e5b7d5b35a659477fc7
3
+ size 2495933648
consolidated-00085-of-00272.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e2b651ad597a5fddaac68b81f6e7c4ec08bfc671f23cb70477d56555aaf6a22a
3
+ size 2494520840
consolidated-00086-of-00272.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9a2b318fb0f851b67b45218fa8261e6236237f249e9a0ec08d61870b84587dca
3
+ size 2495933728
consolidated-00110-of-00272.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:aec626abde80ec60c963e846594ef4d85e5dbf1c585514fe062d44f6e0f15d8f
3
+ size 2495933656
consolidated-00113-of-00272.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3b01bb46952af21c52aaf4fdb47279d981c97276cbca97f6325098c76448eb1d
3
+ size 2496993872
consolidated-00115-of-00272.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c00fa0d9ce88e02f5aecd7061fa8b3d37ce8485d775ccb4714b8b88081a81734
3
+ size 2495933656
consolidated-00116-of-00272.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8856957b7a2de3c5b2c29d6f7e9a3be42fec5a87717794e291bbdd8a11253ad7
3
+ size 2495933648
consolidated-00124-of-00272.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:34052a87af59577ee63dfd6e8cfef6dedee070b05505b2298d6889c4764978e5
3
+ size 2495933648
consolidated-00128-of-00272.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4c76cb4ecffc765fd14d341ad9887e25725d1eff8b893deeb5ff3a74608722c7
3
+ size 2495933680
consolidated-00151-of-00272.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:65ca46642d94be5c9f5f5a92ca7f8307775fde04636a86694ab3d14e7085e05d
3
+ size 2495933704
consolidated-00152-of-00272.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:68fdb80bb5cbb7d4d2b3f8cb72b21ca06b257da7090484fbda7eb9d4014d2d17
3
+ size 2495933656
consolidated-00154-of-00272.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2ca1a7d138960256facf0a8132eb10f7248311fbd7809f8dad95746dc8d5ad4b
3
+ size 2494520528
consolidated-00157-of-00272.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ed275829a714752ee53a25df33c28a330e59e2cf6f9adaf0845523c27b9762b8
3
+ size 2495933656
consolidated-00165-of-00272.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9db3ad918ea4b3b0c986f5841a9c8ef07771db495144a1bfc0def1c0d7e358d8
3
+ size 2495933696
consolidated-00169-of-00272.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7425e4c606f3e0f0377699db1931f186599e7f02114d265a99bf8a77f35eed09
3
+ size 2495933800
consolidated-00196-of-00272.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:39d426fef9ad26efe0cffdfc67e1b4dd3af3466da3da9e0e4f9ea5b973a26c62
3
+ size 2494520568
consolidated-00199-of-00272.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2d7b392d26c12219e0e178cc4fc46e47320880e47b5b5594b74a30b44849a7f2
3
+ size 2495933480
consolidated-00201-of-00272.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3a0b5493882b2176d7354b97b1688175930e5f8cd67af974da3984ecefc9886c
3
+ size 2494520888
consolidated-00202-of-00272.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:189a72de78d07026b1df7f206e399e3eddd2a72d749d0da8c089212fd63597a5
3
+ size 2495933704
consolidated-00204-of-00272.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0f502536425b513d9d59b61cf40f5a0b89b197545db0e997704a47c248f8a078
3
+ size 2495933648
consolidated-00207-of-00272.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5c4e6b80077a36dbec396e1ed9889083fb1fdc0032b8a9701be2a0f5f59c6af9
3
+ size 2495933648
consolidated-00233-of-00272.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0c2ddc54695e2da30d0c2961850d2b0fec330fed1afb407ee539623cf190bcab
3
+ size 2494520616
consolidated-00239-of-00272.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:58275805d3c03f8a5f92dab8ba150e1c03eda646a90488240ba7c1494374f8cc
3
+ size 2495933728
consolidated-00240-of-00272.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ebcafa21b1f78fd7a0963aad928278b7c9f64bd819da150e0a2e32bcbe0dc2ad
3
+ size 2495933648
consolidated-00243-of-00272.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f593dd165a59dcc080b4768b2a5da8233b232092492a8e5de4af2f61c9e3efdb
3
+ size 2495933824
consolidated-00245-of-00272.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5044d9b6eaf595ec82d6a53d567c090642efd8ee607e572d03265238460c95f7
3
+ size 2495933648
consolidated-00246-of-00272.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5a5f3b5fc9b2482acc8dfce2a2201b1ab2f0ece6450f5a61527f948b31488a8d
3
+ size 2495933656
consolidated-00272-of-00272.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:daf2a2bbaf9f8b756b1879b0c12ebcfda9d8057d675603dd379053d2053d34be
3
+ size 3876741776
consolidated.safetensors.index.json ADDED
The diff for this file is too large to render. See raw diff
 
params.json ADDED
@@ -0,0 +1,116 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dim": 7168,
3
+ "head_dim": 192,
4
+ "hidden_dim": 16384,
5
+ "kv_lora_rank": 512,
6
+ "llama_4_scaling": {
7
+ "beta": 0.1,
8
+ "original_max_position_embeddings": 8192
9
+ },
10
+ "max_position_embeddings": 294912,
11
+ "moe": {
12
+ "expert_hidden_dim": 4096,
13
+ "expert_model_parallel": 1,
14
+ "expert_parallel": 1,
15
+ "first_k_dense_replace": 3,
16
+ "num_expert_groups": 1,
17
+ "num_expert_groups_per_tok": 1,
18
+ "num_experts": 128,
19
+ "num_experts_per_tok": 4,
20
+ "num_shared_experts": 1,
21
+ "route_every_n": 1,
22
+ "routed_scale": 1.0
23
+ },
24
+ "n_heads": 128,
25
+ "n_kv_heads": 128,
26
+ "n_layers": 61,
27
+ "norm_eps": 1e-06,
28
+ "q_lora_rank": 1536,
29
+ "qk_nope_head_dim": 128,
30
+ "qk_rope_head_dim": 64,
31
+ "quantization_config": {
32
+ "config_groups": {
33
+ "FP8_BLOCK": {
34
+ "format": "float-quantized",
35
+ "input_activations": {
36
+ "actorder": null,
37
+ "block_structure": null,
38
+ "dynamic": true,
39
+ "group_size": 128,
40
+ "num_bits": 8,
41
+ "observer": null,
42
+ "observer_kwargs": {},
43
+ "strategy": "group",
44
+ "symmetric": true,
45
+ "type": "float"
46
+ },
47
+ "output_activations": null,
48
+ "targets": [
49
+ "Linear"
50
+ ],
51
+ "weights": {
52
+ "actorder": null,
53
+ "block_structure": [
54
+ 128,
55
+ 128
56
+ ],
57
+ "dynamic": false,
58
+ "group_size": null,
59
+ "num_bits": 8,
60
+ "observer": "static_minmax",
61
+ "observer_kwargs": {},
62
+ "strategy": "block",
63
+ "symmetric": true,
64
+ "type": "float"
65
+ }
66
+ }
67
+ },
68
+ "format": "float-quantized",
69
+ "global_compression_ratio": null,
70
+ "ignore": [
71
+ "model.embed_tokens",
72
+ "re:patch_merger.*",
73
+ "re:vision_encoder.*",
74
+ "re:vision_language_adapter.*",
75
+ "re:.*kv_a_proj_with_mqa$",
76
+ "re:.*q_a_proj$",
77
+ "re:.*gate$",
78
+ "lm_head"
79
+ ],
80
+ "kv_cache_scheme": null,
81
+ "quant_method": "compressed-tensors",
82
+ "quantization_status": "compressed",
83
+ "sparsity_config": {},
84
+ "transform_config": {},
85
+ "version": "0.12.3.dev29+g73c2cf9.d20251119"
86
+ },
87
+ "rope_theta": 10000.0,
88
+ "tied_embeddings": false,
89
+ "v_head_dim": 128,
90
+ "vision_encoder": {
91
+ "adapter_bias": false,
92
+ "add_pre_mm_projector_layer_norm": true,
93
+ "hidden_size": 1664,
94
+ "image_break_token_id": 12,
95
+ "image_end_token_id": 13,
96
+ "image_size": 1540,
97
+ "image_token_id": 10,
98
+ "intermediate_size": 8192,
99
+ "max_image_size": 1540,
100
+ "mm_projector_id": "patch_merge",
101
+ "num_attention_heads": 16,
102
+ "num_channels": 3,
103
+ "num_hidden_layers": 48,
104
+ "patch_size": 14,
105
+ "rope_theta": 10000.0,
106
+ "spatial_merge_size": 2
107
+ },
108
+ "vocab_size": 131072,
109
+ "yarn": {
110
+ "alpha": 1,
111
+ "apply_scale": false,
112
+ "beta": 32,
113
+ "factor": 36,
114
+ "original_max_position_embeddings": 8192
115
+ }
116
+ }
processor_config.json ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "image_break_token": "[IMG_BREAK]",
3
+ "image_end_token": "[IMG_END]",
4
+ "image_processor": {
5
+ "crop_size": null,
6
+ "data_format": "channels_first",
7
+ "device": null,
8
+ "disable_grouping": null,
9
+ "do_center_crop": null,
10
+ "do_convert_rgb": true,
11
+ "do_normalize": true,
12
+ "do_pad": null,
13
+ "do_rescale": true,
14
+ "do_resize": true,
15
+ "image_mean": [
16
+ 0.48145466,
17
+ 0.4578275,
18
+ 0.40821073
19
+ ],
20
+ "image_processor_type": "PixtralImageProcessorFast",
21
+ "image_seq_length": null,
22
+ "image_std": [
23
+ 0.26862954,
24
+ 0.26130258,
25
+ 0.27577711
26
+ ],
27
+ "input_data_format": null,
28
+ "pad_size": null,
29
+ "patch_size": 14,
30
+ "processor_class": "PixtralProcessor",
31
+ "resample": 3,
32
+ "rescale_factor": 0.00392156862745098,
33
+ "return_tensors": null,
34
+ "size": {
35
+ "longest_edge": 1540
36
+ }
37
+ },
38
+ "image_token": "[IMG]",
39
+ "patch_size": 14,
40
+ "processor_class": "PixtralProcessor",
41
+ "spatial_merge_size": 2
42
+ }
special_tokens_map.json ADDED
The diff for this file is too large to render. See raw diff
 
tekken.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e29d19ea32eb7e26e6c0572d57cb7f9eca0f4420e0e0fe6ae1cf3be94da1c0d6
3
+ size 16753777
tokenizer_config.json ADDED
The diff for this file is too large to render. See raw diff