ewin-reg commited on
Commit
00a09f5
·
verified ·
1 Parent(s): c8186df

FwS + ASFT LoRA-merged, step 2/2

Browse files
.gitattributes CHANGED
@@ -33,3 +33,13 @@ 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
37
+ minicpm_v4dot7_assets/minicpmv4.7/moe_speed_comparison_en.gif filter=lfs diff=lfs merge=lfs -text
38
+ minicpm_v4dot7_assets/minicpmv4.7/overall_performance_1b_instruct.png filter=lfs diff=lfs merge=lfs -text
39
+ minicpm_v4dot7_assets/minicpmv4.7/overall_performance_35ba3b_instruct.png filter=lfs diff=lfs merge=lfs -text
40
+ minicpm_v4dot7_assets/minicpmv4.7/overall_performance_35ba3b_language.png filter=lfs diff=lfs merge=lfs -text
41
+ minicpm_v4dot7_assets/minicpmv4.7/performance_efficiency_frontier.png filter=lfs diff=lfs merge=lfs -text
42
+ minicpm_v4dot7_assets/minicpmv4.7/v47_1b_iphone_en.gif filter=lfs diff=lfs merge=lfs -text
43
+ minicpm_v4dot7_assets/minicpmv4.7/v47_35ba3b_ipad_en.gif filter=lfs diff=lfs merge=lfs -text
44
+ minicpm_v4dot7_assets/minicpmv4.7/v47_35ba3b_iphone_en.gif filter=lfs diff=lfs merge=lfs -text
45
+ minicpm_v4dot7_assets/minicpmv4.7/v47_35ba3b_iphone2_en.gif filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ base_model: openbmb/MiniCPM-V-4.7-1B
4
+ datasets:
5
+ - nvidia/Nemotron-SFT-Agentic-v4
6
+ tags:
7
+ - tool-calling
8
+ - agentic
9
+ - finetuning-with-sampling
10
+ - asft
11
+ ---
12
+ # MiniCPM-V-4.7-1B-Agentic-FwS
13
+
14
+ [openbmb/MiniCPM-V-4.7-1B](https://huggingface.co/openbmb/MiniCPM-V-4.7-1B) fine-tuned for tool calling on
15
+ [nvidia/Nemotron-SFT-Agentic-v4](https://huggingface.co/datasets/nvidia/Nemotron-SFT-Agentic-v4) (`tool_calling`, OpenMDW-1.1).
16
+
17
+ ## Method
18
+ 1. **Finetuning with Sampling** ([arXiv 2610.02140](https://arxiv.org/abs/2610.02140), official code
19
+ [aakaran/finetuning-with-sampling](https://github.com/aakaran/finetuning-with-sampling)): the expert reasoning of
20
+ each training tool-call turn is rewritten by projection sampling with MiniCPM-V-4.7-1B itself as base and
21
+ proposal (block 32, 10 MCMC steps per block, max 1856 tokens, temperature 0.6, repetition penalty 1.05,
22
+ accept when the mean base log-likelihood given the task alone is higher). The expert tool call is kept verbatim.
23
+ 30 rows boosted; the boosted reasoning still led to the expert tool call (greedy) in 20.0%
24
+ of rows vs 13.3% with the original reasoning.
25
+ 2. **ASFT** ([arXiv 2509.23753](https://arxiv.org/abs/2509.23753), official code zhuchichi56/ASFT): DFT loss +
26
+ 0.05 x KL(base || policy), on 30 boosted examples with closed reasoning. FwS SFT recipe:
27
+ loss on the response only, thinking mode on, max length 2048, batch 16, 2 epochs, AdamW, cosine, 10 warmup steps,
28
+ clip 1.0. This checkpoint: step 2 / 2.
29
+
30
+ Deviations from the papers (Kaggle 2x T4, 5 hours): LoRA r16/alpha32 on all language-model linears merged into the
31
+ weights instead of full fine-tuning, lr 1e-4 instead of 5e-5, HF generate instead of vLLM,
32
+ sampling applied to the reasoning of tool-call turns (the paper rewrites whole math/chemistry answers).
33
+
34
+ ## Benchmark
35
+ Held-out Nemotron-SFT-Agentic-v4 `tool_calling` rows (never boosted or trained on), first tool-call turn, greedy,
36
+ thinking mode, max 768 new tokens, n = 128.
37
+
38
+ | model | tool call exact match | tool name match | emits a tool call |
39
+ |---|---|---|---|
40
+ | openbmb/MiniCPM-V-4.7-1B | 0.047 | 0.492 | 0.727 |
41
+ | this model | 0.039 | 0.500 | 0.750 |
42
+
43
+ Vision ability was not evaluated.
chat_template.jinja ADDED
@@ -0,0 +1,142 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {%- macro render_content(content, is_system_content=false) -%}
2
+ {%- if content is string -%}
3
+ {{- content -}}
4
+ {%- elif content is iterable and content is not mapping -%}
5
+ {%- set ns = namespace(parts=[]) -%}
6
+ {%- for item in content -%}
7
+ {%- if 'image' in item or 'image_url' in item or item.type == 'image' -%}
8
+ {%- if is_system_content -%}
9
+ {{- raise_exception('System message cannot contain images.') -}}
10
+ {%- endif -%}
11
+ {%- set ns.parts = ns.parts + ['<|image_pad|>'] -%}
12
+ {%- elif 'video' in item or item.type == 'video' -%}
13
+ {%- if is_system_content -%}
14
+ {{- raise_exception('System message cannot contain videos.') -}}
15
+ {%- endif -%}
16
+ {%- set ns.parts = ns.parts + ['<|video_pad|>'] -%}
17
+ {%- elif 'text' in item -%}
18
+ {%- set ns.parts = ns.parts + [item.text] -%}
19
+ {%- else -%}
20
+ {{- raise_exception('Unexpected item type in content.') -}}
21
+ {%- endif -%}
22
+ {%- endfor -%}
23
+ {{- ns.parts | join('\n') -}}
24
+ {%- elif content is none or content is undefined -%}
25
+ {{- '' -}}
26
+ {%- else -%}
27
+ {{- raise_exception('Unexpected content type.') -}}
28
+ {%- endif -%}
29
+ {%- endmacro -%}
30
+ {%- if not messages %}
31
+ {{- raise_exception('No messages provided.') }}
32
+ {%- endif %}
33
+ {%- if tools and tools is iterable and tools is not mapping %}
34
+ {{- '<|im_start|>system\n' }}
35
+ {{- "# Tools\n\nYou have access to the following functions:\n\n<tools>" }}
36
+ {%- for tool in tools %}
37
+ {{- "\n" }}
38
+ {{- tool | tojson }}
39
+ {%- endfor %}
40
+ {{- "\n</tools>" }}
41
+ {{- '\n\nIf you choose to call a function ONLY reply in the following format with NO suffix:\n\n<tool_call>\n<function=example_function_name>\n<parameter=example_parameter_1>\nvalue_1\n</parameter>\n<parameter=example_parameter_2>\nThis is the value for the second parameter\nthat can span\nmultiple lines\n</parameter>\n</function>\n</tool_call>\n\n<IMPORTANT>\nReminder:\n- Function calls MUST follow the specified format: an inner <function=...></function> block must be nested within <tool_call></tool_call> XML tags\n- Required parameters MUST be specified\n- You may provide optional reasoning for your function call in natural language BEFORE the function call, but NOT after\n- If there is no function call available, answer the question like normal with your current knowledge and do not tell the user about function calls\n</IMPORTANT>' }}
42
+ {%- if messages[0].role == 'system' %}
43
+ {%- set content = render_content(messages[0].content, true)|trim %}
44
+ {%- if content %}
45
+ {{- '\n\n' + content }}
46
+ {%- endif %}
47
+ {%- endif %}
48
+ {{- '<|im_end|>\n' }}
49
+ {%- else %}
50
+ {%- if messages[0].role == 'system' %}
51
+ {%- set content = render_content(messages[0].content, true)|trim %}
52
+ {{- '<|im_start|>system\n' + content + '<|im_end|>\n' }}
53
+ {%- endif %}
54
+ {%- endif %}
55
+ {%- set ns = namespace(multi_step_tool=true, last_query_index=messages|length - 1) %}
56
+ {%- for message in messages[::-1] %}
57
+ {%- set index = (messages|length - 1) - loop.index0 %}
58
+ {%- if ns.multi_step_tool and message.role == "user" %}
59
+ {%- set content = render_content(message.content)|trim %}
60
+ {%- if not(content.startswith('<tool_response>') and content.endswith('</tool_response>')) %}
61
+ {%- set ns.multi_step_tool = false %}
62
+ {%- set ns.last_query_index = index %}
63
+ {%- endif %}
64
+ {%- endif %}
65
+ {%- endfor %}
66
+ {%- if ns.multi_step_tool %}
67
+ {{- raise_exception('No user query found in messages.') }}
68
+ {%- endif %}
69
+ {%- for message in messages %}
70
+ {%- set content = render_content(message.content)|trim %}
71
+ {%- if message.role == "system" %}
72
+ {%- if not loop.first %}
73
+ {{- raise_exception('System message must be at the beginning.') }}
74
+ {%- endif %}
75
+ {%- elif message.role == "user" %}
76
+ {{- '<|im_start|>' + message.role + '\n' + content + '<|im_end|>' + '\n' }}
77
+ {%- elif message.role == "assistant" %}
78
+ {%- set reasoning_content = '' %}
79
+ {%- if message.reasoning_content is string %}
80
+ {%- set reasoning_content = message.reasoning_content %}
81
+ {%- else %}
82
+ {%- if '</think>' in content %}
83
+ {%- set reasoning_content = content.split('</think>')[0].rstrip('\n').split('<think>')[-1].lstrip('\n') %}
84
+ {%- set content = content.split('</think>')[-1].lstrip('\n') %}
85
+ {%- endif %}
86
+ {%- endif %}
87
+ {%- set reasoning_content = reasoning_content|trim %}
88
+ {%- if loop.index0 > ns.last_query_index and reasoning_content %}
89
+ {{- '<|im_start|>' + message.role + '\n<think>\n' + reasoning_content + '\n</think>\n\n' + content }}
90
+ {%- else %}
91
+ {{- '<|im_start|>' + message.role + '\n<think>\n\n</think>\n\n' + content }}
92
+ {%- endif %}
93
+ {%- if message.tool_calls and message.tool_calls is iterable and message.tool_calls is not mapping %}
94
+ {%- for tool_call in message.tool_calls %}
95
+ {%- if tool_call.function is defined %}
96
+ {%- set tool_call = tool_call.function %}
97
+ {%- endif %}
98
+ {%- if loop.first %}
99
+ {%- if content|trim %}
100
+ {{- '\n\n<tool_call>\n<function=' + tool_call.name + '>\n' }}
101
+ {%- else %}
102
+ {{- '<tool_call>\n<function=' + tool_call.name + '>\n' }}
103
+ {%- endif %}
104
+ {%- else %}
105
+ {{- '\n<tool_call>\n<function=' + tool_call.name + '>\n' }}
106
+ {%- endif %}
107
+ {%- if tool_call.arguments is defined %}
108
+ {%- for args_name, args_value in tool_call.arguments|items %}
109
+ {{- '<parameter=' + args_name + '>\n' }}
110
+ {%- set args_value = args_value | tojson | safe if args_value is mapping or (args_value is sequence and args_value is not string) else args_value | string %}
111
+ {{- args_value }}
112
+ {{- '\n</parameter>\n' }}
113
+ {%- endfor %}
114
+ {%- endif %}
115
+ {{- '</function>\n</tool_call>' }}
116
+ {%- endfor %}
117
+ {%- endif %}
118
+ {{- '<|im_end|>\n' }}
119
+ {%- elif message.role == "tool" %}
120
+ {%- if loop.previtem and loop.previtem.role != "tool" %}
121
+ {{- '<|im_start|>user' }}
122
+ {%- endif %}
123
+ {{- '\n<tool_response>\n' }}
124
+ {{- content }}
125
+ {{- '\n</tool_response>' }}
126
+ {%- if not loop.last and loop.nextitem.role != "tool" %}
127
+ {{- '<|im_end|>\n' }}
128
+ {%- elif loop.last %}
129
+ {{- '<|im_end|>\n' }}
130
+ {%- endif %}
131
+ {%- else %}
132
+ {{- raise_exception('Unexpected message role.') }}
133
+ {%- endif %}
134
+ {%- endfor %}
135
+ {%- if add_generation_prompt %}
136
+ {{- '<|im_start|>assistant\n' }}
137
+ {%- if enable_thinking is defined and enable_thinking is true %}
138
+ {{- '<think>\n' }}
139
+ {%- else %}
140
+ {{- '<think>\n\n</think>\n\n' }}
141
+ {%- endif %}
142
+ {%- endif %}
config.json ADDED
@@ -0,0 +1,116 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "MiniCPMV4_7ForConditionalGeneration"
4
+ ],
5
+ "downsample_mode": "16x",
6
+ "dtype": "float16",
7
+ "image_end_id": 248079,
8
+ "image_size": 448,
9
+ "image_start_id": 248078,
10
+ "image_token_id": 248056,
11
+ "insert_layer_id": 6,
12
+ "merge_kernel_size": [
13
+ 2,
14
+ 2
15
+ ],
16
+ "merger_times": 1,
17
+ "model_type": "minicpmv4_7",
18
+ "mrope_mode": "canvas",
19
+ "newline_id": 198,
20
+ "patch_size": 14,
21
+ "slice_end_id": 248089,
22
+ "slice_start_id": 248088,
23
+ "text_config": {
24
+ "attention_bias": false,
25
+ "attention_dropout": 0.0,
26
+ "attn_output_gate": true,
27
+ "bos_token_id": null,
28
+ "dtype": "float16",
29
+ "eos_token_id": null,
30
+ "full_attention_interval": 4,
31
+ "head_dim": 256,
32
+ "hidden_act": "silu",
33
+ "hidden_size": 1024,
34
+ "initializer_range": 0.02,
35
+ "intermediate_size": 3584,
36
+ "layer_types": [
37
+ "linear_attention",
38
+ "linear_attention",
39
+ "linear_attention",
40
+ "full_attention",
41
+ "linear_attention",
42
+ "linear_attention",
43
+ "linear_attention",
44
+ "full_attention",
45
+ "linear_attention",
46
+ "linear_attention",
47
+ "linear_attention",
48
+ "full_attention",
49
+ "linear_attention",
50
+ "linear_attention",
51
+ "linear_attention",
52
+ "full_attention",
53
+ "linear_attention",
54
+ "linear_attention",
55
+ "linear_attention",
56
+ "full_attention",
57
+ "linear_attention",
58
+ "linear_attention",
59
+ "linear_attention",
60
+ "full_attention"
61
+ ],
62
+ "linear_conv_kernel_dim": 4,
63
+ "linear_key_head_dim": 128,
64
+ "linear_num_key_heads": 16,
65
+ "linear_num_value_heads": 16,
66
+ "linear_value_head_dim": 128,
67
+ "mamba_ssm_dtype": "float32",
68
+ "max_position_embeddings": 262144,
69
+ "mlp_only_layers": [],
70
+ "model_type": "qwen3_5_text",
71
+ "mtp_num_hidden_layers": 1,
72
+ "mtp_use_dedicated_embeddings": false,
73
+ "num_attention_heads": 8,
74
+ "num_hidden_layers": 24,
75
+ "num_key_value_heads": 2,
76
+ "pad_token_id": null,
77
+ "rms_norm_eps": 1e-06,
78
+ "rope_parameters": {
79
+ "mrope_interleaved": true,
80
+ "mrope_section": [
81
+ 11,
82
+ 11,
83
+ 10
84
+ ],
85
+ "partial_rotary_factor": 0.25,
86
+ "rope_theta": 10000000,
87
+ "rope_type": "default"
88
+ },
89
+ "tie_word_embeddings": false,
90
+ "use_cache": true,
91
+ "vocab_size": 248094
92
+ },
93
+ "tie_word_embeddings": false,
94
+ "transformers_version": "5.20.1",
95
+ "version": 4.7,
96
+ "video_token_id": 248057,
97
+ "vision_config": {
98
+ "attention_dropout": 0.0,
99
+ "dtype": "float16",
100
+ "hidden_act": "gelu_pytorch_tanh",
101
+ "hidden_size": 1152,
102
+ "image_size": 980,
103
+ "insert_layer_id": 6,
104
+ "intermediate_size": 4304,
105
+ "layer_norm_eps": 1e-06,
106
+ "model_type": "minicpmv4_7_vision",
107
+ "num_attention_heads": 16,
108
+ "num_channels": 3,
109
+ "num_hidden_layers": 27,
110
+ "patch_size": 14,
111
+ "window_kernel_size": [
112
+ 2,
113
+ 2
114
+ ]
115
+ }
116
+ }
generation_config.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token_id": 248045,
3
+ "eos_token_id": [
4
+ 248044,
5
+ 248046
6
+ ],
7
+ "transformers_version": "5.20.1",
8
+ "use_cache": true
9
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3f0bcf769d44e3697dd4b75dd5aa4f3e6e419077ac6b6221e000e26f3f95c9fd
3
+ size 3109053696
preprocessor_config.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "max_slice_nums": 9,
3
+ "image_mean": [
4
+ 0.5,
5
+ 0.5,
6
+ 0.5
7
+ ],
8
+ "image_std": [
9
+ 0.5,
10
+ 0.5,
11
+ 0.5
12
+ ],
13
+ "mrope_mode": "canvas"
14
+ }
processor_config.json ADDED
@@ -0,0 +1,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "image_processor": {
3
+ "do_convert_rgb": true,
4
+ "do_normalize": true,
5
+ "do_rescale": true,
6
+ "do_resize": true,
7
+ "downsample_mode": "16x",
8
+ "image_mean": [
9
+ 0.5,
10
+ 0.5,
11
+ 0.5
12
+ ],
13
+ "image_processor_type": "MiniCPMV4_6ImageProcessor",
14
+ "image_std": [
15
+ 0.5,
16
+ 0.5,
17
+ 0.5
18
+ ],
19
+ "max_slice_nums": 9,
20
+ "mrope_mode": "canvas",
21
+ "patch_size": 14,
22
+ "resample": 3,
23
+ "rescale_factor": 0.00392156862745098,
24
+ "scale_resolution": 448,
25
+ "slice_mode": true,
26
+ "use_image_id": true
27
+ },
28
+ "processor_class": "MiniCPMV4_7Processor",
29
+ "video_processor": {
30
+ "do_convert_rgb": true,
31
+ "do_normalize": true,
32
+ "do_rescale": true,
33
+ "do_resize": true,
34
+ "do_sample_frames": true,
35
+ "downsample_mode": "16x",
36
+ "image_mean": [
37
+ 0.5,
38
+ 0.5,
39
+ 0.5
40
+ ],
41
+ "image_std": [
42
+ 0.5,
43
+ 0.5,
44
+ 0.5
45
+ ],
46
+ "max_num_frames": 128,
47
+ "max_slice_nums": 9,
48
+ "mrope_mode": "canvas",
49
+ "patch_size": 14,
50
+ "resample": 3,
51
+ "rescale_factor": 0.00392156862745098,
52
+ "return_metadata": false,
53
+ "scale_resolution": 448,
54
+ "slice_mode": true,
55
+ "stack_frames": 1,
56
+ "use_image_id": true,
57
+ "video_processor_type": "MiniCPMV4_6VideoProcessor"
58
+ }
59
+ }
tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:33861e37bb955af1e3f3061182b820f347eba2b9c2c1011c82794bf0d6e77b54
3
+ size 19992481
tokenizer_config.json ADDED
@@ -0,0 +1,45 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": false,
3
+ "audio_bos_token": "<|audio_start|>",
4
+ "audio_eos_token": "<|audio_end|>",
5
+ "audio_token": "<|audio_pad|>",
6
+ "backend": "tokenizers",
7
+ "bos_token": "<|im_start|>",
8
+ "clean_up_tokenization_spaces": false,
9
+ "eos_token": "<|im_end|>",
10
+ "errors": "replace",
11
+ "image_end_token": "</image>",
12
+ "image_id_end_token": "</image_id>",
13
+ "image_id_start_token": "<image_id>",
14
+ "image_start_token": "<image>",
15
+ "image_token": "<|image_pad|>",
16
+ "is_local": true,
17
+ "local_files_only": false,
18
+ "model_max_length": 262144,
19
+ "model_specific_special_tokens": {
20
+ "audio_bos_token": "<|audio_start|>",
21
+ "audio_eos_token": "<|audio_end|>",
22
+ "audio_token": "<|audio_pad|>",
23
+ "image_end_token": "</image>",
24
+ "image_id_end_token": "</image_id>",
25
+ "image_id_start_token": "<image_id>",
26
+ "image_start_token": "<image>",
27
+ "image_token": "<|image_pad|>",
28
+ "slice_end_token": "</slice>",
29
+ "slice_start_token": "<slice>",
30
+ "video_token": "<|video_pad|>",
31
+ "vision_bos_token": "<|vision_start|>",
32
+ "vision_eos_token": "<|vision_end|>"
33
+ },
34
+ "pad_token": "<|endoftext|>",
35
+ "pretokenize_regex": "(?i:'s|'t|'re|'ve|'m|'ll|'d)|[^\\r\\n\\p{L}\\p{N}]?[\\p{L}\\p{M}]+|\\p{N}| ?[^\\s\\p{L}\\p{M}\\p{N}]+[\\r\\n]*|\\s*[\\r\\n]+|\\s+(?!\\S)|\\s+",
36
+ "processor_class": "MiniCPMV4_7Processor",
37
+ "slice_end_token": "</slice>",
38
+ "slice_start_token": "<slice>",
39
+ "split_special_tokens": false,
40
+ "tokenizer_class": "TokenizersBackend",
41
+ "unk_token": "<unk>",
42
+ "video_token": "<|video_pad|>",
43
+ "vision_bos_token": "<|vision_start|>",
44
+ "vision_eos_token": "<|vision_end|>"
45
+ }