r/MacLocalLLM • u/Voodmany • 3h ago
Mference v2.1.0: Native Ephemeral Vision & Visual PDFs for Qwen 3.6 35B-A3B on a 16 GB Mac (Metal 4 + Sampled MTP)
Just shipped Mference v2.1.0 — bringing native ephemeral Vision + multi-page visual PDF support and Metal 4 / sampled MTP acceleration to Qwen 3.6 35B-A3B on a 16 GB unified-memory Mac.
- Prebuilt
v2.1.0macOS.app+ CLI/Server binaries: https://github.com/fjw4cfv2fb-afk/Mference-2.0/releases/tag/v2.1.0 - GitHub Repo: https://github.com/fjw4cfv2fb-afk/Mference-2.0
- Hugging Face Model Card (
voodmany): https://huggingface.co/voodmany/Qwen3.6-35B-A3B-4bit-MTP-Surgery-GTurbo
What's New in v2.1.0
- Ephemeral Vision & Visual PDFs (Zero Idle RAM Overhead for Text): Running a vision encoder pinned in unified memory eats gigabytes even when you're just chatting or coding. With
MferenceRepack --attach-vision, Mference streams all333BF16vision_tower.*tensors via coalesced HTTP Range requests into a standalonevision_weights.binsidecar — touching zero bytes ofmodel_weights.bin, INT4 nibbles, or weight surgery calibration. When an image or PDF arrives,Qwen36VisionEncodermapsvision_weights.binread-only withF_NOCACHEand double-buffered contiguouspreadstaging, executes the 27-layer ViT +2×2spatial merger on lazy-loaded Metal 4matmul2dkernels (vision.metal) with automatic Accelerate AMX (cblas_sgemm) fallback, caches compact[N_vis, 2048]FP16 embeddings (shared via.vpatchcache), and immediatelymunmap()svision_weights.binbefore the 40-layer MoE trunk prefill + 3D mRoPE indexing runs. Images & Multi-Page PDFs Across Every Frontend:
Mference.app: Drag & drop PNG/JPEG images or multi-page PDFs (defaultMaxPDFPages = 8, configurable up to64).- OpenAI HTTP/SSE Server (
:8080): Supports standard multimodalimage_url,input_image,image, and PDFfile/file_dataparts on/v1/chat/completions. - CLI (
MferenceCLI):--image <path>and--pdf <path>(repeatable).
Lossless Sampled MTP & Hit/Miss MoE Verify Pipelining:
- Enabled lossless sampled speculative decoding (
temperature > 0,top-k1...64) backed by a 64-threadgroup GPU softmax (logit.metal). - Added zero-spill templated batched slot-map MoE verify (
moe.metal) with Phase-1 / Phase-2 hit/miss pipelining and I/O-first miss ordering. - Fused multi-token Gated-DeltaNet verify + tail updates (
gdn.metal), added an SSD-spilled GDN checkpoint ring (GDNStateManager), hybrid MPP grouped MoE prefill, and zero-syscallF_NOCACHEtracking inPreadExpertStreamer.
- Enabled lossless sampled speculative decoding (
(Plus our existing lossless BF16 weight surgery calibration on Qwen3.6-35B-A3B-4bit: 25.0% -> 100.0% (8/8) Pass@1 on the 8-task AA suite at 16.47 tok/s avg / 18.36 tok/s peak on a 16 GB Mac.)
Feedback and hardware reports on other Apple Silicon Macs welcome!