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 (revision 345d467b117d1fd5eda9b879a5988de9ae5f47a7; 40 layers = 30 Gated DeltaNet + 10 Full-Attention, hidden_size=2048, head_dim=256, rotary_dim=64, 256 routed experts top-8 + shared expert, native 262,144 context)
  • Embedded Speculative Head: Includes 20 embedded Native MTP objects (453.4 MiB) ready out of the box with zero extra draft download.
  • Lossless Vision Preservation: Preserves all 333 upstream VLM vision tower & merger head tensors (0.832 GiB / 851.8 MiB) in lossless direct_bf16_v1 under ModelComponent::vision, incurring 0 B UMA 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:

  1. SpinQuant $R_1$ Orthogonal Rotation: Low-rank Woodbury Cayley-SGD solver reduces residual activation kurtosis from 9.22 to 1.77 (orthogonality_max_err = 3.42e-8), absorbed into residual and 3D routed MoE switch_mlp.down_proj paths (with exact $R_1$ persisted in miv_rotation_basis.safetensors at zero runtime overhead).
  2. AWQ / DuQuant Coupled Channel Smoothing: Offline migration of activation variance across MoE/shared-expert SwiGLU and GDN projections.
  3. Canonical Pad-on-Pack (K % 64 == 0) & Register-Level FWHT-64: Applied across 93 incoherence-rotated objects aligned to Apple10 NAX tiles with zero zero-point ra overhead.
  4. Rotated-Domain GPTQ / LDLQ & Simulated-INT8 MACaQ: Quantizes 321 weight objects into 4-bit mivfp4_gauss_g64_s16_v1 (mivfp4_nax_lane_g64_v2 / mivfp4_expert_nax_lane_g64_v2), promotes 203 small high-sensitivity projections (gdn_a/b, attention_v, MoE routers mlp.gate, shared-expert down_proj & shared_expert_gate) to homogeneous oq_affine_q8_g64_bf16_v1 (q8_lane_v2), packs lm_head in oq_affine_q4_g64_bf16_v1, and keeps 561 norms/biases/vision/sensitive tensors in direct_bf16_v1 β€” achieving 4.519 bpw and 22.012 dB aggregate SQNR (19.51 GiB / 20.95 GB total model.miv).
  5. Single-Copy Tri-State NAX Pre-Tiling: One resident weight copy (1.0x footprint) feeds coalesced SIMD QMV decode, 0-ULP W4A16 speculative verify (Native MTP), and INT8xINT8 W4A8 NAX 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,888 B) β€” Single-copy .miv v2.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 B text-mode UMA overhead)
    • SHA-256: effb8d7305f7c9a0bf117dbc08c9457cacbe606848eaa3a1b32caf51037aadac
  • miv_rotation_basis.safetensors (36.7 MiB, 38,528,704 B) β€” 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
  • 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
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Model tree for scoltzero/Qwen3.6-35B-A3B-MIVFP4e

Quantized
(1,043)
this model