danielhanchen commited on
Commit
bc10ef7
·
0 Parent(s):

Upload folder using huggingface_hub

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. .gitattributes +37 -0
  2. LICENSE +18 -0
  3. README.md +165 -0
  4. chat_template.jinja +258 -0
  5. config.json +467 -0
  6. consolidated-00001-of-00054.safetensors +3 -0
  7. consolidated-00002-of-00054.safetensors +3 -0
  8. consolidated-00003-of-00054.safetensors +3 -0
  9. consolidated-00004-of-00054.safetensors +3 -0
  10. consolidated-00005-of-00054.safetensors +3 -0
  11. consolidated-00006-of-00054.safetensors +3 -0
  12. consolidated-00007-of-00054.safetensors +3 -0
  13. consolidated-00008-of-00054.safetensors +3 -0
  14. consolidated-00009-of-00054.safetensors +3 -0
  15. consolidated-00010-of-00054.safetensors +3 -0
  16. consolidated-00011-of-00054.safetensors +3 -0
  17. consolidated-00012-of-00054.safetensors +3 -0
  18. consolidated-00013-of-00054.safetensors +3 -0
  19. consolidated-00014-of-00054.safetensors +3 -0
  20. consolidated-00015-of-00054.safetensors +3 -0
  21. consolidated-00016-of-00054.safetensors +3 -0
  22. consolidated-00017-of-00054.safetensors +3 -0
  23. consolidated-00018-of-00054.safetensors +3 -0
  24. consolidated-00019-of-00054.safetensors +3 -0
  25. consolidated-00020-of-00054.safetensors +3 -0
  26. consolidated-00021-of-00054.safetensors +3 -0
  27. consolidated-00022-of-00054.safetensors +3 -0
  28. consolidated-00023-of-00054.safetensors +3 -0
  29. consolidated-00024-of-00054.safetensors +3 -0
  30. consolidated-00025-of-00054.safetensors +3 -0
  31. consolidated-00026-of-00054.safetensors +3 -0
  32. consolidated-00027-of-00054.safetensors +3 -0
  33. consolidated-00028-of-00054.safetensors +3 -0
  34. consolidated-00029-of-00054.safetensors +3 -0
  35. consolidated-00030-of-00054.safetensors +3 -0
  36. consolidated-00031-of-00054.safetensors +3 -0
  37. consolidated-00032-of-00054.safetensors +3 -0
  38. consolidated-00033-of-00054.safetensors +3 -0
  39. consolidated-00034-of-00054.safetensors +3 -0
  40. consolidated-00035-of-00054.safetensors +3 -0
  41. consolidated-00036-of-00054.safetensors +3 -0
  42. consolidated-00037-of-00054.safetensors +3 -0
  43. consolidated-00038-of-00054.safetensors +3 -0
  44. consolidated-00039-of-00054.safetensors +3 -0
  45. consolidated-00040-of-00054.safetensors +3 -0
  46. consolidated-00041-of-00054.safetensors +3 -0
  47. consolidated-00042-of-00054.safetensors +3 -0
  48. consolidated-00043-of-00054.safetensors +3 -0
  49. consolidated-00044-of-00054.safetensors +3 -0
  50. consolidated-00045-of-00054.safetensors +3 -0
