majentik commited on
Commit
ee57d05
·
verified ·
1 Parent(s): c041c5f

Full-tower republish: 8-bit language tower + BF16 vision tower (fixes mlx_vlm load, discussion #1)

Browse files
PROVENANCE.md ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Provenance
2
+
3
+ | | |
4
+ |---|---|
5
+ | Upstream | [Qwen/Qwen3.6-35B-A3B](https://huggingface.co/Qwen/Qwen3.6-35B-A3B) @ `995ad96eacd98c81ed38be0c5b274b04031597b0` |
6
+ | Converted | 2026-07-04 |
7
+ | Toolchain | mlx-vlm 0.6.3, mlx 0.31.2, mlx-lm 0.31.3, transformers 5.12.0 |
8
+ | Command | `python -m mlx_vlm convert --hf-path Qwen/Qwen3.6-35B-A3B --revision 995ad96eacd98c81ed38be0c5b274b04031597b0 -q --q-bits 8 --q-group-size 64 --q-mode affine` |
9
+
10
+ Contents: language tower quantized (8-bit affine, group size 64) +
11
+ **vision tower in BF16** (333 tensors, unquantized — mlx-vlm skips
12
+ multimodal modules by default). The upstream MTP head is not retained
13
+ (dropped by mlx-vlm sanitize; unused at inference).
14
+
15
+ Smoke (pre-publish, Apple Silicon): `mlx_vlm` vision probe and `mlx_lm`
16
+ text probe both passed for this exact payload.
17
+
18
+ History: replaces the 2026-04 text-only extraction, which shipped
19
+ without the vision tower and failed to load under `mlx_vlm`
20
+ ("Missing 393 parameters"). Reported in discussion #1 on
21
+ majentik/Qwen3.6-35B-A3B-RotorQuant-MLX-4bit.
config.json CHANGED
@@ -2,10 +2,23 @@
2
  "architectures": [
3
  "Qwen3_5MoeForConditionalGeneration"
4
  ],
 
5
  "eos_token_id": [
6
  248046,
7
  248044
8
  ],
 
 
 
 
 
 
 
 
 
 
 
 
9
  "image_token_id": 248056,
10
  "model_type": "qwen3_5_moe",
11
  "quantization": {
@@ -658,6 +671,7 @@
658
  "bits": 8
659
  }
660
  },
 
661
  "text_config": {
662
  "attention_bias": false,
663
  "attention_dropout": 0.0,
@@ -741,7 +755,7 @@
741
  ],
742
  "partial_rotary_factor": 0.25,
743
  "rope_theta": 10000000,
744
- "type": "default"
745
  },
746
  "router_aux_loss_coef": 0.001,
747
  "shared_expert_intermediate_size": 512,
@@ -750,8 +764,26 @@
750
  "vocab_size": 248320
751
  },
752
  "tie_word_embeddings": false,
 
 
753
  "transformers_version": "4.57.1",
754
  "video_token_id": 248057,
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
755
  "vision_end_token_id": 248054,
756
  "vision_start_token_id": 248053
757
  }
 
2
  "architectures": [
3
  "Qwen3_5MoeForConditionalGeneration"
4
  ],
5
+ "do_sample": true,
6
  "eos_token_id": [
7
  248046,
8
  248044
9
  ],
10
+ "generation_config": {
11
+ "bos_token_id": 248044,
12
+ "do_sample": true,
13
+ "eos_token_id": [
14
+ 248046,
15
+ 248044
16
+ ],
17
+ "pad_token_id": 248044,
18
+ "temperature": 1.0,
19
+ "top_k": 20,
20
+ "top_p": 0.95
21
+ },
22
  "image_token_id": 248056,
23
  "model_type": "qwen3_5_moe",
24
  "quantization": {
 
671
  "bits": 8
672
  }
673
  },
674
+ "temperature": 1.0,
675
  "text_config": {
676
  "attention_bias": false,
677
  "attention_dropout": 0.0,
 
755
  ],
756
  "partial_rotary_factor": 0.25,
757
  "rope_theta": 10000000,
758
+ "rope_type": "default"
759
  },
760
  "router_aux_loss_coef": 0.001,
761
  "shared_expert_intermediate_size": 512,
 
764
  "vocab_size": 248320
765
  },
766
  "tie_word_embeddings": false,
767
+ "top_k": 20,
768
+ "top_p": 0.95,
769
  "transformers_version": "4.57.1",
770
  "video_token_id": 248057,
