axiom-of-choice commited on
Commit
ac9c356
·
verified ·
1 Parent(s): 7230f73

Add MLX 6-bit conversion of BAAI/AREX-Turbo with evaluation against bf16

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,176 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: mlx
3
+ license: apache-2.0
4
+ pipeline_tag: text-generation
5
+ base_model: BAAI/AREX-Turbo
6
+ language:
7
+ - en
8
+ tags:
9
+ - agent
10
+ - deep-research
11
+ - reasoning
12
+ - tool-use
13
+ - long-context
14
+ - qwen3.5
15
+ - dense
16
+ - image-text-to-text
17
+ - mlx
18
+ ---
19
+
20
+ # mlx-community/AREX-Turbo-6bit
21
+
22
+ [BAAI/AREX-Turbo](https://huggingface.co/BAAI/AREX-Turbo) converted to MLX and quantized to
23
+ **6-bit**, for inference on Apple Silicon.
24
+
25
+ Converted with `mlx-vlm` 0.6.8 (`mlx` 0.32.0).
26
+
27
+ ## Quantization
28
+
29
+ | | |
30
+ |---|---|
31
+ | Requested bits | 6 |
32
+ | Group size | 64 |
33
+ | Mode | affine |
34
+ | **Effective bits per weight** | **7.2** |
35
+ | On-disk size | 3.8 GB |
36
+
37
+ The effective figure exceeds 6 because `mlx-vlm` **leaves the vision tower
38
+ in bf16 by design** and quantizes only the language model — the vision encoder is
39
+ a small share of the weights but disproportionately sensitive to quantization
40
+ error. Verified on this conversion:
41
+
42
+ ```
43
+ language_model: QuantizedLinear x186, QuantizedEmbedding x1 <- 6-bit
44
+ vision_tower : Linear x50, LayerNorm x25, Conv3d x1 <- bf16
45
+ ```
46
+
47
+ ## Evaluation
48
+
49
+ All numbers below were measured against the **unquantized bf16 source** on an
50
+ M2 Pro (32 GB), greedy decoding throughout.
51
+
52
+ ### Distributional fidelity (teacher-forced, deterministic)
53
+
54
+ Perplexity over 204 tokens of held-out text spanning prose, code, legal and
55
+ scientific registers; top-1 agreement and KL are computed per position over the
56
+ full next-token distribution. These are the numbers to judge quantization by —
57
+ they involve no sampling and no decoding choices.
58
+
59
+ | Metric | This model (6-bit) | bf16 reference |
60
+ |---|---|---|
61
+ | Perplexity | 3.0213 | 3.0171 |
62
+ | Perplexity ratio | **1.0014** | 1.000 |
63
+ | Top-1 agreement with bf16 | **0.9902** | — |
64
+ | KL(bf16 ‖ quant) | **0.002364** nats/token | 0 |
65
+
66
+ ### Generation agreement vs bf16
67
+
68
+ Greedy (`temperature=0.0`) continuations, scored against the bf16 output as
69
+ reference.
70
+
71
+ | Metric | Score |
72
+ |---|---|
73
+ | BLEU | 65.02 |
74
+ | chrF | 78.83 |
75
+ | ROUGE-1 / ROUGE-L | 0.7682 / 0.7682 |
76
+ | Exact match | 3/6 |
77
+
78
+ **Read these as agreement, not quality.** bf16 is the reference here, not ground
79
+ truth, so a divergence is only a defect if the quantized answer is *worse*. It
80
+ is not always: on `17 * 23` the bf16 model started a long derivation while the
81
+ 6-bit model answered `391` directly — a mismatch that counts against BLEU
82
+ while being the better response. That is why the two sections below exist.
83
+
84
+ ### Task accuracy (ground truth, no judge)
85
+
86
+ Pass rate on 8 short prompts with verifiable answers (arithmetic, factual
87
+ recall, sorting). Deterministic — this is the only layer that measures
88
+ correctness rather than similarity.
89
+
90
+ | | Accuracy |
91
+ |---|---|
92
+ | bf16 | 7/8 |
93
+ | **6-bit** | **7/8** |
94
+
95
+ ### Judged quality (LLM-as-judge, blind)
96
+
97
+ 18 open-ended prompts graded by `claude-sonnet-5`. The judge never sees which
98
+ model produced which answer. Pairwise comparisons are run **twice with positions
99
+ swapped**; a verdict counts only if the judge picks the same model both times,
100
+ and disagreements are reported as `inconsistent` rather than resolved silently.
101
+ Absolute grades are averaged over 2 repeats per answer.
102
+
103
+ | Metric | bf16 | 6-bit |
104
+ |---|---|---|
105
+ | Absolute quality (1-5) | 4.778 ± 0.083 | 4.583 ± 0.153 |
106
+ | Pairwise wins | 1 | 2 |
107
+ | Ties | 8 | |
108
+ | Inconsistent (judge flipped) | 7 | |
109
+
110
+ Gap of **0.195** against combined judge noise of **0.236** →
111
+ **indistinguishable from bf16**.
112
+
113
+ Judge noise is not negligible and is reported rather than hidden: grading the
114
+ same bf16 model across separate runs varied by ~0.17 on this scale. Differences
115
+ smaller than the combined SEM should not be read as a ranking.
116
+
117
+ ### Across all variants
118
+
119
+ | Variant | bpw | PPL ratio | Top-1 agree | KL | BLEU | Accuracy | Judge (1-5) | Size |
120
+ |---|---|---|---|---|---|---|---|---|
121
+ | 4-bit | 5.347 | 1.1158 | 0.9265 | 0.052755 | 49.52 | 8/8 | 4.583 | 2.9 GB |
122
+ | 6-bit | 7.2 | 1.0014 | 0.9902 | 0.002364 | 65.02 | 7/8 | 4.583 | 3.8 GB |
123
+ | 8-bit | 9.053 | 0.997 | 0.9951 | 0.000691 | 82.65 | 7/8 | 4.694 | 4.8 GB |
124
+
125
+ BLEU against bf16 falls from 82.7 (8-bit) to 49.5 (4-bit), while task accuracy
126
+ and judged quality stay flat. Judged quality is statistically indistinguishable
127
+ from bf16 at every bit width tested. KL divergence from bf16 drops ~76x across
128
+ that same range.
129
+
130
+ ### Throughput (M2 Pro, 32 GB, 128-token decode)
131
+
132
+ Hardware-specific; will differ on other chips.
133
+
134
+ | Variant | Decode tok/s | Peak RAM |
135
+ |---|---|---|
136
+ | bf16 (source) | 18.2 | 9.229 GB |
137
+ | 4-bit | 60.9 | 3.677 GB |
138
+ | 6-bit | 44.5 | 4.917 GB |
139
+ | 8-bit | 34.7 | 6.152 GB |
140
+
141
+ ### What was not measured
142
+
143
+ No standard task benchmarks (MMLU, GSM8K, agentic/tool-use evals) were run. The
144
+ accuracy layer above is 8 short prompts, not a benchmark. The vision path
145
+ was checked for coherence on sample images but not scored. The source model is
146
+ agent/deep-research oriented, and none of its agentic capabilities were
147
+ evaluated here — if that is your use case, measure on your own data.
148
+
149
+ ## Usage
150
+
151
+ ```bash
152
+ pip install mlx-vlm
153
+ ```
154
+
155
+ ```python
156
+ from mlx_vlm import load, generate
157
+ from mlx_vlm.prompt_utils import apply_chat_template
158
+ from mlx_vlm.utils import load_config
159
+
160
+ model, processor = load("mlx-community/AREX-Turbo-6bit")
161
+ config = load_config("mlx-community/AREX-Turbo-6bit")
162
+
163
+ prompt = apply_chat_template(processor, config, "What can you do?", num_images=0)
164
+ print(generate(model, processor, prompt, max_tokens=256, verbose=False).text)
165
+ ```
166
+
167
+ With an image:
168
+
169
+ ```python
170
+ prompt = apply_chat_template(processor, config, "Describe this image.", num_images=1)
171
+ out = generate(model, processor, prompt, image=["<path-or-url>"], max_tokens=256)
172
+ print(out.text)
173
+ ```
174
+
175
+ See the [original model card](https://huggingface.co/BAAI/AREX-Turbo) for capabilities,
176
+ intended use and limitations. All credit for the model belongs to its authors.
chat_template.jinja ADDED
@@ -0,0 +1,154 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {%- set image_count = namespace(value=0) %}
2
+ {%- set video_count = namespace(value=0) %}
3
+ {%- macro render_content(content, do_vision_count, is_system_content=false) %}
4
+ {%- if content is string %}
5
+ {{- content }}
6
+ {%- elif content is iterable and content is not mapping %}
7
+ {%- for item in content %}
8
+ {%- if 'image' in item or 'image_url' in item or item.type == 'image' %}
9
+ {%- if is_system_content %}
10
+ {{- raise_exception('System message cannot contain images.') }}
11
+ {%- endif %}
12
+ {%- if do_vision_count %}
13
+ {%- set image_count.value = image_count.value + 1 %}
14
+ {%- endif %}
15
+ {%- if add_vision_id %}
16
+ {{- 'Picture ' ~ image_count.value ~ ': ' }}
17
+ {%- endif %}
18
+ {{- '<|vision_start|><|image_pad|><|vision_end|>' }}
19
+ {%- elif 'video' in item or item.type == 'video' %}
20
+ {%- if is_system_content %}
21
+ {{- raise_exception('System message cannot contain videos.') }}
22
+ {%- endif %}
23
+ {%- if do_vision_count %}
24
+ {%- set video_count.value = video_count.value + 1 %}
25
+ {%- endif %}
26
+ {%- if add_vision_id %}
27
+ {{- 'Video ' ~ video_count.value ~ ': ' }}
28
+ {%- endif %}
29
+ {{- '<|vision_start|><|video_pad|><|vision_end|>' }}
30
+ {%- elif 'text' in item %}
31
+ {{- item.text }}
32
+ {%- else %}
33
+ {{- raise_exception('Unexpected item type in content.') }}
34
+ {%- endif %}
35
+ {%- endfor %}
36
+ {%- elif content is none or content is undefined %}
37
+ {{- '' }}
38
+ {%- else %}
39
+ {{- raise_exception('Unexpected content type.') }}
40
+ {%- endif %}
41
+ {%- endmacro %}
42
+ {%- if not messages %}
43
+ {{- raise_exception('No messages provided.') }}
44
+ {%- endif %}
45
+ {%- if tools and tools is iterable and tools is not mapping %}
46
+ {{- '<|im_start|>system\n' }}
47
+ {{- "# Tools\n\nYou have access to the following functions:\n\n<tools>" }}
48
+ {%- for tool in tools %}
49
+ {{- "\n" }}
50
+ {{- tool | tojson }}
51
+ {%- endfor %}
52
+ {{- "\n</tools>" }}
53
+ {{- '\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>' }}
54
+ {%- if messages[0].role == 'system' %}
55
+ {%- set content = render_content(messages[0].content, false, true)|trim %}
56
+ {%- if content %}
57
+ {{- '\n\n' + content }}
58
+ {%- endif %}
59
+ {%- endif %}
60
+ {{- '<|im_end|>\n' }}
61
+ {%- else %}
62
+ {%- if messages[0].role == 'system' %}
63
+ {%- set content = render_content(messages[0].content, false, true)|trim %}
64
+ {{- '<|im_start|>system\n' + content + '<|im_end|>\n' }}
65
+ {%- endif %}
66
+ {%- endif %}
67
+ {%- set ns = namespace(multi_step_tool=true, last_query_index=messages|length - 1) %}
68
+ {%- for message in messages[::-1] %}
69
+ {%- set index = (messages|length - 1) - loop.index0 %}
70
+ {%- if ns.multi_step_tool and message.role == "user" %}
71
+ {%- set content = render_content(message.content, false)|trim %}
72
+ {%- if not(content.startswith('<tool_response>') and content.endswith('</tool_response>')) %}
73
+ {%- set ns.multi_step_tool = false %}
74
+ {%- set ns.last_query_index = index %}
75
+ {%- endif %}
76
+ {%- endif %}
77
+ {%- endfor %}
78
+ {%- if ns.multi_step_tool %}
79
+ {{- raise_exception('No user query found in messages.') }}
80
+ {%- endif %}
81
+ {%- for message in messages %}
82
+ {%- set content = render_content(message.content, true)|trim %}
83
+ {%- if message.role == "system" %}
84
+ {%- if not loop.first %}
85
+ {{- raise_exception('System message must be at the beginning.') }}
86
+ {%- endif %}
87
+ {%- elif message.role == "user" %}
88
+ {{- '<|im_start|>' + message.role + '\n' + content + '<|im_end|>' + '\n' }}
89
+ {%- elif message.role == "assistant" %}
90
+ {%- set reasoning_content = '' %}
91
+ {%- if message.reasoning_content is string %}
92
+ {%- set reasoning_content = message.reasoning_content %}
93
+ {%- else %}
94
+ {%- if '</think>' in content %}
95
+ {%- set reasoning_content = content.split('</think>')[0].rstrip('\n').split('<think>')[-1].lstrip('\n') %}
96
+ {%- set content = content.split('</think>')[-1].lstrip('\n') %}
97
+ {%- endif %}
98
+ {%- endif %}
99
+ {%- set reasoning_content = reasoning_content|trim %}
100
+ {%- if loop.index0 > ns.last_query_index %}
101
+ {{- '<|im_start|>' + message.role + '\n<think>\n' + reasoning_content + '\n</think>\n\n' + content }}
102
+ {%- else %}
103
+ {{- '<|im_start|>' + message.role + '\n' + content }}
104
+ {%- endif %}
105
+ {%- if message.tool_calls and message.tool_calls is iterable and message.tool_calls is not mapping %}
106
+ {%- for tool_call in message.tool_calls %}
107
+ {%- if tool_call.function is defined %}
108
+ {%- set tool_call = tool_call.function %}
109
+ {%- endif %}
110
+ {%- if loop.first %}
111
+ {%- if content|trim %}
112
+ {{- '\n\n<tool_call>\n<function=' + tool_call.name + '>\n' }}
113
+ {%- else %}
114
+ {{- '<tool_call>\n<function=' + tool_call.name + '>\n' }}
115
+ {%- endif %}
116
+ {%- else %}
117
+ {{- '\n<tool_call>\n<function=' + tool_call.name + '>\n' }}
118
+ {%- endif %}
119
+ {%- if tool_call.arguments is defined %}
120
+ {%- for args_name, args_value in tool_call.arguments|items %}
121
+ {{- '<parameter=' + args_name + '>\n' }}
122
+ {%- 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 %}
123
+ {{- args_value }}
124
+ {{- '\n</parameter>\n' }}
125
+ {%- endfor %}
126
+ {%- endif %}
127
+ {{- '</function>\n</tool_call>' }}
128
+ {%- endfor %}
129
+ {%- endif %}
130
+ {{- '<|im_end|>\n' }}
131
+ {%- elif message.role == "tool" %}
132
+ {%- if loop.previtem and loop.previtem.role != "tool" %}
133
+ {{- '<|im_start|>user' }}
134
+ {%- endif %}
135
+ {{- '\n<tool_response>\n' }}
136
+ {{- content }}
137
+ {{- '\n</tool_response>' }}
138
+ {%- if not loop.last and loop.nextitem.role != "tool" %}
139
+ {{- '<|im_end|>\n' }}
140
+ {%- elif loop.last %}
141
+ {{- '<|im_end|>\n' }}
142
+ {%- endif %}
143
+ {%- else %}
144
+ {{- raise_exception('Unexpected message role.') }}
145
+ {%- endif %}
146
+ {%- endfor %}
147
+ {%- if add_generation_prompt %}
148
+ {{- '<|im_start|>assistant\n' }}
149
+ {%- if enable_thinking is defined and enable_thinking is false %}
150
+ {{- '<think>\n\n</think>\n\n' }}
151
+ {%- else %}
152
+ {{- '<think>\n' }}
153
+ {%- endif %}
154
+ {%- endif %}
config.json ADDED
@@ -0,0 +1,120 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "Qwen3_5ForConditionalGeneration"
4
+ ],
5
+ "dtype": "bfloat16",
6
+ "hidden_size": 2560,
7
+ "image_token_id": 248056,
8
+ "model_type": "qwen3_5",
9
+ "quantization": {
10
+ "group_size": 64,
11
+ "bits": 6,
12
+ "mode": "affine"
13
+ },
14
+ "quantization_config": {
15
+ "group_size": 64,
16
+ "bits": 6,
17
+ "mode": "affine"
18
+ },
19
+ "text_config": {
20
+ "attention_bias": false,
21
+ "attention_dropout": 0.0,
22
+ "attn_output_gate": true,
23
+ "bos_token_id": null,
24
+ "dtype": "bfloat16",
25
+ "eos_token_id": 248044,
26
+ "full_attention_interval": 4,
27
+ "head_dim": 256,
28
+ "hidden_act": "silu",
29
+ "hidden_size": 2560,
30
+ "initializer_range": 0.02,
31
+ "intermediate_size": 9216,
32
+ "layer_types": [
33
+ "linear_attention",
34
+ "linear_attention",
35
+ "linear_attention",
36
+ "full_attention",
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
+ "linear_attention",
62
+ "linear_attention",
63
+ "linear_attention",
64
+ "full_attention"
65
+ ],
66
+ "linear_conv_kernel_dim": 4,
67
+ "linear_key_head_dim": 128,
68
+ "linear_num_key_heads": 16,
69
+ "linear_num_value_heads": 32,
70
+ "linear_value_head_dim": 128,
71
+ "mamba_ssm_dtype": "float32",
72
+ "max_position_embeddings": 262144,
73
+ "mlp_only_layers": [],
74
+ "model_type": "qwen3_5_text",
75
+ "mtp_num_hidden_layers": 1,
76
+ "mtp_use_dedicated_embeddings": false,
77
+ "num_attention_heads": 16,
78
+ "num_hidden_layers": 32,
79
+ "num_key_value_heads": 4,
80
+ "pad_token_id": null,
81
+ "partial_rotary_factor": 0.25,
82
+ "rms_norm_eps": 1e-06,
83
+ "rope_parameters": {
84
+ "mrope_interleaved": true,
85
+ "mrope_section": [
86
+ 11,
87
+ 11,
88
+ 10
89
+ ],
90
+ "partial_rotary_factor": 0.25,
91
+ "rope_theta": 10000000,
92
+ "rope_type": "default"
93
+ },
94
+ "tie_word_embeddings": true,
95
+ "use_cache": true,
96
+ "vocab_size": 248320
97
+ },
98
+ "tie_word_embeddings": true,
99
+ "transformers_version": "5.2.0",
100
+ "video_token_id": 248057,
101
+ "vision_config": {
102
+ "deepstack_visual_indexes": [],
103
+ "depth": 24,
104
+ "dtype": "bfloat16",
105
+ "hidden_act": "gelu_pytorch_tanh",
106
+ "hidden_size": 1024,
107
+ "in_channels": 3,
108
+ "initializer_range": 0.02,
109
+ "intermediate_size": 4096,
110
+ "model_type": "qwen3_5",
111
+ "num_heads": 16,
112
+ "num_position_embeddings": 2304,
113
+ "out_hidden_size": 2560,
114
+ "patch_size": 16,
115
+ "spatial_merge_size": 2,
116
+ "temporal_patch_size": 2
117
+ },
118
+ "vision_end_token_id": 248054,
119
+ "vision_start_token_id": 248053
120
+ }
configuration.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"framework": "pytorch", "task": "text-generation", "allow_remote": true}
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9e50b980bbcae9ae33cc3e03f9720fcc27940e4ba9a8694ba0522f4171780cbf
3
+ size 4085496931
model.safetensors.index.json ADDED
The diff for this file is too large to render. See raw diff
 