.gitattributes ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ *.7z filter=lfs diff=lfs merge=lfs -text
2
+ *.arrow filter=lfs diff=lfs merge=lfs -text
3
+ *.bin filter=lfs diff=lfs merge=lfs -text
4
+ *.bz2 filter=lfs diff=lfs merge=lfs -text
5
+ *.ckpt filter=lfs diff=lfs merge=lfs -text
6
+ *.ftz filter=lfs diff=lfs merge=lfs -text
7
+ *.gz filter=lfs diff=lfs merge=lfs -text
8
+ *.h5 filter=lfs diff=lfs merge=lfs -text
9
+ *.joblib filter=lfs diff=lfs merge=lfs -text
10
+ *.lfs.* filter=lfs diff=lfs merge=lfs -text
11
+ *.mlmodel filter=lfs diff=lfs merge=lfs -text
12
+ *.model filter=lfs diff=lfs merge=lfs -text
13
+ *.msgpack filter=lfs diff=lfs merge=lfs -text
14
+ *.npy filter=lfs diff=lfs merge=lfs -text
15
+ *.npz filter=lfs diff=lfs merge=lfs -text
16
+ *.onnx filter=lfs diff=lfs merge=lfs -text
17
+ *.ot filter=lfs diff=lfs merge=lfs -text
18
+ *.parquet filter=lfs diff=lfs merge=lfs -text
19
+ *.pb filter=lfs diff=lfs merge=lfs -text
20
+ *.pickle filter=lfs diff=lfs merge=lfs -text
21
+ *.pkl filter=lfs diff=lfs merge=lfs -text
22
+ *.pt filter=lfs diff=lfs merge=lfs -text
23
+ *.pth filter=lfs diff=lfs merge=lfs -text
24
+ *.rar filter=lfs diff=lfs merge=lfs -text
25
+ *.safetensors filter=lfs diff=lfs merge=lfs -text
26
+ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
27
+ *.tar.* filter=lfs diff=lfs merge=lfs -text
28
+ *.tar filter=lfs diff=lfs merge=lfs -text
29
+ *.tflite filter=lfs diff=lfs merge=lfs -text
30
+ *.tgz filter=lfs diff=lfs merge=lfs -text
31
+ *.wasm filter=lfs diff=lfs merge=lfs -text
32
+ *.xz 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
LICENSE ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Mistral Ecosystem Open-Weight License
2
+
3
+ Mistral Ecosystem Open-Weight License. This license is a modified version of the MIT license.
4
+ Attribution notice: 2026 - Mistral
5
+
6
+ Permission is hereby granted, free of charge, to any person (the “Licensee”) obtaining a copy of this model and associated documentation files - including the model weights, parameters, configuration files, and associated documentation (the “Model”), to deal in the Model without restriction, including without limitation the rights to (a) use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Model; (b) run, deploy, further train or otherwise modify the Model and create derivative works from it; and (c) permit persons to whom the Model is furnished to do so, subject to the following conditions:
7
+
8
+ 1. The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Model.
9
+
10
+ 2. If the Licensee or any of its affiliates operates a Model as a Service business, the Licensee must enter into a separate commercial license with Mistral before using the Model or its derivative works for any commercial purpose. The Licensee may contact Mistral, using this form: https://mistral.ai/contact/, to request a commercial license.
11
+
12
+ "Model as a Service" means giving a third party access to the Model or its derivative works for inference or post-training by any means (for instance via API or hosted endpoints), in a manner that allows such third party to exercise meaningful control over the inputs, parameters, or training data. This does not include (a) end-user products with model capabilities solely embedded within specific features or harnesses, or (b) mere relaying of requests to models hosted by others.
13
+
14
+ 3. The requirements set forth in Section 2 do not apply to: (a) internal use of the Model or its derivative works, defined as any use that does not make the Model or its derivative works available to third parties; or (b) any use of the Model accessed through Mistral’s official products.
15
+
16
+ THE MODEL AND ANY OUTPUT THEREFROM ARE PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL MISTRAL BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE MODEL OR THE USE OR OTHER DEALINGS IN THE MODEL.
17
+
18
+ For any questions regarding this license, please contact us using the form here: https://mistral.ai/contact/
README.md ADDED
@@ -0,0 +1,165 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: other
3
+ language:
4
+ - en
5
+ - fr
6
+ - de
7
+ - es
8
+ - pt
9
+ - it
10
+ - ja
11
+ - ko
12
+ - ru
13
+ - zh
14
+ - ar
15
+ - fa
16
+ - id
17
+ - ms
18
+ - ne
19
+ - pl
20
+ - ro
21
+ - sr
22
+ - sv
23
+ - tr
24
+ - uk
25
+ - vi
26
+ - hi
27
+ - bn
28
+ - bg
29
+ - hr
30
+ - cs
31
+ - da
32
+ - nl
33
+ - et
34
+ - fi
35
+ - el
36
+ - hu
37
+ - ga
38
+ - lv
39
+ - lt
40
+ - mt
41
+ - sk
42
+ - sl
43
+ tags:
44
+ - vLLM
45
+ - SGLang
46
+ - transformers
47
+ - llama.cpp
48
+ - unsloth
49
+ - mistral
50
+ base_model:
51
+ - mistralai/Mistral-Large-4-1T-A52B
52
+ license_name: mistral-ecosystem-open-weight
53
+ license_link: https://huggingface.co/mistralai/Mistral-Large-4-1T-A52B/blob/main/LICENSE
54
+ ---
55
+ # Read our How to [Run Mistral Large 4 Guide!](https://unsloth.ai/docs/models/mistral-large-4)
56
+
57
+ <div>
58
+ <p style="margin-top: 0;margin-bottom: 0;">
59
+ <em>See <a href="https://unsloth.ai/docs/basics/unsloth-dynamic-v3.0-gguf">Unsloth Dynamic 3.0 GGUFs</a> for our quantization benchmarks.</em>
60
+ </p>
61
+ <div style="display: flex; gap: 5px; align-items: center; ">
62
+ <a href="https://github.com/unslothai/unsloth/">
63
+ <img src="https://github.com/unslothai/unsloth/raw/main/images/unsloth%20new%20logo.png" width="133">
64
+ </a>
65
+ <a href="https://discord.gg/unsloth">
66
+ <img src="https://github.com/unslothai/unsloth/raw/main/images/Discord%20button.png" width="173">
67
+ </a>
68
+ <a href="https://unsloth.ai/docs/models/mistral-large-4">
69
+ <img src="https://raw.githubusercontent.com/unslothai/unsloth/refs/heads/main/images/documentation%20green%20button.png" width="143">
70
+ </a>
71
+ </div>
72
+ <ul style="margin: 0;">
73
+ <li>Run the smallest 1-bit (233 GB) on a 256GB RAM device, 2-bit (302-378 GB) on 384-512GB, or near full precision (Q8, 1.1 TB) on 1.2TB+. <a href="https://unsloth.ai/docs/models/mistral-large-4">Read Guide</a></li>
74
+ <li>To run, please use our llama.cpp build or the <a href="https://unsloth.ai/docs/desktop">Unsloth Desktop</a> app.</li>
75
+ <li>Includes the vision projector (mmproj) and the DSpark speculative decoding draft.</li>
76
+ </div>
77
+ </div>
78
+
79
+ <div style="display: flex; gap: 8px; align-items: flex-start;">
80
+ <img src="https://huggingface.co/unsloth/Mistral-Large-4-1T-A52B-GGUF/resolve/main/assets/size_vs_kld.png" alt="Mistral-Large-4-1T-A52B Unsloth GGUF KLD vs size" style="width: 50%; min-width: 0; margin: 0;">
81
+ <img src="https://huggingface.co/unsloth/Mistral-Large-4-1T-A52B-GGUF/resolve/main/assets/size_vs_top1.png" alt="Mistral-Large-4-1T-A52B Unsloth GGUF top-1 accuracy vs size" style="width: 50%; min-width: 0; margin: 0;">
82
+ </div>
83
+
84
+ **Speculative decoding:** add `-md dspark-Mistral-Large-4-1T-A52B-Q8_0.gguf --spec-type draft-dspark --spec-draft-n-max 3`
85
+ (mean acceptance length about 2.5, about 2x decode speed at batch 1).
86
+
87
+ **Vision:** add `--mmproj mmproj-BF16.gguf` (or `mmproj-F16.gguf`).
88
+
89
+ ---
90
+
91
+ # Mistral Large 4 - Le Chonk
92
+
93
+ Mistral Large 4 is our largest and most capable model to date: a 1 trillion-parameter natively multimodal Mixture-of-Experts model with 49 billion active parameters per token (52 billion including embeddings and output layers), trained from scratch on 3,800 NVIDIA Grace Blackwell GPUs in Mistral's own datacenters in Europe.
94
+
95
+ Mistral Large 4 unifies instruction following, reasoning, coding, and agentic workflows in a single set of weights. While a generalist model, it shows especially good performance on workloads such as cybersecurity, finance, and law, and it surpasses frontier closed models on visual grounding. It is natively fluent in 160+ languages, including every official language of the European Union.
96
+
97
+ Find more information on our [blog](https://mistral.ai/news/mistral-large-4-oss/). The model is also served on the [Mistral API](https://docs.mistral.ai/models/mistral-large-4-0) as `mistral-large-4`.
98
+
99
+ > [!Note]
100
+ > A quantized [NVFP4 checkpoint](https://huggingface.co/mistralai/Mistral-Large-4-1T-A52B-NVFP4) is also available, with a smaller memory footprint, faster inference and same performance. It targets Blackwell GPUs and supports vLLM and SGLang.
101
+
102
+ ## Key Features
103
+
104
+ Mistral Large 4 includes the following architectural choices:
105
+
106
+ - **~1T total / ~52B active parameters**: granular Mixture-of-Experts with 128 routed experts (4 active per token) and 1 shared expert.
107
+ - **1M context length**, for long-context workloads.
108
+ - **Multimodal input**: accepts text and image input, with text output. Pixtral-style vision encoder trained to handle variable image sizes and aspect ratios.
109
+ - **Instruct and Reasoning functionalities** with function calls, reasoning effort configurable per request.
110
+
111
+ Mistral Large 4 offers the following capabilities:
112
+
113
+ - **Reasoning Mode**: three reasoning efforts — `low`, `medium`, `high` (default) — so the same model can answer a quick chat reply or work through a complex agentic run.
114
+ - **Vision**: analyzes images, charts, technical drawings, and documents, with state-of-the-art visual grounding among open weights.
115
+ - **Multilingual**: natively fluent in 160+ languages, including all official languages of the European Union.
116
+ - **System Prompt**: strong adherence and support for system prompts.
117
+ - **Agentic**: native function calling, JSON output, and strict JSON schema enforcement.
118
+ - **Cybersecurity**: state of the art among open-weight models for security work, while refusing malicious requests.
119
+ - **Large Context Window**: supports a 1M context window.
120
+
121
+ We release this model under the [**Mistral Ecosystem Open-Weight License**](https://huggingface.co/mistralai/Mistral-Large-4-1T-A52B/blob/main/LICENSE): a modified version of the MIT license, for both commercial and non-commercial use — operating a Model-as-a-Service business requires a separate commercial license with Mistral.
122
+
123
+ ## Recommended Settings
124
+
125
+ - **Reasoning Effort**:
126
+ - `'low'` / `'medium'` / `'high'` — default is `'high'`.
127
+ - Use `reasoning_effort="high"` for complex prompts and agentic usage, `'low'` for fast chat replies and `'medium'` for day to day usage.
128
+ - **Sampling**: for all reasoning efforts, we recommend the following sampling parameters:
129
+ - `temperature=1.0`
130
+ - `top_p=0.95`
131
+ - **System Prompt**: define a clear environment and use case, including guidance on how to effectively leverage tools in agentic systems.
132
+ - **Tools**: keep the set of tools well-defined and limit their number to the minimum required for the use case.
133
+ - **Context**: the checkpoint supports a 1M context window.
134
+
135
+ ## Benchmarks
136
+
137
+ We compared Mistral Large 4 with recent open-weight models. We report results on agentic coding and global intelligence here; for more benchmarks, especially on cybersecurity, finance and law, see our [blog post](https://mistral.ai/news/mistral-large-4-oss/).
138
+
139
+ ### Agentic Coding
140
+
141
+ Mistral Large 4 delivers frontier coding performance with significantly fewer tokens, making sophisticated coding agents more economical to run at scale.
142
+
143
+ On the Artificial Analysis Coding Agent Index, ML4 scores **48%**, effectively tied with the leading open-weight model, GLM-5.3, while using **47%** fewer tokens per task on average.
144
+
145
+ ![Artificial Analysis - Coding Agent Index](images/coding_index.png)
146
+
147
+ ### Global Intelligence
148
+
149
+ On the Artificial Analysis Intelligence Index v5, Mistral Large 4 scores **26**, the highest among western open-weight models. The leading open-weight models from China score higher on this aggregate index, but Mistral Large 4 is particularly strong on coding and cybersecurity, as shown in our [blog post](https://mistral.ai/news/mistral-large-4-oss/).
150
+
151
+ ![Artificial Analysis - Intelligence Index v5](images/intelligence_index.png)
152
+
153
+ ## Demo Gallery
154
+
155
+ The [ML4 Demo Hub](https://huggingface.co/spaces/mistralai/ml4-hub) is a live gallery of demo Spaces built with Mistral Large 4, from us and from the community: coding, vision and grounding, tool calls, JSON schema, multilingual, and more. Any Space tagged `Le_chonk` appears there.
156
+
157
+ Official demos run on the Mistral API with a small shared free budget per visitor for the first week of the release, so you can try the model without paying. You can also use your own Mistral API key.
158
+
159
+ To build a demo, we recommend [Mistral Vibe](https://github.com/mistralai/mistral-vibe), our coding agent powered by Mistral Large 4.
160
+
161
+ ## License
162
+
163
+ This model is licensed under the [Mistral Ecosystem Open-Weight License](https://huggingface.co/mistralai/Mistral-Large-4-1T-A52B/blob/main/LICENSE).
164
+
165
+ *You must not use this model in a manner that infringes, misappropriates, or otherwise violates any third party’s rights, including intellectual property rights.*
chat_template.jinja ADDED
@@ -0,0 +1,258 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {#- Default system message if no system prompt is passed. #}
2
+ {%- set default_system_message = '' %}
3
+
4
+ {#- Begin of sequence token. #}
5
+ {{- bos_token }}
6
+
7
+
8
+ {#- Handle system prompt if it exists. #}
9
+ {%- set loop_messages = messages %}
10
+ {%- if messages[0]['role'] != 'system' and default_system_message != '' %}
11
+ {{- '[SYSTEM_PROMPT]' ~ default_system_message ~ '[/SYSTEM_PROMPT]' }}
12
+ {%- endif %}
13
+
14
+
15
+ {#- Tools and model settings definition #}
16
+ {%- set available_tools = '' %}
17
+ {%- set has_tools = false %}
18
+ {%- if tools is defined and tools is not none and tools|length > 0 %}
19
+ {%- set has_tools = true %}
20
+ {%- set available_tools = '[AVAILABLE_TOOLS]' ~ (tools| tojson) ~ '[/AVAILABLE_TOOLS]' %}
21
+ {%- endif %}
22
+ {%- set json_schema = none %}
23
+ {%- if response_format is defined and response_format is not none %}
24
+ {%- set response_format_type = response_format.get('type', 'text') %}
25
+ {%- set response_json_schema = response_format.get('json_schema') %}
26
+ {%- if response_format_type not in ['text', 'json_object', 'json_schema'] %}
27
+ {{- raise_exception('Response format type must be one of text, json_object or json_schema, got ' ~ response_format_type ~ '.') }}
28
+ {%- elif response_format_type == 'json_schema' %}
29
+ {%- if response_json_schema is none or response_json_schema.get('schema') is none %}
30
+ {{- raise_exception('Response format `json_schema` must define the schema') }}
31
+ {%- else %}
32
+ {%- set json_schema = response_json_schema['schema'] %}
33
+ {%- endif %}
34
+ {%- elif response_format_type == 'json_object' %}
35
+ {%- set json_schema = {'anyOf': [{'type': 'object'}, {'type': 'array'}]} %}
36
+ {%- endif %}
37
+ {%- endif %}
38
+ {%- if reasoning_effort is not defined or reasoning_effort is none %}
39
+ {%- set reasoning_effort = 'high' %}
40
+ {%- endif %}
41
+ {%- if reasoning_effort not in ['low', 'medium', 'high'] %}
42
+ {{- raise_exception('reasoning_effort must be one of "low", "medium", "high"') }}
43
+ {%- endif %}
44
+ {%- set model_settings_parts = [] %}
45
+ {%- if json_schema is not none %}
46
+ {%- set model_settings_parts = model_settings_parts + ['"json_schema": ' ~ (json_schema|tojson)] %}
47
+ {%- endif %}
48
+ {%- set model_settings_parts = model_settings_parts + ['"reasoning_effort": "' ~ reasoning_effort ~ '"'] %}
49
+ {%- set model_settings = '' %}
50
+ {%- if model_settings_parts %}
51
+ {%- set model_settings = '[MODEL_SETTINGS]{' ~ model_settings_parts|join(', ') ~ '}[/MODEL_SETTINGS]' %}
52
+ {%- endif %}
53
+
54
+ {#- Macros #}
55
+ {%- macro render_content(content, context_name, supported_types_desc, support_thinking, support_images) -%}
56
+ {%- if content is string -%}
57
+ {{- content -}}
58
+ {%- elif content -%}
59
+ {%- for block in content -%}
60
+ {%- if block['type'] == 'text' -%}
61
+ {{- block['text'] -}}
62
+ {%- elif support_thinking and block['type'] == 'thinking' -%}
63
+ {{- '[THINK]' ~ block['thinking'] -}}
64
+ {%- if block.get('closed', true) -%}{{- '[/THINK]' -}}{%- endif -%}
65
+ {%- elif support_images and block['type'] in ['image', 'image_url'] -%}
66
+ {{- '[IMG]' -}}
67
+ {%- else -%}
68
+ {{- raise_exception('Only ' ~ supported_types_desc ~ ' chunks are supported in ' ~ context_name ~ '.') -}}
69
+ {%- endif -%}
70
+ {%- endfor -%}
71
+ {%- else -%}
72
+ {{- raise_exception(context_name ~ ' must have non-empty content.') -}}
73
+ {%- endif -%}
74
+ {%- endmacro -%}
75
+
76
+ {#- Aggregate consecutive messages with the same role except system and tool. #}
77
+ {#- A sentinel message is appended so the last group gets flushed inside the loop. #}
78
+ {%- set ns_agg = namespace(messages=[], current_group=[], current_role=none) %}
79
+ {%- for message in loop_messages + [{'role': '__sentinel__'}] %}
80
+ {%- if message['role'] != ns_agg.current_role or message['role'] == 'system' or message['role'] == 'tool' %}
81
+ {%- if ns_agg.current_role == 'tool' %}
82
+ {%- set ns_agg.messages = ns_agg.messages + ns_agg.current_group %}
83
+ {%- elif ns_agg.current_role is not none %}
84
+ {%- set ns_c = namespace(text_parts=[], chunks=[], has_non_text=false, tool_calls=[]) %}
85
+ {%- for msg in ns_agg.current_group %}
86
+ {#- Convert reasoning / reasoning_content to a leading thinking chunk. #}
87
+ {%- set reasoning = msg.get('reasoning_content', msg.get('reasoning', none)) %}
88
+ {%- if reasoning is not none and reasoning != '' %}
89
+ {%- if msg['content'] is not none and msg['content'] is not string %}
90
+ {%- for block in msg['content'] %}
91
+ {%- if block['type'] == 'thinking' %}
92
+ {{- raise_exception('Message cannot have both thinking chunks in content and a top-level `reasoning` or `reasoning_content` field.') }}
93
+ {%- endif %}
94
+ {%- endfor %}
95
+ {%- endif %}
96
+ {%- set think_chunk = {'type': 'thinking', 'thinking': reasoning} %}
97
+ {%- if msg['content'] is string and msg['content'] != '' %}
98
+ {%- set new_content = [think_chunk, {'type': 'text', 'text': msg['content']}] %}
99
+ {%- elif msg['content'] is not none and msg['content'] is not string and msg['content'] | length > 0 %}
100
+ {%- set new_content = [think_chunk] + msg['content'] | list %}
101
+ {%- else %}
102
+ {%- set new_content = [think_chunk] %}
103
+ {%- endif %}
104
+ {%- if msg['tool_calls'] is defined and msg['tool_calls'] is not none %}
105
+ {%- set msg = {'role': msg['role'], 'content': new_content, 'tool_calls': msg['tool_calls']} %}
106
+ {%- else %}
107
+ {%- set msg = {'role': msg['role'], 'content': new_content} %}
108
+ {%- endif %}
109
+ {%- endif %}
110
+ {%- if msg['content'] is string %}
111
+ {%- set ns_c.text_parts = ns_c.text_parts + [msg['content']] %}
112
+ {%- elif msg['content'] is not none %}
113
+ {%- set ns_msg = namespace(msg_text_parts=[]) %}
114
+ {%- for block in msg['content'] %}
115
+ {%- if block['type'] == 'text' %}
116
+ {%- set ns_msg.msg_text_parts = ns_msg.msg_text_parts + [block['text']] %}
117
+ {%- else %}
118
+ {%- if ns_msg.msg_text_parts | length > 0 %}
119
+ {%- set ns_c.text_parts = ns_c.text_parts + [ns_msg.msg_text_parts | join('')] %}
120
+ {%- set ns_msg.msg_text_parts = [] %}
121
+ {%- endif %}
122
+ {%- if ns_c.text_parts | length > 0 %}
123
+ {%- set ns_c.chunks = ns_c.chunks + [{'type': 'text', 'text': ns_c.text_parts | join('\n\n')}] %}
124
+ {%- set ns_c.text_parts = [] %}
125
+ {%- endif %}
126
+ {%- set ns_c.chunks = ns_c.chunks + [block] %}
127
+ {%- set ns_c.has_non_text = true %}
128
+ {%- endif %}
129
+ {%- endfor %}
130
+ {%- if ns_msg.msg_text_parts | length > 0 %}
131
+ {%- set ns_c.text_parts = ns_c.text_parts + [ns_msg.msg_text_parts | join('')] %}
132
+ {%- endif %}
133
+ {%- endif %}
134
+ {%- if msg['tool_calls'] is defined and msg['tool_calls'] is not none %}
135
+ {%- set ns_c.tool_calls = ns_c.tool_calls + msg['tool_calls'] | list %}
136
+ {%- endif %}
137
+ {%- endfor %}
138
+ {%- if ns_c.has_non_text %}
139
+ {%- if ns_c.text_parts | length > 0 %}
140
+ {%- set ns_c.chunks = ns_c.chunks + [{'type': 'text', 'text': ns_c.text_parts | join('\n\n')}] %}
141
+ {%- endif %}
142
+ {%- set merged_content = ns_c.chunks %}
143
+ {%- else %}
144
+ {%- set merged_content = ns_c.text_parts | join('\n\n') %}
145
+ {%- endif %}
146
+ {%- if ns_c.tool_calls | length > 0 %}
147
+ {%- set ns_agg.messages = ns_agg.messages + [{'role': ns_agg.current_role, 'content': merged_content, 'tool_calls': ns_c.tool_calls}] %}
148
+ {%- else %}
149
+ {%- set ns_agg.messages = ns_agg.messages + [{'role': ns_agg.current_role, 'content': merged_content}] %}
150
+ {%- endif %}
151
+ {%- endif %}
152
+ {%- if message['role'] != '__sentinel__' %}
153
+ {%- set ns_agg.current_group = [message] %}
154
+ {%- set ns_agg.current_role = message['role'] %}
155
+ {%- endif %}
156
+ {%- else %}
157
+ {%- set ns_agg.current_group = ns_agg.current_group + [message] %}
158
+ {%- endif %}
159
+ {%- endfor %}
160
+ {%- set loop_messages = ns_agg.messages %}
161
+
162
+ {#- Validates message ordering. #}
163
+ {%- set ns = namespace(available_tools_and_settings_emitted=false) %}
164
+ {%- if loop_messages | length > 0 and loop_messages[0]['role'] not in ['user', 'system'] %}
165
+ {{- raise_exception('Conversation must start with a user or system message, got ' ~ loop_messages[0]['role'] ~ '.') }}
166
+ {%- endif %}
167
+ {%- set ns_order = namespace(previous_role=none) %}
168
+ {%- for message in loop_messages %}
169
+ {%- set current_role = message['role'] %}
170
+ {%- if ns_order.previous_role is not none %}
171
+ {%- if ns_order.previous_role == 'system' %}
172
+ {%- if current_role not in ['user', 'assistant', 'system'] %}
173
+ {{- raise_exception('Unexpected role \'' ~ current_role ~ '\' after role \'' ~ ns_order.previous_role ~ '\'') }}
174
+ {%- endif %}
175
+ {%- elif ns_order.previous_role == 'user' %}
176
+ {%- if current_role not in ['assistant', 'system', 'user'] %}
177
+ {{- raise_exception('Unexpected role \'' ~ current_role ~ '\' after role \'' ~ ns_order.previous_role ~ '\'') }}
178
+ {%- endif %}
179
+ {%- elif ns_order.previous_role == 'assistant' %}
180
+ {%- if current_role not in ['assistant', 'user', 'tool'] %}
181
+ {{- raise_exception('Unexpected role \'' ~ current_role ~ '\' after role \'' ~ ns_order.previous_role ~ '\'') }}
182
+ {%- endif %}
183
+ {%- elif ns_order.previous_role == 'tool' %}
184
+ {%- if current_role not in ['assistant', 'tool', 'user'] %}
185
+ {{- raise_exception('Unexpected role \'' ~ current_role ~ '\' after role \'' ~ ns_order.previous_role ~ '\'') }}
186
+ {%- endif %}
187
+ {%- endif %}
188
+ {%- endif %}
189
+ {%- set ns_order.previous_role = current_role %}
190
+ {%- endfor %}
191
+
192
+ {#- Handle conversation messages. #}
193
+ {%- for message in loop_messages %}
194
+ {#- User messages supports text, image and image_url content. #}
195
+ {%- if message['role'] == 'user' %}
196
+ {%- if not ns.available_tools_and_settings_emitted %}
197
+ {{- available_tools }}
198
+ {{- model_settings }}
199
+ {%- set ns.available_tools_and_settings_emitted = true %}
200
+ {%- endif %}
201
+ {%- if message['content'] is not string and message['content'] %}
202
+ {#- When content has exactly one image and one text block, put image first. #}
203
+ {%- if message['content'] | length == 2 and message['content'][0]['type'] == 'text' and message['content'][1]['type'] in ['image', 'image_url'] %}
204
+ {%- set blocks = [message['content'][1], message['content'][0]] %}
205
+ {%- else %}
206
+ {%- set blocks = message['content'] %}
207
+ {%- endif %}
208
+ {%- set user_content = blocks %}
209
+ {%- else %}
210
+ {%- set user_content = message['content'] %}
211
+ {%- endif %}
212
+ {{- '[INST]' -}}
213
+ {{- render_content(content=user_content, context_name='user message content', supported_types_desc='text, image and image_url', support_thinking=false, support_images=true) -}}
214
+ {{- '[/INST]' }}
215
+
216
+ {#- Assistant messages supports text and thinking content. #}
217
+ {%- elif message['role'] == 'assistant' %}
218
+ {%- 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) %}
219
+ {{- raise_exception('Assistant message must have a string or a list of chunks in content or a list of tool calls.') }}
220
+ {%- endif %}
221
+
222
+ {%- if message['content'] %}
223
+ {{- render_content(content=message['content'], context_name='assistant message contents', supported_types_desc='text and thinking', support_thinking=true, support_images=false) -}}
224
+ {%- endif %}
225
+
226
+ {%- if message['tool_calls'] is defined and message['tool_calls'] is not none and message['tool_calls']|length > 0 %}
227
+ {%- for tool in message['tool_calls'] %}
228
+ {{- '[TOOL_CALLS]' }}
229
+ {%- set name = tool['function']['name'] %}
230
+ {%- set arguments = tool['function']['arguments'] %}
231
+ {%- if arguments is not string %}
232
+ {%- set arguments = arguments|tojson|safe %}
233
+ {%- elif arguments == '' %}
234
+ {%- set arguments = '{}' %}
235
+ {%- endif %}
236
+ {{- name ~ '[ARGS]' ~ arguments }}
237
+ {%- endfor %}
238
+ {%- endif %}
239
+
240
+ {{- eos_token }}
241
+
242
+ {#- Tool messages (multimodal). #}
243
+ {%- elif message['role'] == 'tool' %}
244
+ {{- '[TOOL_RESULTS]' -}}
245
+ {{- render_content(content=message['content'], context_name='tool message contents', supported_types_desc='text and image', support_thinking=false, support_images=true) -}}
246
+ {{- '[/TOOL_RESULTS]' }}
247
+
248
+ {#- System messages. #}
249
+ {%- elif message['role'] == 'system' %}
250
+ {{- '[SYSTEM_PROMPT]' -}}
251
+ {{- render_content(content=message['content'], context_name='system message contents', supported_types_desc='text', support_thinking=false, support_images=false) -}}
252
+ {{- '[/SYSTEM_PROMPT]' -}}
253
+
254
+ {#- Raise exception for unsupported roles. #}
255
+ {%- else %}
256
+ {{- raise_exception('Only user, assistant, system and tool roles are supported, got ' ~ message['role'] ~ '.') }}
257
+ {%- endif %}
258
+ {%- endfor %}
config.json ADDED
@@ -0,0 +1,467 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": ["MistralLarge4ForConditionalGeneration"],
3
+ "dtype": "bfloat16",
4
+ "image_token_index": 10,
5
+ "model_type": "mistral_large4",
6
+ "multimodal_projector_bias": false,
7
+ "projector_hidden_act": "gelu",
8
+ "quantization_config": {
9
+ "activation_scheme": "dynamic",
10
+ "modules_to_not_convert": [
11
+ "model.vision_tower",
12
+ "model.multi_modal_projector",
13
+ "lm_head",
14
+ "kv_b_proj",
15
+ "indexer.wk",
16
+ "indexer.weights_proj",
17
+ "kv_a_proj_with_mqa"
18
+ ],
19
+ "quant_method": "fp8",
20
+ "weight_block_size": [
21
+ 128,
22
+ 128
23
+ ]
24
+ },
25
+ "spatial_merge_size": 2,
26
+ "text_config": {
27
+ "attention_bias": false,
28
+ "attention_dropout": 0.0,
29
+ "bos_token_id": 1,
30
+ "eos_token_id": 2,
31
+ "final_logit_softcapping": 30.0,
32
+ "first_k_dense_replace": 1,
33
+ "head_dim": 64,
34
+ "hidden_act": "silu",
35
+ "hidden_size": 6144,
36
+ "index_head_dim": 128,
37
+ "index_n_heads": 32,
38
+ "index_topk": 2048,
39
+ "indexer_types": [
40
+ "full",
41
+ "full",
42
+ "full",
43
+ "full",
44
+ "full",
45
+ "full",
46
+ "full",
47
+ "full",
48
+ "full",
49
+ "full",
50
+ "full",
51
+ "full",
52
+ "full",
53
+ "full",
54
+ "full",
55
+ "full",
56
+ "full",
57
+ "shared",
58
+ "shared",
59
+ "full",
60
+ "full",
61
+ "shared",
62
+ "shared",
63
+ "full",
64
+ "full",
65
+ "shared",
66
+ "shared",
67
+ "full",
68
+ "full",
69
+ "shared",
70
+ "shared",
71
+ "full",
72
+ "full",
73
+ "shared",
74
+ "shared",
75
+ "full",
76
+ "full",
77
+ "shared",
78
+ "shared",
79
+ "full",
80
+ "full",
81
+ "shared",
82
+ "shared",
83
+ "full",
84
+ "full",
85
+ "shared",
86
+ "shared",
87
+ "full",
88
+ "full",
89
+ "shared",
90
+ "shared",
91
+ "full",
92
+ "full",
93
+ "shared",
94
+ "shared",
95
+ "full",
96
+ "full",
97
+ "shared",
98
+ "shared",
99
+ "full",
100
+ "full",
101
+ "shared",
102
+ "shared",
103
+ "full",
104
+ "full",
105
+ "shared",
106
+ "shared",
107
+ "full",
108
+ "full",
109
+ "shared",
110
+ "shared",
111
+ "full"
112
+ ],
113
+ "initializer_range": 0.02,
114
+ "intermediate_size": 24576,
115
+ "kv_lora_rank": 512,
116
+ "kv_source_layers": [
117
+ 0,
118
+ 1,
119
+ 2,
120
+ 3,
121
+ 4,
122
+ 5,
123
+ 6,
124
+ 7,
125
+ 8,
126
+ 9,
127
+ 10,
128
+ 11,
129
+ 12,
130
+ 13,
131
+ 14,
132
+ 15,
133
+ 16,
134
+ 17,
135
+ 18,
136
+ 19,
137
+ 20,
138
+ 21,
139
+ 22,
140
+ 23,
141
+ 24,
142
+ 25,
143
+ 26,
144
+ 27,
145
+ 28,
146
+ 29,
147
+ 30,
148
+ 31,
149
+ 32,
150
+ 33,
151
+ 34,
152
+ 35,
153
+ 36,
154
+ 37,
155
+ 38,
156
+ 35,
157
+ 40,
158
+ 41,
159
+ 42,
160
+ 35,
161
+ 44,
162
+ 45,
163
+ 46,
164
+ 35,
165
+ 48,
166
+ 49,
167
+ 50,
168
+ 35,
169
+ 52,
170
+ 53,
171
+ 54,
172
+ 35,
173
+ 56,
174
+ 57,
175
+ 58,
176
+ 35,
177
+ 60,
178
+ 61,
179
+ 62,
180
+ 35,
181
+ 64,
182
+ 65,
183
+ 66,
184
+ 35,
185
+ 68,
186
+ 69,
187
+ 70,
188
+ 35
189
+ ],
190
+ "layer_types": [
191
+ "indexed_attention",
192
+ "indexed_attention",
193
+ "indexed_attention",
194
+ "indexed_attention",
195
+ "indexed_attention",
196
+ "indexed_attention",
197
+ "indexed_attention",
198
+ "indexed_attention",
199
+ "indexed_attention",
200
+ "indexed_attention",
201
+ "indexed_attention",
202
+ "indexed_attention",
203
+ "indexed_attention",
204
+ "indexed_attention",
205
+ "indexed_attention",
206
+ "indexed_attention",
207
+ "indexed_attention",
208
+ "indexed_attention",
209
+ "indexed_attention",
210
+ "indexed_attention",
211
+ "indexed_attention",
212
+ "indexed_attention",
213
+ "indexed_attention",
214
+ "indexed_attention",
215
+ "indexed_attention",
216
+ "indexed_attention",
217
+ "indexed_attention",
218
+ "indexed_attention",
219
+ "indexed_attention",
220
+ "indexed_attention",
221
+ "indexed_attention",
222
+ "indexed_attention",
223
+ "indexed_attention",
224
+ "indexed_attention",
225
+ "indexed_attention",
226
+ "indexed_attention",
227
+ "indexed_attention",
228
+ "indexed_attention",
229
+ "indexed_attention",
230
+ "indexed_attention",
231
+ "indexed_attention",
232
+ "indexed_attention",
233
+ "indexed_attention",
234
+ "indexed_attention",
235
+ "indexed_attention",
236
+ "indexed_attention",
237
+ "indexed_attention",
238
+ "indexed_attention",
239
+ "indexed_attention",
240
+ "indexed_attention",
241
+ "indexed_attention",
242
+ "indexed_attention",
243
+ "indexed_attention",
244
+ "indexed_attention",
245
+ "indexed_attention",
246
+ "indexed_attention",
247
+ "indexed_attention",
248
+ "indexed_attention",
249
+ "indexed_attention",
250
+ "indexed_attention",
251
+ "indexed_attention",
252
+ "indexed_attention",
253
+ "indexed_attention",
254
+ "indexed_attention",
255
+ "indexed_attention",
256
+ "indexed_attention",
257
+ "indexed_attention",
258
+ "indexed_attention",
259
+ "indexed_attention",
260
+ "indexed_attention",
261
+ "indexed_attention",
262
+ "indexed_attention"
263
+ ],
264
+ "max_position_embeddings": 1048576,
265
+ "mlp_layer_types": [
266
+ "dense",
267
+ "sparse",
268
+ "sparse",
269
+ "sparse",
270
+ "sparse",
271
+ "sparse",
272
+ "sparse",
273
+ "sparse",
274
+ "sparse",
275
+ "sparse",
276
+ "sparse",
277
+ "sparse",
278
+ "sparse",
279
+ "sparse",
280
+ "sparse",
281
+ "sparse",
282
+ "sparse",
283
+ "sparse",
284
+ "sparse",
285
+ "sparse",
286
+ "sparse",
287
+ "sparse",
288
+ "sparse",
289
+ "sparse",
290
+ "sparse",
291
+ "sparse",
292
+ "sparse",
293
+ "sparse",
294
+ "sparse",
295
+ "sparse",
296
+ "sparse",
297
+ "sparse",
298
+ "sparse",
299
+ "sparse",
300
+ "sparse",
301
+ "sparse",
302
+ "sparse",
303
+ "sparse",
304
+ "sparse",
305
+ "sparse",
306
+ "sparse",
307
+ "sparse",
308
+ "sparse",
309
+ "sparse",
310
+ "sparse",
311
+ "sparse",
312
+ "sparse",
313
+ "sparse",
314
+ "sparse",
315
+ "sparse",
316
+ "sparse",
317
+ "sparse",
318
+ "sparse",
319
+ "sparse",
320
+ "sparse",
321
+ "sparse",
322
+ "sparse",
323
+ "sparse",
324
+ "sparse",
325
+ "sparse",
326
+ "sparse",
327
+ "sparse",
328
+ "sparse",
329
+ "sparse",
330
+ "sparse",
331
+ "sparse",
332
+ "sparse",
333
+ "sparse",
334
+ "sparse",
335
+ "sparse",
336
+ "sparse",
337
+ "sparse"
338
+ ],
339
+ "model_type": "mistral_large4_text",
340
+ "moe_intermediate_size": 6144,
341
+ "n_group": 1,
342
+ "n_routed_experts": 128,
343
+ "n_shared_experts": 1,
344
+ "no_rope_layer_interval": 4,
345
+ "no_rope_layers": [
346
+ 1,
347
+ 1,
348
+ 1,
349
+ 0,
350
+ 1,
351
+ 1,
352
+ 1,
353
+ 0,
354
+ 1,
355
+ 1,
356
+ 1,
357
+ 0,
358
+ 1,
359
+ 1,
360
+ 1,
361
+ 0,
362
+ 1,
363
+ 1,
364
+ 1,
365
+ 0,
366
+ 1,
367
+ 1,
368
+ 1,
369
+ 0,
370
+ 1,
371
+ 1,
372
+ 1,
373
+ 0,
374
+ 1,
375
+ 1,
376
+ 1,
377
+ 0,
378
+ 1,
379
+ 1,
380
+ 1,
381
+ 0,
382
+ 1,
383
+ 1,
384
+ 1,
385
+ 0,
386
+ 1,
387
+ 1,
388
+ 1,
389
+ 0,
390
+ 1,
391
+ 1,
392
+ 1,
393
+ 0,
394
+ 1,
395
+ 1,
396
+ 1,
397
+ 0,
398
+ 1,
399
+ 1,
400
+ 1,
401
+ 0,
402
+ 1,
403
+ 1,
404
+ 1,
405
+ 0,
406
+ 1,
407
+ 1,
408
+ 1,
409
+ 0,
410
+ 1,
411
+ 1,
412
+ 1,
413
+ 0,
414
+ 1,
415
+ 1,
416
+ 1,
417
+ 0
418
+ ],
419
+ "num_attention_heads": 64,
420
+ "num_experts_per_tok": 4,
421
+ "num_hidden_layers": 72,
422
+ "num_key_value_heads": 64,
423
+ "output_router_logits": false,
424
+ "pad_token_id": null,
425
+ "qk_head_dim": 128,
426
+ "qk_nope_head_dim": 64,
427
+ "qk_rope_head_dim": 64,
428
+ "rms_norm_eps": 1e-05,
429
+ "rope_parameters": {
430
+ "attention_factor": 1.0,
431
+ "beta_fast": 32,
432
+ "beta_slow": 1,
433
+ "factor": 2048,
434
+ "original_max_position_embeddings": 512,
435
+ "rope_theta": 10000.0,
436
+ "rope_type": "yarn"
437
+ },
438
+ "routed_scaling_factor": 1.0,
439
+ "tie_word_embeddings": false,
440
+ "topk_group": 1,
441
+ "use_cache": true,
442
+ "v_head_dim": 128,
443
+ "vocab_size": 204800
444
+ },
445
+ "tie_word_embeddings": false,
446
+ "transformers_version": "5.21.0.dev0",
447
+ "transformers_weights": "consolidated.safetensors.index.json",
448
+ "vision_config": {
449
+ "attention_dropout": 0.0,
450
+ "head_dim": 128,
451
+ "hidden_act": "silu",
452
+ "hidden_size": 2048,
453
+ "image_size": 1540,
454
+ "initializer_range": 0.02,
455
+ "intermediate_size": 6144,
456
+ "model_type": "pixtral",
457
+ "num_attention_heads": 16,
458
+ "num_channels": 3,
459
+ "num_hidden_layers": 30,
460
+ "patch_size": 14,
461
+ "rope_parameters": {
462
+ "rope_theta": 10000.0,
463
+ "rope_type": "axial"
464
+ }
465
+ },
466
+ "vision_feature_layer": -1
467
+ }
consolidated-00001-of-00054.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f64b4eef07dd2fc1f5e5a6c59ff4fc2cd134237bdf53ea9819926913feee2d68
3
+ size 19974069072
consolidated-00002-of-00054.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a89a22da5c6110cf4cd08260f72b6424571a0dd9d6e38933df2d68948b9c4fb9
3
+ size 19986657736
consolidated-00003-of-00054.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8da115a494e2b6795075181fd853316d2f51a78fe835b064ac95161da56a3846
3
+ size 19999243760
consolidated-00004-of-00054.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e071557a58f9fd4b628fd8d89501806b0aeb07aec420542e71ae66a4a444be03
3
+ size 19986657928
consolidated-00005-of-00054.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ef5c95a0915aac1794d95a6a98e1d1df995d3d2ff246e00a04fb09a98d4faeec
3
+ size 19986657744
consolidated-00006-of-00054.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b8ef2ed1fa3a771d1195649c95a66b293de3f2c9087facbbfd50f8c8d5a81cf8
3
+ size 19974071608
consolidated-00007-of-00054.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:89086a82038ece1d56a3118a0395ea17c804e400c944fcc9a63633afb76a303a
3
+ size 19999243840
consolidated-00008-of-00054.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0738dd3d9ce084efa3f45f715bd9a8f28c039739274711d603fd1684b3d12e25
3
+ size 19986657744
consolidated-00009-of-00054.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d12f83f43a8efc407c71d5b2cb90f00a325c92d9461831d299d7f92929476ca4
3
+ size 19999243088
consolidated-00010-of-00054.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f721b1ae35479405e281b3725deb28539d9c8cf18455e1bcd8c19dbd0c89617b
3
+ size 19999243784
consolidated-00011-of-00054.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:456bab2360594be50bbc5227ee9aab1c68241001b858b581141effcb7c777037
3
+ size 19999243712
consolidated-00012-of-00054.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:272ec96b798f4a3ac5cd3d5c1a3fd82b976764f8bd89a4a55bcc9fc9648d0c6c
3
+ size 19999243928
consolidated-00013-of-00054.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c7f6ddbfbcc129643de7bf8b4218e91234ef2c9d13f1d68272090c580a1e27ed
3
+ size 19999243728
consolidated-00014-of-00054.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ac1d8e1e8ae3ab6433ebc4a82895e7b6460bde66d92641d88a213db565efddbb
3
+ size 19999243712
consolidated-00015-of-00054.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9fde4ada4614b306c33fee4ff4555774682570526ddf05cdbed83e743fc2124c
3
+ size 19999243944
consolidated-00016-of-00054.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3fa0f442927be63fd351b69686dd2c7e38996fad460a2aa0e8a23c98b8f1494e
3
+ size 19999243704
consolidated-00017-of-00054.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:aeeb6473ebfe80013ad9d7898699b031c53b4879389a7f5b6f864aeb31fc1500
3
+ size 19974070776
consolidated-00018-of-00054.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5d1cb886b3faae55f16f00cdc8f79263d3fd6275fd714be681eff28e2c0f178e
3
+ size 19986657928
consolidated-00019-of-00054.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:324835b38731167b483dac01f221f8cc9c2b8aca45a8bef41734e245375fe575
3
+ size 19986657736
consolidated-00020-of-00054.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0351f99488095ae1a0aa5b215142359001187261301bc362bdc6beb273dfb917
3
+ size 19986657592
consolidated-00021-of-00054.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2a05cd5ab00549ef4bd6467184271286dff803bed1633efbd8e3fbd6301a3f44
3
+ size 19986657864
consolidated-00022-of-00054.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4083f2b5713e568670ee8005e04aa699b267c49412301114e37c39d392bdad56
3
+ size 19986657744
consolidated-00023-of-00054.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bdee41df2e099cffa35e5512ad81a824c90f2366190dcd67cc0e29aef3fa2efe
3
+ size 19986657640
consolidated-00024-of-00054.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:16a3e854a1ee43504473872d6d0c4f60aa202b4185ca93740a910c5bab386c37
3
+ size 19986657808
consolidated-00025-of-00054.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:19cdce317cd76979af1eda84e1cd85ea582439ace0271602b23a2d7b1e9c2d12
3
+ size 19986657048
consolidated-00026-of-00054.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:264ac4be6d31b6f7c4c7ee72cc56580b24b84e78017fc2515efa110803f46d6e
3
+ size 19974071640
consolidated-00027-of-00054.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:45e997591466245a93c539f39d1229eeb3ebf4ddd3a541aed268e24c16f24ff1
3
+ size 19999243720
consolidated-00028-of-00054.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8113807f067cfd13a4ad40ddabe47d5833c8cad1ea3383c75340ac6335f34006
3
+ size 19986657744
consolidated-00029-of-00054.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c51b5a8c28a37b70333c3515047b2c6544d32c5a19ea80d0634e18c0434bbefe
3
+ size 19974071744
consolidated-00030-of-00054.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:824217ca3a8b74de6d776b8d612b5ca5cdcfad997b95fd8651b6b6514cd38495
3
+ size 19999243704
consolidated-00031-of-00054.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:54c5ab859c439dec1ea0703c0e67eb7542dae8bea425b0e036c46ea5ac5333bf
3
+ size 19999243760
consolidated-00032-of-00054.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f787042e2e364a16bd97b734109574de302aa08a2ad24492e0b8b6589155fca4
3
+ size 19999243896
consolidated-00033-of-00054.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9883dae1cd021f04fa998df8d7b0b78c7b4a67acdcdb129571e5a3369e0cb9d2
3
+ size 19986657152
consolidated-00034-of-00054.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8265ede925999c75bb4868671614e2fcc6e922a8c810cd8c4a81476f225b4a55
3
+ size 19974071424
consolidated-00035-of-00054.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6741a3defe3fbecb53a94a4ef67692ff5a2b7c6866f2766a8dd62e23c5ea3d9c
3
+ size 19986657864
consolidated-00036-of-00054.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3810e36d351d40d1abb7acc21487127c138480a543bfd0c4f59cdccedb31f17b
3
+ size 19999243712
consolidated-00037-of-00054.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:340ee6a7ee6218e168c0fb722fa68f7115af27bb3b20564ff5006a6e5989956e
3
+ size 19974071672
consolidated-00038-of-00054.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1c03edb9a93241d0372686f5b787bc50a7c37a772cd6fbb5c36546beb3a9b09b
3
+ size 19986657808
consolidated-00039-of-00054.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:323cc73531473bf414c82c079c62b48655a17d22df6de5de4f6343cec2430371
3
+ size 19999243712
consolidated-00040-of-00054.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:43bebdd6abf36432c042818e35d75f41ebaca9af1348417255ad362f6da9fa80
3
+ size 19974071728
consolidated-00041-of-00054.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d0dac7cf1dfaa6e1da866530816632a69af73b433e818c39c29569e721aac605
3
+ size 19986657280
consolidated-00042-of-00054.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c6ec65da7612c458b481ce2dcf1c41b1389c38b474aa77ca8dd92d2238c921a6
3
+ size 19986657440
consolidated-00043-of-00054.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8b734e97fc9f365383ef3fa359df118a2f4e55ef618310814eb7694cec636a1d
3
+ size 19986657712
consolidated-00044-of-00054.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1e250aee73ddcbfa3e8296584b1b64cf38292629be3d3b49a6294e0b74dea84e
3
+ size 19986657744
consolidated-00045-of-00054.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2c66de2e418de25bcf3327c69c73aaa5af826ecae45866dd9ba67c46e836cbc7
3
+ size 19974071560