Firworks commited on
Commit
bb6a6ec
·
verified ·
1 Parent(s): 27e8404

Add NVFP4 quantized checkpoint

Browse files
.gitattributes CHANGED
@@ -33,3 +33,4 @@ 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
+ tokenizer.json filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ datasets:
3
+ - Rombo-Org/Optimized_Reasoning
4
+ base_model:
5
+ - CohereLabs/command-a-reasoning-08-2025
6
+ ---
7
+ # command-a-reasoning-08-2025-nvfp4
8
+
9
+ **Format:** NVFP4 — weights & activations quantized to FP4 with dual scaling.
10
+ **Base model:** `CohereLabs/command-a-reasoning-08-2025`
11
+ **How it was made:** One-shot calibration with LLM Compressor (NVFP4 recipe), long-seq calibration with Rombo-Org/Optimized_Reasoning.
12
+
13
+ > Notes: Keep `lm_head` in high precision; calibrate on long, domain-relevant sequences.
14
+
15
+ Check the original model card for information about this model.
16
+
17
+ # Running the model with VLLM in Docker
18
+ ```sh
19
+ sudo docker run --runtime nvidia --gpus all -p 8000:8000 --ipc=host vllm/vllm-openai:nightly --model Firworks/command-a-reasoning-08-2025-nvfp4 --dtype auto --max-model-len 32768
20
+ ```
21
+ This was tested on a B200 cloud instance.
22
+
23
+ If there are other models you're interested in seeing quantized to NVFP4 for use on the DGX Spark, or other modern Blackwell (or newer) cards let me know. I'm trying to make more NVFP4 models available to allow more people to try them out.
chat_template.jinja ADDED
@@ -0,0 +1,229 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {%- set reasoning = reasoning if reasoning is not undefined else true -%}
2
+ {%- set skip_thinking = skip_thinking if skip_thinking is not undefined else (not reasoning) -%}
3
+ {%- set safety_mode = safety_mode if safety_mode is not undefined else "CONTEXTUAL" -%}
4
+ {{ bos_token }}
5
+ {%- macro document_turn(documents) -%}
6
+ {# format documents into chat turn -#}
7
+ <|START_OF_TURN_TOKEN|><|CHATBOT_TOKEN|>{%- if not skip_thinking -%}<|START_THINKING|>I will look through the document to address the users needs.<|END_THINKING|>{%- endif -%}<|START_ACTION|>[
8
+ {"tool_call_id": "0", "tool_name": "direct-injected-document", "parameters": {}}
9
+ ]<|END_ACTION|><|END_OF_TURN_TOKEN|><|START_OF_TURN_TOKEN|><|SYSTEM_TOKEN|><|START_TOOL_RESULT|>[
10
+ {
11
+ "tool_call_id": "0",
12
+ "results": {
13
+ {%- for doc in documents %}
14
+ "{{ loop.index0 }}": {{doc|tojson}}{% if not loop.last %},
15
+ {%- endif %}
16
+ {%- endfor %}
17
+ },
18
+ "is_error": null
19
+ }
20
+ ]<|END_TOOL_RESULT|><|END_OF_TURN_TOKEN|>{%- endmacro %}
21
+ {%- macro tool_call_id_to_int(messages, tool_call_id) %}
22
+ {%- if regen_tool_call_ids -%}
23
+ {%- set counter = namespace(value=0) %}
24
+ {%- set tool_call_id_seen = namespace(value=false) %}
25
+ {%- for msg in messages %}
26
+ {%- if msg.tool_calls %}
27
+ {%- for tool_call in msg.tool_calls %}
28
+ {%- if tool_call.id == tool_call_id and not tool_call_id_seen.value -%}
29
+ {{ counter.value }}
30
+ {%- set tool_call_id_seen.value = true %}
31
+ {%- endif %}
32
+ {%- set counter.value = counter.value + 1 %}
33
+ {%- endfor %}
34
+ {%- endif %}
35
+ {%- endfor %}
36
+ {%- else -%}
37
+ {{ tool_call_id }}
38
+ {%- endif -%}
39
+ {%- endmacro %}
40
+ {%- macro format_tool_message(messages, tool_msg) -%}
41
+ {#- format tool message #}{
42
+ "tool_call_id": "{{ tool_call_id_to_int(messages, tool_msg.tool_call_id) }}",
43
+ "results": {
44
+ {%- if tool_msg.content is mapping %}
45
+ "0": {{ tool_msg.content|tojson }}
46
+ {%- else %}
47
+ {%- for content in tool_msg.content %}
48
+ "{{ loop.index0 }}": {{ content|tojson }}{% if not loop.last %},{% endif %}
49
+ {%- endfor %}
50
+ {%- endif %}
51
+ },
52
+ "is_error": null
53
+ }
54
+ {%- endmacro -%}
55
+ {%- macro print_msg(msg) %}
56
+ {%- if msg.content is string -%}
57
+ {{ msg.content }}
58
+ {%- else %}
59
+ {%- set last_was_text = namespace(value=false) %}
60
+ {%- for content in msg.content %}
61
+ {%- if content.type|lower == "text" -%}
62
+ {%- if last_was_text.value %}{{ "\n" }}{% endif -%}
63
+ {{ content.text }}
64
+ {%- set last_was_text.value = true -%}
65
+ {%- else -%}
66
+ {%- set last_was_text.value = false -%}
67
+ {%- endif -%}
68
+ {%- if content.type|lower == "image" -%}
69
+ {{ content.data }}
70
+ {%- endif -%}
71
+ {%- endfor %}
72
+ {%- set last_was_text = false -%}
73
+ {%- endif %}
74
+ {%- endmacro %}
75
+ {%- macro print_thinking(msg) %}
76
+ {%- if msg.thinking -%}
77
+ {{ msg.thinking }}
78
+ {%- elif msg.content[0].thinking -%}
79
+ {{ msg.content[0].thinking }}
80
+ {%- endif %}
81
+ {%- endmacro %}
82
+ {%- if messages and messages[0]['role']|lower == 'system' %}{%- set developer_preamble = messages[0] %}{% endif %}
83
+ {%- set json_object = true if response_format and response_format.type == "json_object" else false %}
84
+ {%- set json_schema = (response_format.json_schema or response_format.schema) if response_format %}
85
+ {%- set json_mode = json_object or json_schema %}
86
+ {%- set enable_citations = enable_citations if enable_citations is not undefined else false %}
87
+ {%- set tool_idx = namespace(value=0) %}
88
+ {%- set tool_ids_seen = namespace(value=[]) %}
89
+ {%- set regen_tool_call_ids = regen_tool_call_ids if regen_tool_call_ids is not undefined else true -%}
90
+ {%- set sent_documents = namespace(value=false) -%}
91
+ <|START_OF_TURN_TOKEN|><|SYSTEM_TOKEN|># System Preamble
92
+ {% if safety_mode|upper == 'STRICT' -%}
93
+ You are in strict safety mode. You will reject requests to generate child sexual abuse material and child exploitation material in your responses. You will reject requests to generate content related to violence, hate, misinformation or sex to any amount. You will avoid using profanity. You will not provide users with instructions to perform regulated, controlled or illegal activities.
94
+ {%- else -%}
95
+ You are in contextual safety mode. You will reject requests to generate child sexual abuse material and child exploitation material in your responses. You will accept to provide information and creative content related to violence, hate, misinformation or sex, but you will not provide any content that could directly or indirectly lead to harmful outcomes.
96
+ {%- endif %}
97
+
98
+ Your information cutoff date is June 2024.
99
+
100
+ You have been trained on data in English, French, Spanish, Italian, German, Portuguese, Japanese, Korean, Modern Standard Arabic, Mandarin, Russian, Indonesian, Turkish, Dutch, Polish, Persian, Vietnamese, Czech, Hindi, Ukrainian, Romanian, Greek and Hebrew but have the ability to speak many more languages.
101
+ {% if reasoning %}
102
+ ## Reasoning
103
+ Start your response by writing <|START_THINKING|>. Then slowly and carefully reason through the problem. If you notice that you've made a mistake, you can correct it. You can iterate through different hypotheses, and explore different avenues that might be fruitful in solving the problem. Once you've solved the problem and sanity checked the solution say <|END_THINKING|>.
104
+ When you are ready to respond write <|START_RESPONSE|>. Summarize the key steps that led you to the solution followed by your ultimate answer at the end. Once you are done, end your response with <|END_RESPONSE|>.
105
+ {% endif %}
106
+ {%- if tools or documents or reasoning %}
107
+ You have been trained to have advanced reasoning and tool-use capabilities and you should make best use of these skills to serve user's requests.
108
+ {% if not skip_thinking %}
109
+ ## Tool Use
110
+ Think about how you can make best use of the provided tools to help with the task and come up with a high level plan that you will execute first.
111
+
112
+ 0. Start by writing <|START_THINKING|> followed by a detailed step by step plan of how you will solve the problem. For each step explain your thinking fully and give details of required tool calls (if needed). Unless specified otherwise, you write your plan in natural language. When you finish, close it out with <|END_THINKING|>.
113
+ {%- if not reasoning %}
114
+ You can optionally choose to skip this step when the user request is so straightforward to address that only a trivial plan would be needed.
115
+ NOTE: You MUST skip this step when you are directly responding to the user's request without using any tools.
116
+ {%- endif %}
117
+
118
+ Then carry out your plan by repeatedly executing the following steps.
119
+ 1. Action: write <|START_ACTION|> followed by a list of JSON-formatted tool calls, with each one containing "tool_name" and "parameters" fields.
120
+ When there are multiple tool calls which are completely independent of each other (i.e. they can be executed in parallel), you should list them out all together in one step. When you finish, close it out with <|END_ACTION|>.
121
+ 2. Observation: you will then receive results of those tool calls in JSON format in the very next turn, wrapped around by <|START_TOOL_RESULT|> and <|END_TOOL_RESULT|>. Carefully observe those results and think about what to do next. Note that these results will be provided to you in a separate turn. NEVER hallucinate results.
122
+ Every tool call produces a list of results (when a tool call produces no result or a single result, it'll still get wrapped inside a list). Each result is clearly linked to its originating tool call via its "tool_call_id".
123
+ 3. Reflection: start the next turn by writing <|START_THINKING|> followed by what you've figured out so far, any changes you need to make to your plan, and what you will do next. When you finish, close it out with <|END_THINKING|>.
124
+ {%- if not reasoning %}
125
+ You can optionally choose to skip this step when everything is going according to plan and no special pieces of information or reasoning chains need to be recorded.
126
+ NOTE: You MUST skip this step when you are done with tool-use actions and are ready to respond to the user.
127
+ {%- endif %}
128
+
129
+ You can repeat the above 3 steps multiple times (could be 0 times too if no suitable tool calls are available or needed), until you decide it's time to finally respond to the user.
130
+
131
+ 4. Response: then break out of the loop and write <|START_RESPONSE|> followed by a piece of text which serves as a response to the user's last request. Use all previous tool calls and results to help you when formulating your response. When you finish, close it out with <|END_RESPONSE|>.
132
+ {% else %}
133
+ ## Tool Use
134
+ Carry out the task by repeatedly executing the following steps.
135
+ 1. Action: write <|START_ACTION|> followed by a list of JSON-formatted tool calls, with each one containing "tool_name" and "parameters" fields.
136
+ When there are multiple tool calls which are completely independent of each other (i.e. they can be executed in parallel), you should list them out all together in one step. When you finish, close it out with <|END_ACTION|>.
137
+ 2. Observation: you will then receive results of those tool calls in JSON format in the very next turn, wrapped around by <|START_TOOL_RESULT|> and <|END_TOOL_RESULT|>. Carefully observe those results and think about what to do next. Note that these results will be provided to you in a separate turn. NEVER hallucinate results.
138
+ Every tool call produces a list of results (when a tool call produces no result or a single result, it'll still get wrapped inside a list). Each result is clearly linked to its originating tool call via its "tool_call_id".
139
+
140
+ You can repeat the above 2 steps multiple times (could be 0 times too if no suitable tool calls are available or needed), until you decide it's time to finally respond to the user.
141
+
142
+ 3. Response: then break out of the loop and write <|START_RESPONSE|> followed by a piece of text which serves as a response to the user's last request. Use all previous tool calls and results to help you when formulating your response. When you finish, close it out with <|END_RESPONSE|>.
143
+ {% endif %}
144
+ {%- if enable_citations %}
145
+ ## Grounding
146
+ Importantly, note that {% if not skip_thinking %}"Reflection" and {% endif %}"Response" above can be grounded.
147
+ Grounding means you associate pieces of texts (called "spans") with those specific tool results that support them (called "sources"). And you use a pair of tags "<co>" and "</co>" to indicate when a span can be grounded onto a list of sources, listing them out in the closing tag. Sources from the same tool call are grouped together and listed as "{tool_call_id}:[{list of result indices}]", before they are joined together by ",". E.g., "<co>span</co: 0:[1,2],1:[0]>" means that "span" is supported by result 1 and 2 from "tool_call_id=0" as well as result 0 from "tool_call_id=1".
148
+ {% endif %}
149
+ ## Available Tools
150
+ Here is the list of tools that you have available to you.
151
+ You can ONLY use the tools listed here. When a tool is not listed below, it is NOT available and you should NEVER attempt to use it.
152
+ Each tool is represented as a JSON object with fields like "name", "description", "parameters" (per JSON Schema), and optionally, "responses" (per JSON Schema).
153
+
154
+ ```json
155
+ [
156
+ {%- if documents %}
157
+ {"name": "direct-injected-document", "description": "This is a special tool to directly inject user-uploaded documents into the chat as additional context. DO NOT use this tool by yourself!", "parameters": {"type": "object", "properties": {}, "required": []}, "responses": {"200": {"description": "Successfully returned a list of chunked text snippets from the directly uploaded documents.", "content": {"application/json": {"schema": {"type": "array", "items": {"type": "object", "required": ["url", "snippet"], "properties": {"url": {"type": "string", "description": "The url of the uploaded document."}, "snippet": {"type": "string", "description": "The text snippet for the returned document chunk."}}}}}}}}}{%- if tools %},{% endif %}
158
+ {%- endif %}
159
+ {%- if tools %}
160
+ {%- for tool in tools %}
161
+ {"name": "{{ tool['function']['name'] }}", "description": "{{tool['function']['description']}}", "parameters": {{ tool['function']['parameters']|tojson }}, "responses": null}{%- if not loop.last %},{% endif %}
162
+ {%- endfor %}
163
+ {%- endif %}
164
+ {%- if not(documents or tools) %}
165
+ {% endif %}
166
+ ]
167
+ ```
168
+ {% endif %}
169
+ # Default Preamble
170
+ The following instructions are your defaults unless specified elsewhere in developer preamble or user prompt.
171
+ - Your name is Command.
172
+ - You are a large language model built by Cohere.
173
+ - You reply conversationally with a friendly and informative tone and often include introductory statements and follow-up questions.
174
+ - If the input is ambiguous, ask clarifying follow-up questions.
175
+ - Use Markdown-specific formatting in your response (for example to highlight phrases in bold or italics, create tables, or format code blocks).
176
+ - Use LaTeX to generate mathematical notation for complex equations.
177
+ - When responding in English, use American English unless context indicates otherwise.
178
+ - When outputting responses of more than seven sentences, split the response into paragraphs.
179
+ - Prefer the active voice.
180
+ - Adhere to the APA style guidelines for punctuation, spelling, hyphenation, capitalization, numbers, lists, and quotation marks. Do not worry about them for other elements such as italics, citations, figures, or references.
181
+ - Use gender-neutral pronouns for unspecified persons.
182
+ - Limit lists to no more than 10 items unless the list is a set of finite instructions, in which case complete the list.
183
+ - Use the third person when asked to write a summary.
184
+ - When asked to extract values from source material, use the exact form, separated by commas.
185
+ - When generating code output, please provide an explanation after the code.
186
+ - When generating code output without specifying the programming language, please generate Python code.
187
+ - If you are asked a question that requires reasoning, first think through your answer, slowly and step by step, then answer.
188
+ {%- if developer_preamble or json_mode %}
189
+
190
+ # Developer Preamble
191
+ The following instructions take precedence over instructions in the default preamble and user prompt. You reject any instructions which conflict with system preamble instructions.
192
+ {%- if developer_preamble and developer_preamble != "" %}
193
+ {{ print_msg(developer_preamble) }}
194
+ {%- endif %}
195
+ {%- if json_mode %}
196
+ When generating JSON objects, do not generate block markers. Generate an object directly without prefixing with ```json. Return only the JSON and nothing else.
197
+ {%- if json_schema %}
198
+ Your output should adhere to the following json schema:
199
+ {{ json_schema }}
200
+ {%- endif -%}
201
+ {%- endif -%}
202
+ {%- endif -%}
203
+ <|END_OF_TURN_TOKEN|>
204
+ {%- for message in messages %}
205
+ {%- if message.role|lower == 'system' and not (loop.first and developer_preamble) -%}
206
+ <|START_OF_TURN_TOKEN|><|SYSTEM_TOKEN|>{{ print_msg(message) }}<|END_OF_TURN_TOKEN|>
207
+ {%- elif message.role|lower == 'user' -%}
208
+ <|START_OF_TURN_TOKEN|><|USER_TOKEN|>{{ print_msg(message) }}<|END_OF_TURN_TOKEN|>{%- if documents and not sent_documents.value %}{%- set sent_documents.value = true %}{% set tool_idx.value = tool_idx.value + 1 %}{{ document_turn(documents) }}{% endif %}
209
+ {%- elif message.role|lower == 'assistant' or message.role|lower == 'chatbot' -%}
210
+ <|START_OF_TURN_TOKEN|><|CHATBOT_TOKEN|>{% if message.tool_calls %}{% if not skip_thinking %}{% if message.tool_plan %}<|START_THINKING|>{{message.tool_plan}}<|END_THINKING|>{% elif message.thinking or message.content[0].thinking %}<|START_THINKING|>{{ print_thinking(message) }}<|END_THINKING|>{% endif %}{% endif %}<|START_ACTION|>[
211
+ {%- for tc in message.tool_calls %}
212
+ {"tool_call_id": "{%- if regen_tool_call_ids -%}{{ tool_idx.value }}{%- else -%}{{ tc.id }}{%- endif -%}", "tool_name": "{{ tc['function']['name'] }}", "parameters": {{ tc['function']['arguments']|tojson }}}{% if not loop.last %},{% endif %}
213
+ {%- set tool_idx.value = tool_idx.value + 1 %}
214
+ {%- endfor %}
215
+ ]<|END_ACTION|><|END_OF_TURN_TOKEN|>{% else -%}{% if (message.thinking or message.content[0].thinking) and not skip_thinking %}<|START_THINKING|>{{ print_thinking(message) }}<|END_THINKING|>{% endif %}<|START_RESPONSE|>{{ print_msg(message) }}<|END_RESPONSE|><|END_OF_TURN_TOKEN|>{% endif %}
216
+ {%- elif message.role|lower == 'tool' and message.tool_call_id not in tool_ids_seen.value -%}
217
+ <|START_OF_TURN_TOKEN|><|SYSTEM_TOKEN|><|START_TOOL_RESULT|>[
218
+ {{ format_tool_message(messages, message) }}
219
+ {%- for msg in messages[loop.index0 + 1:] %}
220
+ {%- if msg.role|lower == 'tool' %},
221
+ {{ format_tool_message(messages, msg) }}
222
+ {%- set tool_ids_seen.value = tool_ids_seen.value + [msg.tool_call_id] %}
223
+ {%- else %}
224
+ {%- break %}
225
+ {%- endif %}
226
+ {%- endfor %}
227
+ ]<|END_TOOL_RESULT|><|END_OF_TURN_TOKEN|>
228
+ {%- endif %}
229
+ {%- endfor %}{%- if add_generation_prompt -%}<|START_OF_TURN_TOKEN|><|CHATBOT_TOKEN|>{%- endif %}
config.json ADDED
@@ -0,0 +1,154 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_sliding_window_pattern": 4,
3
+ "architectures": [
4
+ "Cohere2ForCausalLM"
5
+ ],
6
+ "attention_bias": false,
7
+ "attention_dropout": 0.0,
8
+ "bos_token_id": 5,
9
+ "dtype": "bfloat16",
10
+ "eos_token_id": 255001,
11
+ "head_dim": 128,
12
+ "hidden_act": "silu",
13
+ "hidden_size": 12288,
14
+ "initializer_range": 0.02,
15
+ "intermediate_size": 36864,
16
+ "layer_norm_eps": 1e-05,
17
+ "layer_types": [
18
+ "sliding_attention",
19
+ "sliding_attention",
20
+ "sliding_attention",
21
+ "full_attention",
22
+ "sliding_attention",
23
+ "sliding_attention",
24
+ "sliding_attention",
25
+ "full_attention",
26
+ "sliding_attention",
27
+ "sliding_attention",
28
+ "sliding_attention",
29
+ "full_attention",
30
+ "sliding_attention",
31
+ "sliding_attention",
32
+ "sliding_attention",
33
+ "full_attention",
34
+ "sliding_attention",
35
+ "sliding_attention",
36
+ "sliding_attention",
37
+ "full_attention",
38
+ "sliding_attention",
39
+ "sliding_attention",
40
+ "sliding_attention",
41
+ "full_attention",
42
+ "sliding_attention",
43
+ "sliding_attention",
44
+ "sliding_attention",
45
+ "full_attention",
46
+ "sliding_attention",
47
+ "sliding_attention",
48
+ "sliding_attention",
49
+ "full_attention",
50
+ "sliding_attention",
51
+ "sliding_attention",
52
+ "sliding_attention",
53
+ "full_attention",
54
+ "sliding_attention",
55
+ "sliding_attention",
56
+ "sliding_attention",
57
+ "full_attention",
58
+ "sliding_attention",
59
+ "sliding_attention",
60
+ "sliding_attention",
61
+ "full_attention",
62
+ "sliding_attention",
63
+ "sliding_attention",
64
+ "sliding_attention",
65
+ "full_attention",
66
+ "sliding_attention",
67
+ "sliding_attention",
68
+ "sliding_attention",
69
+ "full_attention",
70
+ "sliding_attention",
71
+ "sliding_attention",
72
+ "sliding_attention",
73
+ "full_attention",
74
+ "sliding_attention",
75
+ "sliding_attention",
76
+ "sliding_attention",
77
+ "full_attention",
78
+ "sliding_attention",
79
+ "sliding_attention",
80
+ "sliding_attention",
81
+ "full_attention"
82
+ ],
83
+ "logit_scale": 0.25,
84
+ "max_position_embeddings": 500000,
85
+ "model_type": "cohere2",
86
+ "num_attention_heads": 96,
87
+ "num_hidden_layers": 64,
88
+ "num_key_value_heads": 8,
89
+ "order_of_interleaved_layers": "local_attn_first",
90
+ "pad_token_id": 0,
91
+ "position_embedding_type": "rope_gptj",
92
+ "quantization_config": {
93
+ "config_groups": {
94
+ "group_0": {
95
+ "format": "nvfp4-pack-quantized",
96
+ "input_activations": {
97
+ "actorder": null,
98
+ "block_structure": null,
99
+ "dynamic": "local",
100
+ "group_size": 16,
101
+ "num_bits": 4,
102
+ "observer": "static_minmax",
103
+ "observer_kwargs": {},
104
+ "scale_dtype": "torch.float8_e4m3fn",
105
+ "strategy": "tensor_group",
106
+ "symmetric": true,
107
+ "type": "float",
108
+ "zp_dtype": null
109
+ },
110
+ "output_activations": null,
111
+ "targets": [
112
+ "Linear"
113
+ ],
114
+ "weights": {
115
+ "actorder": null,
116
+ "block_structure": null,
117
+ "dynamic": false,
118
+ "group_size": 16,
119
+ "num_bits": 4,
120
+ "observer": "static_minmax",
121
+ "observer_kwargs": {},
122
+ "scale_dtype": "torch.float8_e4m3fn",
123
+ "strategy": "tensor_group",
124
+ "symmetric": true,
125
+ "type": "float",
126
+ "zp_dtype": null
127
+ }
128
+ }
129
+ },
130
+ "format": "nvfp4-pack-quantized",
131
+ "global_compression_ratio": null,
132
+ "ignore": [
133
+ "lm_head"
134
+ ],
135
+ "kv_cache_scheme": null,
136
+ "quant_method": "compressed-tensors",
137
+ "quantization_status": "compressed",
138
+ "sparsity_config": {},
139
+ "transform_config": {},
140
+ "version": "0.12.3.a20251114"
141
+ },
142
+ "rope_scaling": null,
143
+ "rope_theta": 50000,
144
+ "rotary_pct": 1.0,
145
+ "sliding_window": 4096,
146
+ "transformers_version": "4.57.0",
147
+ "use_cache": true,
148
+ "use_embedding_sharing": true,
149
+ "use_gated_activation": true,
150
+ "use_parallel_block": true,
151
+ "use_parallel_embedding": true,
152
+ "use_qk_norm": false,
153
+ "vocab_size": 256000
154
+ }
generation_config.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "bos_token_id": 5,
4
+ "do_sample": true,
5
+ "eos_token_id": 255001,
6
+ "pad_token_id": 0,
7
+ "transformers_version": "4.57.0"
8
+ }
model-00001-of-00015.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:234c33c2d1249c5728bc4553694816013bc694efef6d41f3d757e68c4a10db77
3
+ size 6291456144
model-00002-of-00015.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:941ec9046564fd0722dfeccc46cfd53f5b70743b7576b5dbdf88610ce33574cf
3
+ size 4926351432
model-00003-of-00015.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e5fb5ca4623e5b7abe6f37edc7154e87a6b33b47a4bae3587cb87633a20358e5
3
+ size 4997128904
model-00004-of-00015.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6f03283b0a038e6ecb89af9720aa6e0159f3a459cfa8ca75f320410be2637ecc
3
+ size 4997129040
model-00005-of-00015.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:52a8399c5a5607b2c167c1e47b96917f844e05dbb8c67f5fc0cad157dabb7d08
3
+ size 4997153736
model-00006-of-00015.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0e72d98519baceb1ae1467cf8ab9a0cb20578257097fba06593daaf5d61b97fe
3
+ size 4926351592
model-00007-of-00015.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bf1538a7d8c0bfce35e498e7458d497d4a913f9782fd0aae9d33184537048862
3
+ size 4997129048
model-00008-of-00015.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:de0cfdeda4633635e48637eb57972edbc1fe03f9fbfbf629b36244cc38fcee4f
3
+ size 4997129040
model-00009-of-00015.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4bb796ba8c1aedef700c9f273ace9b0f608c0b6a16b93feee6bef5e3d4ed246a
3
+ size 4997153736
model-00010-of-00015.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cb5f4e967a38ac358e84f509849608d392abf4927b7d65cae7756930bfa8b845
3
+ size 4926351592
model-00011-of-00015.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:68063d7df0f8d846c47899b4cea81ed09fbb71c352293f1f8da7a51fddfbf73e
3
+ size 4997129048
model-00012-of-00015.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7664c5d0b73aeeafc0cf0b2f84435dbe164539f5424c47a94ce6850f7538a034
3
+ size 4997129040
model-00013-of-00015.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a92f50916dd9b091e13df42499feccbca224a8e1ace2cc1d0dbbb156c42075ab
3
+ size 4997153736
model-00014-of-00015.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6d373ae46181496d3cc87e6ef2cc37f41e42ac48dd83817e994128d5bbd3dbd6
3
+ size 6291456128
model-00015-of-00015.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fe6b692c4d0454cf9d057298da468fef7065f96d1e4c423a0d93e708b71581cf
3
+ size 948489568
model.safetensors.index.json ADDED
The diff for this file is too large to render. See raw diff
 
recipe.yaml ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ default_stage:
2
+ default_modifiers:
3
+ QuantizationModifier:
4
+ targets: [Linear]
5
+ ignore: [lm_head, 're:visual.*', 're:.*vision_tower.*', 're:.*video_tower.*', 're:.*audio_tower.*',
6
+ 're:.*multi_modal_projector.*']
7
+ scheme: NVFP4
special_tokens_map.json ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "additional_special_tokens": [
3
+ "<|START_RESPONSE|>",
4
+ "<|END_RESPONSE|>"
5
+ ],
6
+ "bos_token": {
7
+ "content": "<BOS_TOKEN>",
8
+ "lstrip": false,
9
+ "normalized": false,
10
+ "rstrip": false,
11
+ "single_word": false
12
+ },
13
+ "eos_token": {
14
+ "content": "<|END_OF_TURN_TOKEN|>",
15
+ "lstrip": false,
16
+ "normalized": false,
17
+ "rstrip": false,
18
+ "single_word": false
19
+ },
20
+ "pad_token": {
21
+ "content": "<PAD>",
22
+ "lstrip": false,
23
+ "normalized": false,
24
+ "rstrip": false,
25
+ "single_word": false
26
+ },
27
+ "unk_token": {
28
+ "content": "<UNK>",
29
+ "lstrip": false,
30
+ "normalized": false,
31
+ "rstrip": false,
32
+ "single_word": false
33
+ }
34
+ }
tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:636859f6aaf5c8f579f1f5a92aa2ae4650253c960e1eae85d3edb01b107307d1
3
+ size 20125021
tokenizer_config.json ADDED
@@ -0,0 +1,352 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_bos_token": true,
3
+ "add_eos_token": false,
4
+ "add_prefix_space": false,
5
+ "added_tokens_decoder": {
6
+ "0": {
7
+ "content": "<PAD>",
8
+ "lstrip": false,
9
+ "normalized": false,
10
+ "rstrip": false,
11
+ "single_word": false,
12
+ "special": true
13
+ },
14
+ "1": {
15
+ "content": "<UNK>",
16
+ "lstrip": false,
17
+ "normalized": false,
18
+ "rstrip": false,
19
+ "single_word": false,
20
+ "special": true
21
+ },
22
+ "2": {
23
+ "content": "<CLS>",
24
+ "lstrip": false,
25
+ "normalized": false,
26
+ "rstrip": false,
27
+ "single_word": false,
28
+ "special": true
29
+ },
30
+ "3": {
31
+ "content": "<SEP>",
32
+ "lstrip": false,
33
+ "normalized": false,
34
+ "rstrip": false,
35
+ "single_word": false,
36
+ "special": true
37
+ },
38
+ "4": {
39
+ "content": "<MASK_TOKEN>",
40
+ "lstrip": false,
41
+ "normalized": false,
42
+ "rstrip": false,
43
+ "single_word": false,
44
+ "special": true
45
+ },
46
+ "5": {
47
+ "content": "<BOS_TOKEN>",
48
+ "lstrip": false,
49
+ "normalized": false,
50
+ "rstrip": false,
51
+ "single_word": false,
52
+ "special": true
53
+ },
54
+ "6": {
55
+ "content": "<EOS_TOKEN>",
56
+ "lstrip": false,
57
+ "normalized": false,
58
+ "rstrip": false,
59
+ "single_word": false,
60
+ "special": true
61
+ },
62
+ "7": {
63
+ "content": "<EOP_TOKEN>",
64
+ "lstrip": false,
65
+ "normalized": false,
66
+ "rstrip": false,
67
+ "single_word": false,
68
+ "special": true
69
+ },
70
+ "255000": {
71
+ "content": "<|START_OF_TURN_TOKEN|>",
72
+ "lstrip": false,
73
+ "normalized": false,
74
+ "rstrip": false,
75
+ "single_word": false,
76
+ "special": false
77
+ },
78
+ "255001": {
79
+ "content": "<|END_OF_TURN_TOKEN|>",
80
+ "lstrip": false,
81
+ "normalized": false,
82
+ "rstrip": false,
83
+ "single_word": false,
84
+ "special": true
85
+ },
86
+ "255002": {
87
+ "content": "<|YES_TOKEN|>",
88
+ "lstrip": false,
89
+ "normalized": false,
90
+ "rstrip": false,
91
+ "single_word": false,
92
+ "special": false
93
+ },
94
+ "255003": {
95
+ "content": "<|NO_TOKEN|>",
96
+ "lstrip": false,
97
+ "normalized": false,
98
+ "rstrip": false,
99
+ "single_word": false,
100
+ "special": false
101
+ },
102
+ "255004": {
103
+ "content": "<|GOOD_TOKEN|>",
104
+ "lstrip": false,
105
+ "normalized": false,
106
+ "rstrip": false,
107
+ "single_word": false,
108
+ "special": false
109
+ },
110
+ "255005": {
111
+ "content": "<|BAD_TOKEN|>",
112
+ "lstrip": false,
113
+ "normalized": false,
114
+ "rstrip": false,
115
+ "single_word": false,
116
+ "special": false
117
+ },
118
+ "255006": {
119
+ "content": "<|USER_TOKEN|>",
120
+ "lstrip": false,
121
+ "normalized": false,
122
+ "rstrip": false,
123
+ "single_word": false,
124
+ "special": false
125
+ },
126
+ "255007": {
127
+ "content": "<|CHATBOT_TOKEN|>",
128
+ "lstrip": false,
129
+ "normalized": false,
130
+ "rstrip": false,
131
+ "single_word": false,
132
+ "special": false
133
+ },
134
+ "255008": {
135
+ "content": "<|SYSTEM_TOKEN|>",
136
+ "lstrip": false,
137
+ "normalized": false,
138
+ "rstrip": false,
139
+ "single_word": false,
140
+ "special": false
141
+ },
142
+ "255009": {
143
+ "content": "<|USER_0_TOKEN|>",
144
+ "lstrip": false,
145
+ "normalized": false,
146
+ "rstrip": false,
147
+ "single_word": false,
148
+ "special": false
149
+ },
150
+ "255010": {
151
+ "content": "<|USER_1_TOKEN|>",
152
+ "lstrip": false,
153
+ "normalized": false,
154
+ "rstrip": false,
155
+ "single_word": false,
156
+ "special": false
157
+ },
158
+ "255011": {
159
+ "content": "<|USER_2_TOKEN|>",
160
+ "lstrip": false,
161
+ "normalized": false,
162
+ "rstrip": false,
163
+ "single_word": false,
164
+ "special": false
165
+ },
166
+ "255012": {
167
+ "content": "<|USER_3_TOKEN|>",
168
+ "lstrip": false,
169
+ "normalized": false,
170
+ "rstrip": false,
171
+ "single_word": false,
172
+ "special": false
173
+ },
174
+ "255013": {
175
+ "content": "<|USER_4_TOKEN|>",
176
+ "lstrip": false,
177
+ "normalized": false,
178
+ "rstrip": false,
179
+ "single_word": false,
180
+ "special": false
181
+ },
182
+ "255014": {
183
+ "content": "<|USER_5_TOKEN|>",
184
+ "lstrip": false,
185
+ "normalized": false,
186
+ "rstrip": false,
187
+ "single_word": false,
188
+ "special": false
189
+ },
190
+ "255015": {
191
+ "content": "<|USER_6_TOKEN|>",
192
+ "lstrip": false,
193
+ "normalized": false,
194
+ "rstrip": false,
195
+ "single_word": false,
196
+ "special": false
197
+ },
198
+ "255016": {
199
+ "content": "<|USER_7_TOKEN|>",
200
+ "lstrip": false,
201
+ "normalized": false,
202
+ "rstrip": false,
203
+ "single_word": false,
204
+ "special": false
205
+ },
206
+ "255017": {
207
+ "content": "<|USER_8_TOKEN|>",
208
+ "lstrip": false,
209
+ "normalized": false,
210
+ "rstrip": false,
211
+ "single_word": false,
212
+ "special": false
213
+ },
214
+ "255018": {
215
+ "content": "<|USER_9_TOKEN|>",
216
+ "lstrip": false,
217
+ "normalized": false,
218
+ "rstrip": false,
219
+ "single_word": false,
220
+ "special": false
221
+ },
222
+ "255019": {
223
+ "content": "<|START_THINKING|>",
224
+ "lstrip": false,
225
+ "normalized": false,
226
+ "rstrip": false,
227
+ "single_word": false,
228
+ "special": false
229
+ },
230
+ "255020": {
231
+ "content": "<|END_THINKING|>",
232
+ "lstrip": false,
233
+ "normalized": false,
234
+ "rstrip": false,
235
+ "single_word": false,
236
+ "special": false
237
+ },
238
+ "255021": {
239
+ "content": "<|START_RESPONSE|>",
240
+ "lstrip": false,
241
+ "normalized": false,
242
+ "rstrip": false,
243
+ "single_word": false,
244
+ "special": true
245
+ },
246
+ "255022": {
247
+ "content": "<|END_RESPONSE|>",
248
+ "lstrip": false,
249
+ "normalized": false,
250
+ "rstrip": false,
251
+ "single_word": false,
252
+ "special": true
253
+ },
254
+ "255023": {
255
+ "content": "<|START_ACTION|>",
256
+ "lstrip": false,
257
+ "normalized": false,
258
+ "rstrip": false,
259
+ "single_word": false,
260
+ "special": false
261
+ },
262
+ "255024": {
263
+ "content": "<|END_ACTION|>",
264
+ "lstrip": false,
265
+ "normalized": false,
266
+ "rstrip": false,
267
+ "single_word": false,
268
+ "special": false
269
+ },
270
+ "255025": {
271
+ "content": "<|START_TOOL_RESULT|>",
272
+ "lstrip": false,
273
+ "normalized": false,
274
+ "rstrip": false,
275
+ "single_word": false,
276
+ "special": false
277
+ },
278
+ "255026": {
279
+ "content": "<|END_TOOL_RESULT|>",
280
+ "lstrip": false,
281
+ "normalized": false,
282
+ "rstrip": false,
283
+ "single_word": false,
284
+ "special": false
285
+ },
286
+ "255027": {
287
+ "content": "<|EXTRA_8_TOKEN|>",
288
+ "lstrip": false,
289
+ "normalized": false,
290
+ "rstrip": false,
291
+ "single_word": false,
292
+ "special": false
293
+ },
294
+ "255028": {
295
+ "content": "<|NEW_FILE|>",
296
+ "lstrip": false,
297
+ "normalized": false,
298
+ "rstrip": false,
299
+ "single_word": false,
300
+ "special": true
301
+ },
302
+ "255029": {
303
+ "content": "<|BEGINNING_OF_PREFIX_FIM_TOKEN|>",
304
+ "lstrip": false,
305
+ "normalized": false,
306
+ "rstrip": false,
307
+ "single_word": false,
308
+ "special": false
309
+ },
310
+ "255030": {
311
+ "content": "<|BEGINNING_OF_MIDDLE_FIM_TOKEN|>",
312
+ "lstrip": false,
313
+ "normalized": false,
314
+ "rstrip": false,
315
+ "single_word": false,
316
+ "special": false
317
+ },
318
+ "255031": {
319
+ "content": "<|BEGINNING_OF_SUFFIX_FIM_TOKEN|>",
320
+ "lstrip": false,
321
+ "normalized": false,
322
+ "rstrip": false,
323
+ "single_word": false,
324
+ "special": false
325
+ },
326
+ "255032": {
327
+ "content": "<|END_OF_MIDDLE_FIM_TOKEN|>",
328
+ "lstrip": false,
329
+ "normalized": false,
330
+ "rstrip": false,
331
+ "single_word": false,
332
+ "special": false
333
+ }
334
+ },
335
+ "additional_special_tokens": [
336
+ "<|START_RESPONSE|>",
337
+ "<|END_RESPONSE|>"
338
+ ],
339
+ "bos_token": "<BOS_TOKEN>",
340
+ "clean_up_tokenization_spaces": false,
341
+ "eos_token": "<|END_OF_TURN_TOKEN|>",
342
+ "extra_special_tokens": {},
343
+ "legacy": true,
344
+ "merges_file": null,
345
+ "model_max_length": 1000000000000000019884624838656,
346
+ "pad_token": "<PAD>",
347
+ "spaces_between_special_tokens": false,
348
+ "tokenizer_class": "CohereTokenizer",
349
+ "unk_token": "<UNK>",
350
+ "use_default_system_prompt": false,
351
+ "vocab_file": null
352
+ }