FastFlowLM commited on
Commit
8a5cfc7
·
verified ·
1 Parent(s): 767a203

Inkling-2-Mini-NPU2 for FastFlowLM 1.0.14

Browse files
.gitattributes CHANGED
@@ -33,3 +33,6 @@ 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
+ model.q4nx filter=lfs diff=lfs merge=lfs -text
37
+ tokenizer.json filter=lfs diff=lfs merge=lfs -text
38
+ vision_weight.q4nx filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,81 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ license_link: https://www.apache.org/licenses/LICENSE-2.0
4
+ pipeline_tag: image-text-to-text
5
+ library_name: flm
6
+ base_model:
7
+ - thinkingmachines/Inkling-2-Mini
8
+ tags:
9
+ - conversational
10
+ - moe
11
+ - npu
12
+ - fastflowlm
13
+ - q4nx
14
+ ---
15
+
16
+ # Inkling-2-Mini-NPU2
17
+
18
+ [Inkling 2 Mini](https://huggingface.co/thinkingmachines/Inkling-2-Mini) from Thinking Machines Lab, quantized for the
19
+ AMD XDNA 2 NPU and run by [FastFlowLM](https://github.com/FastFlowLM/FastFlowLM) (`flm`). The files are in FLM's
20
+ `q4nx` format and are not loadable by other runtimes.
21
+
22
+ - Base model: [thinkingmachines/Inkling-2-Mini](https://huggingface.co/thinkingmachines/Inkling-2-Mini)
23
+ (26.4B parameters, 5.4B active per token, 128 routed experts with 8 active, 24 layers of which the middle 12 run
24
+ three times with shared weights, up to 1M context)
25
+ - License: Apache 2.0, the same as the base model
26
+ - This package: text and image in, text out (audio input of the base model is not part of this package)
27
+ - Requires FLM >= v1.0.14 (the first release that supports this model)
28
+ - Run: `flm run inkling-2:mini` or `flm serve inkling-2:mini`
29
+
30
+ ## Quantization
31
+
32
+ | Weights | Format |
33
+ | :--- | :--- |
34
+ | Attention, dense and expert projections | Q4_K (4.5 bits per weight) |
35
+ | Expert down projections | Q4_K, input dimension padded 1152 to 1280 |
36
+ | lm_head | Q8_0 |
37
+ | Token embedding | BF16 |
38
+ | Router, loop controllers | FP32 |
39
+ | Short convolutions, sink projections | BF16 |
40
+
41
+ The package is 17.3 GB. Decode, including the lm_head, runs on the NPU.
42
+
43
+ ### Image input
44
+
45
+ The vision tower (23 layers, 1,024 wide, with the 2x2 patch merger to the language model's 2,304) is in `vision_weight.q4nx`
46
+ (0.64 GB) in BF16 and is not quantized. Its matrix multiplications and attention run on the NPU in bfp16 (weights and
47
+ activations rounded to bfp16), the rest on the CPU. Images are not resized: each 40 x 40 pixel cell is
48
+ one image token, up to 4,096 tokens per image (2560 x 2560 pixels); a larger image is scaled down to fit
49
+ (`FLM_INKLING2_IMAGE_MAX_TOKENS` changes the limit, 0 removes it).
50
+
51
+ Image embeddings against the BF16 reference model, 48 to 4,096 image tokens: relative L2 error 0.11 to 0.15 (the reference
52
+ in bf16 itself is 0.06 away from fp32). Answers to our test questions (reading dates and headlines, describing photos)
53
+ agree with llama.cpp running the BF16 model. Encoding takes about 0.3 s for a 640 x 480 image (192 tokens), 0.6 s at 525
54
+ tokens and 7.6 s at 4,096 tokens, the attention growing with the square of the token count.
55
+
56
+ ### Importance matrix from unsloth
57
+
58
+ The Q4_K scales and minima were chosen with an **importance matrix (imatrix) from [unsloth](https://huggingface.co/unsloth)**,
59
+ the file `imatrix_unsloth.gguf_file` in
60
+ [unsloth/Inkling-2-Mini-GGUF](https://huggingface.co/unsloth/Inkling-2-Mini-GGUF) (Apache 2.0). It was computed on
61
+ unsloth's calibration set for this model (`unsloth_calibration_Inkling-2-Mini.conv.jsonl`). We did not compute it and
62
+ we thank unsloth for publishing it.
63
+
64
+ The imatrix only changes how each block's scale and minimum are rounded. The format, the file size and the speed are
65
+ the same as an unweighted Q4_K quantization. Each expert is weighted by its own per-expert statistics, and the 128
66
+ padded columns of the expert down projections weigh zero.
67
+
68
+ Measured against the BF16 model on 32 × 512 tokens (mean KL divergence of the next-token distribution, lower is better):
69
+
70
+ | Text | Q4_K | Q4_K with the unsloth imatrix |
71
+ | :--- | ---: | ---: |
72
+ | wikitext-2 | 0.0184 | 0.0162 (-12%) |
73
+ | code and documentation (not in the calibration set) | 0.0135 | 0.0115 (-15%) |
74
+
75
+ The 99.9th-percentile KL divergence drops by about 25% on both sets.
76
+
77
+ ## Credits
78
+
79
+ - Model: Thinking Machines Lab, Inc. (Apache 2.0)
80
+ - Importance matrix and calibration set: unsloth
81
+ - Quantization and NPU runtime: FastFlowLM
chat_template.jinja ADDED
@@ -0,0 +1,134 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {%- set effort_map = {"none": 0.0, "minimal": 0.1, "low": 0.2, "medium": 0.7, "high": 0.9, "xhigh": 0.99, "max": 0.99} -%}
2
+ {%- set role_token = {"user": "<|message_user|>", "assistant": "<|message_model|>", "system": "<|message_system|>", "tool": "<|message_tool|>"} -%}
3
+
4
+ {%- macro emit_thinking_effort() -%}
5
+ {%- set eff = reasoning_effort if reasoning_effort is defined and reasoning_effort is not none else 0.9 -%}
6
+ {%- if eff is string -%}
7
+ {%- set key = eff | trim -%}
8
+ {%- if key not in effort_map -%}
9
+ {{- raise_exception("Unknown reasoning_effort: " ~ eff) -}}
10
+ {%- endif -%}
11
+ {%- set num = effort_map[key] -%}
12
+ {%- else -%}
13
+ {%- set num = eff -%}
14
+ {%- endif -%}
15
+ {%- if num < 0.0 or num > 0.99 -%}
16
+ {{- raise_exception("reasoning_effort must be in [0.0, 0.99]") -}}
17
+ {%- endif -%}
18
+ {{- "<|message_system|><|content_text|>Thinking effort level: " -}}
19
+ {%- if num == 0.0 -%}0{%- else -%}{{ num }}{%- endif -%}
20
+ {{- "<|end_message|>" -}}
21
+ {%- endmacro -%}
22
+
23
+ {%- if tools -%}
24
+ {%- set tool_state = namespace(specs=[]) -%}
25
+ {%- for tool in tools -%}
26
+ {%- set fn = tool.function if tool.function is defined else tool -%}
27
+ {%- set spec = {
28
+ "description": (fn.description if fn.description is defined and fn.description else ""),
29
+ "name": fn.name,
30
+ "parameters": (fn.parameters if fn.parameters is defined and fn.parameters else {}),
31
+ "type": (tool.type if tool.type is defined and tool.type else "function")
32
+ } -%}
33
+ {%- set tool_state.specs = tool_state.specs + [spec] -%}
34
+ {%- endfor -%}
35
+ {{- "<|message_system|>tool_declare<|content_xml|>" -}}
36
+ {%- if inkling_tool_specs is defined -%}
37
+ {{- inkling_tool_specs -}}
38
+ {%- else -%}
39
+ {{- tool_state.specs | tojson -}}
40
+ {%- endif -%}
41
+ {{- "<|end_message|>" -}}
42
+ {%- endif -%}
43
+
44
+ {%- set state = namespace(effort_emitted=false) -%}
45
+ {%- for message in messages -%}
46
+ {%- if message.role not in role_token -%}
47
+ {{- raise_exception("Unknown message role: " ~ message.role) -}}
48
+ {%- endif -%}
49
+ {%- if not state.effort_emitted and message.role != "system" -%}
50
+ {{- emit_thinking_effort() -}}
51
+ {%- set state.effort_emitted = true -%}
52
+ {%- endif -%}
53
+
54
+ {%- set header = namespace(text=role_token[message.role]) -%}
55
+ {%- if message.role == "tool" -%}
56
+ {%- if message.name is defined and message.name -%}
57
+ {%- set header.text = header.text ~ message.name -%}
58
+ {%- elif message.tool_call_id is defined and message.tool_call_id -%}
59
+ {%- for prev in messages -%}
60
+ {%- if prev.role == "assistant" and prev.tool_calls -%}
61
+ {%- for tc in prev.tool_calls -%}
62
+ {%- if tc.id is defined and tc.id == message.tool_call_id and tc.function.name is defined -%}
63
+ {%- set header.text = header.text ~ tc.function.name -%}
64
+ {%- endif -%}
65
+ {%- endfor -%}
66
+ {%- endif -%}
67
+ {%- endfor -%}
68
+ {%- endif -%}
69
+ {%- elif message.role == "assistant" and message.name is defined and message.name -%}
70
+ {%- set header.text = header.text ~ message.name -%}
71
+ {%- endif -%}
72
+ {%- set rtok = header.text -%}
73
+ {%- set rendered -%}
74
+
75
+ {%- if message.role == "assistant" and message.reasoning_content is defined and message.reasoning_content -%}
76
+ {{- rtok ~ "<|content_thinking|>" ~ message.reasoning_content ~ "<|end_message|>" -}}
77
+ {%- endif -%}
78
+
79
+ {%- if message.content is string and (message.content or not (message.role == "assistant" and (message.tool_calls or message.reasoning_content))) -%}
80
+ {{- rtok ~ "<|content_text|>" ~ message.content ~ "<|end_message|>" -}}
81
+ {%- elif message.content -%}
82
+ {%- for part in message.content -%}
83
+ {%- if part is string -%}
84
+ {{- rtok ~ "<|content_text|>" ~ part ~ "<|end_message|>" -}}
85
+ {%- elif part.type is not defined or part.type in ("text", "input_text") -%}
86
+ {%- set text_part = (part.text if part.text is defined and part.text is string else "") -%}
87
+ {{- rtok ~ "<|content_text|>" ~ text_part ~ "<|end_message|>" -}}
88
+ {%- elif part.type in ("image", "input_image", "image_url") -%}
89
+ {%- if message.role not in ("user", "tool") -%}
90
+ {{- raise_exception("Image content is only supported for user and tool messages") -}}
91
+ {%- endif -%}
92
+ {{- rtok ~ "<|content_image|><|unused_200054|><|end_message|>" -}}
93
+ {%- elif part.type in ("audio", "input_audio", "audio_url") -%}
94
+ {{- raise_exception("Inkling 2 does not accept audio input") -}}
95
+ {%- else -%}
96
+ {{- raise_exception("Unsupported content part type: " ~ part.type) -}}
97
+ {%- endif -%}
98
+ {%- endfor -%}
99
+ {%- endif -%}
100
+
101
+ {%- if message.role == "assistant" and message.tool_calls -%}
102
+ {%- for tc in message.tool_calls -%}
103
+ {%- set fn = tc.function -%}
104
+ {%- if fn.name is not defined or fn.name is not string -%}
105
+ {{- raise_exception("tool call function name must be a string") -}}
106
+ {%- endif -%}
107
+ {%- if message.name is defined and message.name and message.name != fn.name -%}
108
+ {{- raise_exception("assistant name " ~ message.name ~ " does not match its tool call " ~ fn.name) -}}
109
+ {%- endif -%}
110
+ {{- "<|message_model|>" ~ fn.name ~ "<|content_invoke_tool_json|>" -}}
111
+ {%- if tc.inkling_call is defined -%}
112
+ {{- tc.inkling_call -}}
113
+ {%- else -%}
114
+ {%- set args = fn.arguments if fn.arguments is defined and fn.arguments else {} -%}
115
+ {{- '{"name":' ~ (fn.name | tojson) ~ ',"args":' ~ (args if args is string else (args | tojson)) ~ "}" -}}
116
+ {%- endif -%}
117
+ {{- "<|end_message|>" -}}
118
+ {%- endfor -%}
119
+ {%- endif -%}
120
+
121
+ {%- if message.role == "assistant" -%}
122
+ {{- "<|content_model_end_sampling|>" -}}
123
+ {%- endif -%}
124
+ {%- endset -%}
125
+ {%- if message.role == "assistant" -%}
126
+ {%- generation -%}{{- rendered -}}{%- endgeneration -%}
127
+ {%- else -%}
128
+ {{- rendered -}}
129
+ {%- endif -%}
130
+ {%- endfor -%}
131
+
132
+ {%- if not state.effort_emitted -%}
133
+ {{- emit_thinking_effort() -}}
134
+ {%- endif -%}
config.json ADDED
@@ -0,0 +1,123 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "dtype": "bfloat16",
3
+ "architectures": [
4
+ "Inkling2LoopForConditionalGeneration"
5
+ ],
6
+ "model_type": "inkling2_loop",
7
+ "eos_token_id": 200006,
8
+ "text_config": {
9
+ "model_type": "inkling2_loop_text",
10
+ "model_max_length": 1048576,
11
+ "torch_dtype": "bfloat16",
12
+ "hidden_size": 2304,
13
+ "num_hidden_layers": 24,
14
+ "vocab_size": 201024,
15
+ "num_attention_heads": 24,
16
+ "num_key_value_heads": 8,
17
+ "head_dim": 128,
18
+ "d_rel": 16,
19
+ "rel_extent": 1024,
20
+ "q_bias": false,
21
+ "o_bias": false,
22
+ "log_scaling_n_floor": 8192,
23
+ "log_scaling_alpha": 0.1,
24
+ "rms_norm_eps": 1e-06,
25
+ "use_value_norm_no_gamma": true,
26
+ "qk_l2_clip_threshold": 22.627416997969522,
27
+ "rel_l2_clip_threshold": 8.0,
28
+ "local_layer_ids": [
29
+ 0,
30
+ 1,
31
+ 2,
32
+ 3,
33
+ 4,
34
+ 6,
35
+ 7,
36
+ 8,
37
+ 9,
38
+ 10,
39
+ 12,
40
+ 13,
41
+ 14,
42
+ 15,
43
+ 16,
44
+ 18,
45
+ 19,
46
+ 20,
47
+ 21,
48
+ 22
49
+ ],
50
+ "sconv_kernel_size": 4,
51
+ "unpadded_vocab_size": 200058,
52
+ "final_logit_softcapping": 30.0,
53
+ "swa_head_dim": 128,
54
+ "swa_num_attention_heads": 24,
55
+ "swa_num_key_value_heads": 8,
56
+ "sliding_window_size": 1024,
57
+ "n_layers_per_attn_res_block": 6,
58
+ "attn_res_normalize_values": true,
59
+ "n_routed_experts": 128,
60
+ "num_experts_per_tok": 8,
61
+ "n_shared_experts": 0,
62
+ "intermediate_size": 1152,
63
+ "mlp_gate_softcap": 4.0,
64
+ "mlp_up_softcap": 25.0,
65
+ "route_scale": 8.0,
66
+ "use_gate_bias": true,
67
+ "loop_config": {
68
+ "core_start": 6,
69
+ "core_end": 18,
70
+ "num_passes": 3,
71
+ "gate_rank": 64,
72
+ "is_varloop": false
73
+ }
74
+ },
75
+ "vision_config": {
76
+ "model_type": "inkling2_vision",
77
+ "text_hidden_size": 2304,
78
+ "temporal_patch_size": 2,
79
+ "native_patch_size": 20,
80
+ "adapter_merge_size": 2,
81
+ "projection_hidden_dim": 4096,
82
+ "projector_bias": false,
83
+ "hidden_size": 1024,
84
+ "num_hidden_layers": 23,
85
+ "num_attention_heads": 16,
86
+ "mlp_ratio": 4.0,
87
+ "posemb_grid_size": 32,
88
+ "layer_norm_eps": 1e-05
89
+ },
90
+ "mtp_config": {
91
+ "hidden_size": 2304,
92
+ "num_hidden_layers": 3,
93
+ "num_attention_heads": 24,
94
+ "num_key_value_heads": 8,
95
+ "head_dim": 128,
96
+ "intermediate_size": 9216,
97
+ "max_position_embeddings": 1048576,
98
+ "torch_dtype": "bfloat16",
99
+ "q_bias": false,
100
+ "o_bias": false,
101
+ "rms_norm_eps": 1e-06,
102
+ "rope_theta": 1000000.0,
103
+ "local_layer_ids": [
104
+ 0,
105
+ 2
106
+ ],
107
+ "sliding_window_size": 1024,
108
+ "block_size": 8,
109
+ "markov_rank": 256,
110
+ "markov_head_type": "rnn_hidden",
111
+ "target_layer_ids": [
112
+ 5,
113
+ 23,
114
+ 41,
115
+ 48
116
+ ]
117
+ },
118
+ "quantization_config": {
119
+ "quant_method": "modelopt",
120
+ "quant_algo": "NVFP4"
121
+ },
122
+ "flm_version": "1.0.14"
123
+ }
configuration.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"framework": "other", "task": "image-text-to-text"}
model.q4nx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6eb49e38e416859ef348f49b553bb17cd0f1982eff3cef8fc19c010c8678bcb1
3
+ size 16607607808
tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7f332727f9a3f093dd452a39cc978e6757627e5dad1b0673aa4e75174f236dd6
3
+ size 26178678
tokenizer_config.json ADDED
@@ -0,0 +1,551 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "tokenizer_class": "PreTrainedTokenizerFast",
3
+ "model_max_length": 1048576,
4
+ "clean_up_tokenization_spaces": false,
5
+ "fix_mistral_regex": false,
6
+ "extra_special_tokens": {
7
+ "endoftext": "<|endoftext|>",
8
+ "message_user": "<|message_user|>",
9
+ "message_model": "<|message_model|>",
10
+ "message_system": "<|message_system|>",
11
+ "message_tool": "<|message_tool|>",
12
+ "content_text": "<|content_text|>",
13
+ "content_image": "<|content_image|>",
14
+ "content_model_end_sampling": "<|content_model_end_sampling|>",
15
+ "content_thinking": "<|content_thinking|>",
16
+ "end_message": "<|end_message|>",
17
+ "content_tool_error": "<|content_tool_error|>",
18
+ "content_xml": "<|content_xml|>",
19
+ "begin_of_text": "<|begin_of_text|>",
20
+ "content_invoke_tool_json": "<|content_invoke_tool_json|>",
21
+ "content_invoke_tool_text": "<|content_invoke_tool_text|>"
22
+ },
23
+ "added_tokens_decoder": {
24
+ "199998": {
25
+ "content": "<|unused|>",
26
+ "single_word": false,
27
+ "lstrip": false,
28
+ "rstrip": false,
29
+ "normalized": false,
30
+ "special": true
31
+ },
32
+ "199999": {
33
+ "content": "<|endoftext|>",
34
+ "single_word": false,
35
+ "lstrip": false,
36
+ "rstrip": false,
37
+ "normalized": false,
38
+ "special": true
39
+ },
40
+ "200000": {
41
+ "content": "<|message_user|>",
42
+ "single_word": false,
43
+ "lstrip": false,
44
+ "rstrip": false,
45
+ "normalized": false,
46
+ "special": true
47
+ },
48
+ "200001": {
49
+ "content": "<|message_model|>",
50
+ "single_word": false,
51
+ "lstrip": false,
52
+ "rstrip": false,
53
+ "normalized": false,
54
+ "special": true
55
+ },
56
+ "200002": {
57
+ "content": "<|message_system|>",
58
+ "single_word": false,
59
+ "lstrip": false,
60
+ "rstrip": false,
61
+ "normalized": false,
62
+ "special": true
63
+ },
64
+ "200003": {
65
+ "content": "<|message_tool|>",
66
+ "single_word": false,
67
+ "lstrip": false,
68
+ "rstrip": false,
69
+ "normalized": false,
70
+ "special": true
71
+ },
72
+ "200004": {
73
+ "content": "<|content_text|>",
74
+ "single_word": false,
75
+ "lstrip": false,
76
+ "rstrip": false,
77
+ "normalized": false,
78
+ "special": true
79
+ },
80
+ "200005": {
81
+ "content": "<|content_image|>",
82
+ "single_word": false,
83
+ "lstrip": false,
84
+ "rstrip": false,
85
+ "normalized": false,
86
+ "special": true
87
+ },
88
+ "200006": {
89
+ "content": "<|content_model_end_sampling|>",
90
+ "single_word": false,
91
+ "lstrip": false,
92
+ "rstrip": false,
93
+ "normalized": false,
94
+ "special": true
95
+ },
96
+ "200007": {
97
+ "content": "<|unused_200007|>",
98
+ "single_word": false,
99
+ "lstrip": false,
100
+ "rstrip": false,
101
+ "normalized": false,
102
+ "special": true
103
+ },
104
+ "200008": {
105
+ "content": "<|content_thinking|>",
106
+ "single_word": false,
107
+ "lstrip": false,
108
+ "rstrip": false,
109
+ "normalized": false,
110
+ "special": true
111
+ },
112
+ "200009": {
113
+ "content": "<|unused_200009|>",
114
+ "single_word": false,
115
+ "lstrip": false,
116
+ "rstrip": false,
117
+ "normalized": false,
118
+ "special": true
119
+ },
120
+ "200010": {
121
+ "content": "<|end_message|>",
122
+ "single_word": false,
123
+ "lstrip": false,
124
+ "rstrip": false,
125
+ "normalized": false,
126
+ "special": true
127
+ },
128
+ "200011": {
129
+ "content": "<|unused_200011|>",
130
+ "single_word": false,
131
+ "lstrip": false,
132
+ "rstrip": false,
133
+ "normalized": false,
134
+ "special": true
135
+ },
136
+ "200012": {
137
+ "content": "<|unused_200012|>",
138
+ "single_word": false,
139
+ "lstrip": false,
140
+ "rstrip": false,
141
+ "normalized": false,
142
+ "special": true
143
+ },
144
+ "200013": {
145
+ "content": "<|unused_200013|>",
146
+ "single_word": false,
147
+ "lstrip": false,
148
+ "rstrip": false,
149
+ "normalized": false,
150
+ "special": true
151
+ },
152
+ "200014": {
153
+ "content": "<|unused_200014|>",
154
+ "single_word": false,
155
+ "lstrip": false,
156
+ "rstrip": false,
157
+ "normalized": false,
158
+ "special": true
159
+ },
160
+ "200015": {
161
+ "content": "<|unused_200015|>",
162
+ "single_word": false,
163
+ "lstrip": false,
164
+ "rstrip": false,
165
+ "normalized": false,
166
+ "special": true
167
+ },
168
+ "200016": {
169
+ "content": "<|unused_200016|>",
170
+ "single_word": false,
171
+ "lstrip": false,
172
+ "rstrip": false,
173
+ "normalized": false,
174
+ "special": true
175
+ },
176
+ "200017": {
177
+ "content": "<|unused_200017|>",
178
+ "single_word": false,
179
+ "lstrip": false,
180
+ "rstrip": false,
181
+ "normalized": false,
182
+ "special": true
183
+ },
184
+ "200018": {
185
+ "content": "<|unused_200018|>",
186
+ "single_word": false,
187
+ "lstrip": false,
188
+ "rstrip": false,
189
+ "normalized": false,
190
+ "special": true
191
+ },
192
+ "200019": {
193
+ "content": "<|unused_200019|>",
194
+ "single_word": false,
195
+ "lstrip": false,
196
+ "rstrip": false,
197
+ "normalized": false,
198
+ "special": true
199
+ },
200
+ "200020": {
201
+ "content": "<|unused_200020|>",
202
+ "single_word": false,
203
+ "lstrip": false,
204
+ "rstrip": false,
205
+ "normalized": false,
206
+ "special": true
207
+ },
208
+ "200021": {
209
+ "content": "<|unused_200021|>",
210
+ "single_word": false,
211
+ "lstrip": false,
212
+ "rstrip": false,
213
+ "normalized": false,
214
+ "special": true
215
+ },
216
+ "200022": {
217
+ "content": "<|content_tool_error|>",
218
+ "single_word": false,
219
+ "lstrip": false,
220
+ "rstrip": false,
221
+ "normalized": false,
222
+ "special": true
223
+ },
224
+ "200023": {
225
+ "content": "<|unused_200023|>",
226
+ "single_word": false,
227
+ "lstrip": false,
228
+ "rstrip": false,
229
+ "normalized": false,
230
+ "special": true
231
+ },
232
+ "200024": {
233
+ "content": "<|content_xml|>",
234
+ "single_word": false,
235
+ "lstrip": false,
236
+ "rstrip": false,
237
+ "normalized": false,
238
+ "special": true
239
+ },
240
+ "200025": {
241
+ "content": "<|unused_200025|>",
242
+ "single_word": false,
243
+ "lstrip": false,
244
+ "rstrip": false,
245
+ "normalized": false,
246
+ "special": true
247
+ },
248
+ "200026": {
249
+ "content": "<|unused_200026|>",
250
+ "single_word": false,
251
+ "lstrip": false,
252
+ "rstrip": false,
253
+ "normalized": false,
254
+ "special": true
255
+ },
256
+ "200027": {
257
+ "content": "<|unused_200027|>",
258
+ "single_word": false,
259
+ "lstrip": false,
260
+ "rstrip": false,
261
+ "normalized": false,
262
+ "special": true
263
+ },
264
+ "200028": {
265
+ "content": "<|begin_of_text|>",
266
+ "single_word": false,
267
+ "lstrip": false,
268
+ "rstrip": false,
269
+ "normalized": false,
270
+ "special": true
271
+ },
272
+ "200029": {
273
+ "content": "<|unused_200029|>",
274
+ "single_word": false,
275
+ "lstrip": false,
276
+ "rstrip": false,
277
+ "normalized": false,
278
+ "special": true
279
+ },
280
+ "200030": {
281
+ "content": "<|unused_200030|>",
282
+ "single_word": false,
283
+ "lstrip": false,
284
+ "rstrip": false,
285
+ "normalized": false,
286
+ "special": true
287
+ },
288
+ "200031": {
289
+ "content": "<|unused_200031|>",
290
+ "single_word": false,
291
+ "lstrip": false,
292
+ "rstrip": false,
293
+ "normalized": false,
294
+ "special": true
295
+ },
296
+ "200032": {
297
+ "content": "<|unused_200032|>",
298
+ "single_word": false,
299
+ "lstrip": false,
300
+ "rstrip": false,
301
+ "normalized": false,
302
+ "special": true
303
+ },
304
+ "200033": {
305
+ "content": "<|unused_200033|>",
306
+ "single_word": false,
307
+ "lstrip": false,
308
+ "rstrip": false,
309
+ "normalized": false,
310
+ "special": true
311
+ },
312
+ "200034": {
313
+ "content": "<|unused_200034|>",
314
+ "single_word": false,
315
+ "lstrip": false,
316
+ "rstrip": false,
317
+ "normalized": false,
318
+ "special": true
319
+ },
320
+ "200035": {
321
+ "content": "<|unused_200035|>",
322
+ "single_word": false,
323
+ "lstrip": false,
324
+ "rstrip": false,
325
+ "normalized": false,
326
+ "special": true
327
+ },
328
+ "200036": {
329
+ "content": "<|unused_200036|>",
330
+ "single_word": false,
331
+ "lstrip": false,
332
+ "rstrip": false,
333
+ "normalized": false,
334
+ "special": true
335
+ },
336
+ "200037": {
337
+ "content": "<|unused_200037|>",
338
+ "single_word": false,
339
+ "lstrip": false,
340
+ "rstrip": false,
341
+ "normalized": false,
342
+ "special": true
343
+ },
344
+ "200038": {
345
+ "content": "<|unused_200038|>",
346
+ "single_word": false,
347
+ "lstrip": false,
348
+ "rstrip": false,
349
+ "normalized": false,
350
+ "special": true
351
+ },
352
+ "200039": {
353
+ "content": "<|unused_200039|>",
354
+ "single_word": false,
355
+ "lstrip": false,
356
+ "rstrip": false,
357
+ "normalized": false,
358
+ "special": true
359
+ },
360
+ "200040": {
361
+ "content": "<|unused_200040|>",
362
+ "single_word": false,
363
+ "lstrip": false,
364
+ "rstrip": false,
365
+ "normalized": false,
366
+ "special": true
367
+ },
368
+ "200041": {
369
+ "content": "<|unused_200041|>",
370
+ "single_word": false,
371
+ "lstrip": false,
372
+ "rstrip": false,
373
+ "normalized": false,
374
+ "special": true
375
+ },
376
+ "200042": {
377
+ "content": "<|unused_200042|>",
378
+ "single_word": false,
379
+ "lstrip": false,
380
+ "rstrip": false,
381
+ "normalized": false,
382
+ "special": true
383
+ },
384
+ "200043": {
385
+ "content": "<|unused_200043|>",
386
+ "single_word": false,
387
+ "lstrip": false,
388
+ "rstrip": false,
389
+ "normalized": false,
390
+ "special": true
391
+ },
392
+ "200044": {
393
+ "content": "<|unused_200044|>",
394
+ "single_word": false,
395
+ "lstrip": false,
396
+ "rstrip": false,
397
+ "normalized": false,
398
+ "special": true
399
+ },
400
+ "200045": {
401
+ "content": "<|unused_200045|>",
402
+ "single_word": false,
403
+ "lstrip": false,
404
+ "rstrip": false,
405
+ "normalized": false,
406
+ "special": true
407
+ },
408
+ "200046": {
409
+ "content": "<|unused_200046|>",
410
+ "single_word": false,
411
+ "lstrip": false,
412
+ "rstrip": false,
413
+ "normalized": false,
414
+ "special": true
415
+ },
416
+ "200047": {
417
+ "content": "<|unused_200047|>",
418
+ "single_word": false,
419
+ "lstrip": false,
420
+ "rstrip": false,
421
+ "normalized": false,
422
+ "special": true
423
+ },
424
+ "200048": {
425
+ "content": "<|unused_200048|>",
426
+ "single_word": false,
427
+ "lstrip": false,
428
+ "rstrip": false,
429
+ "normalized": false,
430
+ "special": true
431
+ },
432
+ "200049": {
433
+ "content": "<|content_invoke_tool_json|>",
434
+ "single_word": false,
435
+ "lstrip": false,
436
+ "rstrip": false,
437
+ "normalized": false,
438
+ "special": true
439
+ },
440
+ "200050": {
441
+ "content": "<|unused_200050|>",
442
+ "single_word": false,
443
+ "lstrip": false,
444
+ "rstrip": false,
445
+ "normalized": false,
446
+ "special": true
447
+ },
448
+ "200051": {
449
+ "content": "<|unused_200051|>",
450
+ "single_word": false,
451
+ "lstrip": false,
452
+ "rstrip": false,
453
+ "normalized": false,
454
+ "special": true
455
+ },
456
+ "200052": {
457
+ "content": "<|unused_200052|>",
458
+ "single_word": false,
459
+ "lstrip": false,
460
+ "rstrip": false,
461
+ "normalized": false,
462
+ "special": true
463
+ },
464
+ "200053": {
465
+ "content": "<|unused_200053|>",
466
+ "single_word": false,
467
+ "lstrip": false,
468
+ "rstrip": false,
469
+ "normalized": false,
470
+ "special": true
471
+ },
472
+ "200054": {
473
+ "content": "<|unused_200054|>",
474
+ "single_word": false,
475
+ "lstrip": false,
476
+ "rstrip": false,
477
+ "normalized": false,
478
+ "special": true
479
+ },
480
+ "200055": {
481
+ "content": "<|unused_200055|>",
482
+ "single_word": false,
483
+ "lstrip": false,
484
+ "rstrip": false,
485
+ "normalized": false,
486
+ "special": true
487
+ },
488
+ "200056": {
489
+ "content": "<|unused_200056|>",
490
+ "single_word": false,
491
+ "lstrip": false,
492
+ "rstrip": false,
493
+ "normalized": false,
494
+ "special": true
495
+ },
496
+ "200057": {
497
+ "content": "<|content_invoke_tool_text|>",
498
+ "single_word": false,
499
+ "lstrip": false,
500
+ "rstrip": false,
501
+ "normalized": false,
502
+ "special": true
503
+ }
504
+ },
505
+ "response_template": {
506
+ "defaults": {
507
+ "role": "assistant"
508
+ },
509
+ "start_anchor_pattern": "<\\|end_message\\|>|<\\|content_model_end_sampling\\|>",
510
+ "fields": {
511
+ "reasoning_content": {
512
+ "open_pattern": "(?:<\\|message_model\\|>[^<]*)?<\\|content_thinking\\|>",
513
+ "close": "<|end_message|>",
514
+ "repeats": true,
515
+ "join": "",
516
+ "content": "text",
517
+ "content_args": {
518
+ "strip": false
519
+ }
520
+ },
521
+ "content": {
522
+ "open_pattern": "(?:<\\|message_model\\|>[^<]*)?<\\|content_(?:text|tool_error|invoke_tool_text)\\|>",
523
+ "close": "<|end_message|>",
524
+ "repeats": true,
525
+ "join": "",
526
+ "content": "text",
527
+ "content_args": {
528
+ "strip": false
529
+ }
530
+ },
531
+ "tool_calls": {
532
+ "open_pattern": "(?:<\\|message_model\\|>[^<]*)?<\\|content_invoke_tool_json\\|>",
533
+ "close": "<|end_message|>",
534
+ "repeats": true,
535
+ "content": "json",
536
+ "transform": {
537
+ "type": "function",
538
+ "function": {
539
+ "name": "{content.name}",
540
+ "arguments": "{content.args}"
541
+ }
542
+ }
543
+ }
544
+ }
545
+ },
546
+ "eos_token": "<|content_model_end_sampling|>",
547
+ "pad_token": "<|endoftext|>",
548
+ "eos_token_id": [
549
+ 200006
550
+ ]
551
+ }
vision_weight.q4nx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f2a6048b424746cf6aec4726d6898d4fc6523a2e2f618f94df444839978da714
3
+ size 639337184