Qwen3.6-35B-A3B-MIVFP4e (Native Apple Silicon Metal 4 NAX .miv v2.1)
Pre-quantized, NAX pre-tiled MIVFP4e Hybrid MoE checkpoint of Qwen/Qwen3.6-35B-A3B built for ninfer-metal β a pure C++20 / Objective-C++ / Metal 4 inference suite (zero Python, zero MLX runtime) co-designed for Apple M5+ Silicon (MTLGPUFamilyApple10+, NAX, Compute ICB, and Dual-ANE).
- GitHub & Runtime: https://github.com/scoltzero/ninfer-metal
- Upstream Base Model:
Qwen/Qwen3.6-35B-A3B(revision345d467b117d1fd5eda9b879a5988de9ae5f47a7;40layers =30Gated DeltaNet +10Full-Attention,hidden_size=2048,head_dim=256,rotary_dim=64,256routed expertstop-8+ shared expert, native262,144context) - Embedded Speculative Head: Includes
20embedded Native MTP objects (453.4 MiB) ready out of the box with zero extra draft download. - Lossless Vision Preservation: Preserves all
333upstream VLM vision tower & merger head tensors (0.832 GiB/851.8 MiB) in losslessdirect_bf16_v1underModelComponent::vision, incurring0 BUMA overhead in text-only inference mode.
Quantization Methodology (MIVFP4e)
Quantized offline from official upstream BF16 using encoder/m5_mivfp4_quantize.py through the 5-stage hardware-co-designed pipeline:
- SpinQuant $R_1$ Orthogonal Rotation: Low-rank Woodbury Cayley-SGD solver reduces residual activation kurtosis from
9.22to1.77(orthogonality_max_err = 3.42e-8), absorbed into residual and 3D routed MoEswitch_mlp.down_projpaths (with exact $R_1$ persisted inmiv_rotation_basis.safetensorsat zero runtime overhead). - AWQ / DuQuant Coupled Channel Smoothing: Offline migration of activation variance across MoE/shared-expert SwiGLU and GDN projections.
- Canonical Pad-on-Pack (
K % 64 == 0) & Register-LevelFWHT-64: Applied across93incoherence-rotated objects aligned to Apple10 NAX tiles with zero zero-pointraoverhead. - Rotated-Domain GPTQ / LDLQ & Simulated-
INT8MACaQ: Quantizes321weight objects into 4-bitmivfp4_gauss_g64_s16_v1(mivfp4_nax_lane_g64_v2/mivfp4_expert_nax_lane_g64_v2), promotes203small high-sensitivity projections (gdn_a/b,attention_v, MoE routersmlp.gate, shared-expertdown_proj&shared_expert_gate) to homogeneousoq_affine_q8_g64_bf16_v1(q8_lane_v2), packslm_headinoq_affine_q4_g64_bf16_v1, and keeps561norms/biases/vision/sensitive tensors indirect_bf16_v1β achieving4.519 bpwand22.012 dBaggregate SQNR (19.51 GiB/20.95 GBtotalmodel.miv). - Single-Copy Tri-State NAX Pre-Tiling: One resident weight copy (
1.0xfootprint) feeds coalescedSIMD QMVdecode,0-ULPW4A16speculative verify (Native MTP), andINT8xINT8W4A8NAX prefill.
Verified Apple M5 Ultra Bringup (80-GPU / 256 GiB)
| Check | Measured Result |
|---|---|
| Artifact Verification | 1,086 .miv v2.1 objects (733 text + 333 vision + 20 MTP); omlx_m5_inspect_artifact --verify-payload PASS |
| Quantization Fidelity | 4.5192 bpw, 22.012 dB aggregate SQNR, 0 skipped non-text tensors |
ninfer-metal-serve Native MTP |
208.88 tok/s verified on Apple M5 Ultra (53 tokens / 0.254 s, exact math & physics QA verified) |
Included Files & Checksums
model.miv(19.51 GiB/20.95 GB,20,952,485,888B) β Single-copy.mivv2.1 NAX-tiled MoE text weights (18.24 GiB) + embedded Native MTP (453.4 MiB) + lossless BF16 VLM vision tower & merger head (851.8 MiB,ModelComponent::vision,0 Btext-mode UMA overhead)- SHA-256:
effb8d7305f7c9a0bf117dbc08c9457cacbe606848eaa3a1b32caf51037aadac
- SHA-256:
miv_rotation_basis.safetensors(36.7 MiB,38,528,704B) β Read-only SpinQuant $R_1$, RMSNorm & AWQ basis for syncing companion draft models or HF/MLX LoRA adapters (zero GPU runtime cost)- SHA-256:
ba49f4da96052db978e24cf1bb2ca8c001ad028dba43509cf1bef3008c8ee034
- SHA-256:
model_pack.json,model.miv.conversion.json,model.miv.quantization.json,config.json,generation_config.json,chat_template.jinja,tokenizer.json,tokenizer_config.json,vocab.json,merges.txt,preprocessor_config.json,video_preprocessor_config.json
Usage (ninfer-metal-serve & MIV.app)
# Clone & build ninfer-metal (zero Python / zero MLX runtime)
git clone https://github.com/scoltzero/ninfer-metal.git && cd ninfer-metal
cmake -S . -B build/release -G Ninja -DCMAKE_BUILD_TYPE=Release \
-DOMLX_M5_BUILD_NAX_METALLIB=ON -DOMLX_M5_BUILD_PYTHON=OFF
cmake --build build/release
# Launch with embedded Native MTP (zero extra draft model download required)
./serve/scripts/start_ninfer_serve.sh /path/to/Qwen3.6-35B-A3B-MIVFP4e \
--spec-backend mtp --kv-dtype affine4_g128
# Launch with 2-tier UMA/NVMe KV Acceleration + Dynamic YaRN
./serve/scripts/start_ninfer_serve.sh /path/to/Qwen3.6-35B-A3B-MIVFP4e \
--spec-backend mtp --max-context 1048576 --kv-dtype affine4_g128 \
--kv-accel-mode kvmem_actkv --actkv-budget-tokens 16384 --actkv-reserve-tokens 2048 \
--kvmem-disk-gb 32 --kvmem-recall-top-pages 16 --rope-scaling-mode dynamic_yarn
Or open the standalone macOS desktop app MIV.app (./miv-app/build-app.sh && open dist/MIV.app) and select this model directly.
- Downloads last month
- 289
Model tree for scoltzero/Qwen3.6-35B-A3B-MIVFP4e
Base model
Qwen/Qwen3.6-35B-A3B