771
+ "vision_config": {
772
+ "deepstack_visual_indexes": [],
773
+ "depth": 27,
774
+ "hidden_act": "gelu_pytorch_tanh",
775
+ "hidden_size": 1152,
776
+ "in_channels": 3,
777
+ "initializer_range": 0.02,
778
+ "intermediate_size": 4304,
779
+ "model_type": "qwen3_5_moe",
780
+ "num_heads": 16,
781
+ "num_position_embeddings": 2304,
782
+ "out_hidden_size": 2048,
783
+ "patch_size": 16,
784
+ "spatial_merge_size": 2,
785
+ "temporal_patch_size": 2
786
+ },
787
  "vision_end_token_id": 248054,
788
  "vision_start_token_id": 248053
789
  }
configuration.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"framework":"Pytorch","task":"visual-question-answering"}
model-00001-of-00007.safetensors → model-00001-of-00008.safetensors RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:c956bf416a5e2176a8f2bafd50a4179992649c234064a23ae7fec0524620f691
3
- size 5332146307
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:143db852a7b5e04ae289a14852079ce5c0465db022ccaeada16629c760a48b81
3
+ size 5329916013
model-00002-of-00007.safetensors → model-00002-of-00008.safetensors RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:c44acb68ee3a36cc1e5ef3b1e8b19157938b3e2604ae8d378ea5c795b2011e08
3
- size 5358684459
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:85ecfd0975ceefee39705bb443a6746613f7ef0e50bb3a11ef9f7d89755a0ca7
3
+ size 5365573922
model-00003-of-00007.safetensors → model-00003-of-00008.safetensors RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:455f4ea92763f5ec18ffac372bd5dda7b5c7884e021bd9f1d19c6f4ffb48980d
3
- size 5365574144
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:939da359a8bb9e1ce190c0b0b94b0d62d44522ab0755117cf86ae228d823a7ae
3
+ size 5358684668
model-00004-of-00008.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e2f66bfcd864a385073f0e4b4c1a9daf57e858bddd9f291769c14cc22c9c1cce
3
+ size 5365574194
model-00005-of-00007.safetensors DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:da2b620a957e41a7ea3ff590d45111a01e6fc97c0ad32d6c20961699bb63645a
3
- size 5365574154
 
 
 
 
model-00004-of-00007.safetensors → model-00005-of-00008.safetensors RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:2f89972fd32bad9959e0bac8b980fdf8742c3890eb057d61f2d72820ad655a24
3
  size 5358684644
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6d669425cfaa312e65a65f6b7ee0fad208534640483e33fd592c91f5fb5334a4
3
  size 5358684644
model-00006-of-00007.safetensors DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:aac2ae720118e0be63cbacc475afb4e6c6e5fa80ccef00def44daed4bc0563a3
3
- size 5358684646
 
 
 
 
model-00006-of-00008.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:29c219880920fc1880f30eea25a41b98b251bda318e1f958d4df2bbd74e6e2b0
3
+ size 5365574174
model-00007-of-00007.safetensors DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:0c41d2487a0c839754a694f09bfec16bb8acb6815ae82876633f6b2d8a74c448
3
- size 4688874171
 
 
 
 
model-00007-of-00008.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d231a4e95d408f4fa780d61d0011f1cf7843cff12602e68356714e821bd7390e
3
+ size 5037050574
model-00008-of-00008.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:145818a7e8f32071c56f6f817aa452aff235745f82033f141f07f5f6f7bc41c6
3
+ size 540344667
model.safetensors.index.json CHANGED
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 CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:87a7830d63fcf43bf241c3c5242e96e62dd3fdc29224ca26fed8ea333db72de4
3
- size 19989343
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:06b9509352d2af50381ab2247e083b80d32d5c0aba91c272ca9ff729b6a0e523
3
+ size 19989325
tokenizer_config.json CHANGED
@@ -10,6 +10,7 @@
10
  "errors": "replace",
11
  "image_token": "<|image_pad|>",
12
  "is_local": true,
 
13
  "model_max_length": 262144,
14
  "model_specific_special_tokens": {
15
  "audio_bos_token": "<|audio_start|>",
@@ -22,9 +23,9 @@
22
  },
23
  "pad_token": "<|endoftext|>",
24
  "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+",
 
25
  "split_special_tokens": false,
26
- "tokenizer_class": "TokenizersBackend",
27
- "tool_parser_type": "qwen3_coder",
28
  "unk_token": null,
29
  "video_token": "<|video_pad|>",
30
  "vision_bos_token": "<|vision_start|>",
 
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|>",
 
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|>",
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