preprocessor_config.json ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "size": {
3
+ "longest_edge": 16777216,
4
+ "shortest_edge": 65536
5
+ },
6
+ "patch_size": 16,
7
+ "temporal_patch_size": 2,
8
+ "merge_size": 2,
9
+ "image_mean": [
10
+ 0.5,
11
+ 0.5,
12
+ 0.5
13
+ ],
14
+ "image_std": [
15
+ 0.5,
16
+ 0.5,
17
+ 0.5
18
+ ],
19
+ "processor_class": "Qwen3VLProcessor",
20
+ "image_processor_type": "Qwen2VLImageProcessorFast"
21
+ }
processor_config.json ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "image_processor": {
3
+ "do_convert_rgb": true,
4
+ "do_normalize": true,
5
+ "do_rescale": true,
6
+ "image_mean": [
7
+ 0.5,
8
+ 0.5,
9
+ 0.5
10
+ ],
11
+ "image_processor_type": "Qwen3VLImageProcessor",
12
+ "image_std": [
13
+ 0.5,
14
+ 0.5,
15
+ 0.5
16
+ ],
17
+ "max_pixels": 16777216,
18
+ "merge_size": 2,
19
+ "min_pixels": 65536,
20
+ "patch_size": 16,
21
+ "rescale_factor": 0.00392156862745098,
22
+ "temporal_patch_size": 2
23
+ },
24
+ "processor_class": "Qwen3VLProcessor",
25
+ "video_processor": {
26
+ "do_convert_rgb": true,
27
+ "do_normalize": true,
28
+ "do_rescale": true,
29
+ "fps": 2.0,
30
+ "image_mean": [
31
+ 0.5,
32
+ 0.5,
33
+ 0.5
34
+ ],
35
+ "image_std": [
36
+ 0.5,
37
+ 0.5,
38
+ 0.5
39
+ ],
40
+ "max_frames": 768,
41
+ "max_pixels": 25165824,
42
+ "merge_size": 2,
43
+ "min_frames": 4,
44
+ "min_pixels": 4096,
45
+ "patch_size": 16,
46
+ "rescale_factor": 0.00392156862745098,
47
+ "temporal_patch_size": 2,
48
+ "video_processor_type": "Qwen3VLVideoProcessor"
49
+ }
50
+ }
tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:06b9509352d2af50381ab2247e083b80d32d5c0aba91c272ca9ff729b6a0e523
3
+ size 19989325
tokenizer_config.json ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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": null,
8
+ "clean_up_tokenization_spaces": false,
9
+ "eos_token": "<|im_end|>",
10
+ "errors": "replace",
11
+ "image_token": "<|image_pad|>",
12
+ "is_local": true,
13
+ "local_files_only": false,
14
+ "model_max_length": 262144,
15
+ "model_specific_special_tokens": {
16
+ "audio_bos_token": "<|audio_start|>",
17
+ "audio_eos_token": "<|audio_end|>",
18
+ "audio_token": "<|audio_pad|>",
19
+ "image_token": "<|image_pad|>",
20
+ "video_token": "<|video_pad|>",
21
+ "vision_bos_token": "<|vision_start|>",
22
+ "vision_eos_token": "<|vision_end|>"
23
+ },
24
+ "pad_token": "<|endoftext|>",
25
+ "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+",
26
+ "processor_class": "Qwen3VLProcessor",
27
+ "split_special_tokens": false,
28
+ "tokenizer_class": "Qwen2Tokenizer",
29
+ "unk_token": null,
30
+ "video_token": "<|video_pad|>",
31
+ "vision_bos_token": "<|vision_start|>",
32
+ "vision_eos_token": "<|vision_end|>"
33
+ }
video_preprocessor_config.json ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "size": {
3
+ "longest_edge": 25165824,
4
+ "shortest_edge": 4096
5
+ },
6
+ "patch_size": 16,
7
+ "temporal_patch_size": 2,
8
+ "merge_size": 2,
9
+ "image_mean": [
10
+ 0.5,
11
+ 0.5,
12
+ 0.5
13
+ ],
14
+ "image_std": [
15
+ 0.5,
16
+ 0.5,
17
+ 0.5
18
+ ],
19
+ "processor_class": "Qwen3VLProcessor",
20
+ "video_processor_type": "Qwen3VLVideoProcessor"
21
+ }
vocab.json ADDED
The diff for this file is too large to render. See raw diff