Core AI model zoo

TensorOps impact across the zoo + the pure custom-Metal-kernel win (survey, 2026-07-01)

Applied companion to tensorops-quantized-kernels.md (the WWDC26 §330 foundation) and custom-metal-kernels.md. Five read-only passes over every shipped/in-flight zoo model’s impl (models/macos/*.py), measured stats, and zoo cards. Nothing here is device-measured for TensorOps yet — all speedups marked ⚗️ are estimates anchored on Apple’s MLX-on-M5 numbers (prefill/TTFT 3.33–4.06× on compute-bound matmul via the neural accelerator; decode 1.19–1.27× = bandwidth delta only).

The one-line finding

TensorOps’ big win is the non-autoregressive / one-shot compute-bound forward — diffusion, dLLM, and encoders. The autoregressive LLM decode path (the zoo’s historical focus) is bandwidth-bound and gets ~nothing. Two structural reasons LLM decode/prefill is closed to TensorOps today:

  1. Decode is BW-bound — int8lin already reads near ½ device bandwidth; the neural accelerator adds ~1.2×.
  2. Current LLM export is pipelined S=1 → every step is a matvec [1,K]×[K,N], not the 2D multi-token matmul2d TensorOps accelerates. A large-chunk prefill re-export would be needed (speculative).

Cross-model impact table (⚗️ estimates)

TIER-0 / ULTRA — diffusion-LLM

| Model | Why | Est. impact | TensorOps construct | |—|—|—|—| | LLaDA-8B (dLLM) | Non-AR masked diffusion: full 32-layer bidirectional forward every step, NO KV, 185 ms/forward; hot path is 100% matmul, multiplied across ~20–30 steps. Zero KV-skip escape = purest compute-bound case in the zoo. int4 already; numerics gate loose (text coherence, not token-exact). A19 device on hand. | 3–4× end-to-end (128-tok gen 4.6 s → ~1.2 s) | matmul2d (int4 native dequant) + FlashAttention (bidirectional SDPA) |

TIER-1 / HIGH — image/audio diffusion + encoders (one-shot, compute-bound, no decode tail)

| Model | Why | Est. impact | Construct | |—|—|—|—| | FLUX.2 klein 4B | DiT 25 blocks × 4 steps; ~3.5 s of 4.25 s/step is DiT matmul. int4 already. | step 1.2–1.8× (~17 s → 11–13 s) | matmul2d(int4) + VAE conv | | MiniCPM-V vision tower | SigLIP ViT, compute-bound one-shot; measured device latency (warm 42–82 ms); int8 shipped = greenfield. (LLM decode tail = separate, BW-bound, not a target.) | warm 1.5–2× | matmul2d(int8/fp16) | | Qwen2.5-Omni audio encoder | 32-layer Whisper-style enc, static shape, fp16, ZERO custom kernels; conv frontend + attention. | enc 3–4× (0.18 s → ~0.06 s) | matmul2d + Conv | | Qwen3-ASR AuT encoder | 24-layer audio enc, windowed attn + conv frontend, fp16. | enc 3–4× | matmul2d + Conv | | Whisper encoder | 32-layer enc, one-shot compute-bound (decoder = BW-bound, skip). | enc 3–4× | matmul2d + FlashAttention | | Qwen3-VL / Gemma4-VL towers | Same compute-bound ViT profile as MiniCPM (device unmeasured). | warm 1.5–2× | matmul2d |

TIER-2 / MED

| Model | Caveat | |—|—| | Stable Audio 341M | 8-step DiT multiplies the win, but small model = small absolute (50 ms → 25–35 ms/step). | | VoxCPM2 diffusion (LocDiT) + vocoder | 12L×10-step diffusion is compute-bound but can’t be quantized (quality); vocoder is a one-shot conv tail. | | Depth Anything 3 / RF-DETR / Unlimited-OCR vision / ColModernVBERT doc | ViT backbone benefits, but ConvTranspose heads (depth/SR), deformable-gather head (RF-DETR ~40%), and fp32 paths do not → partial win (~1.5–2×). |

TIER-3 / LOW · out of scope

| Group | Why not | |—|—| | All LLM decode (Qwen3.5/3.6, Gemma4, Nanbeige, MiniCPM5, LFM, all MoE) | Decode BW-bound (~1.2×); current export S=1 matvec ⇒ matmul2d doesn’t apply. | | MoE (Qwen3.6-35B, LFM-8B) | Win already captured by gather_qmm; expert gather is not a TensorOps op. | | Absorbed-MLA (GLM-4.7) | A custom-kernel-architecture problem (cross-head staging), not TensorOps — see below. | | Ternary (BitCPM/BitNet/BitVLA) | Ternary {-1,0,+1} is not a TensorOps dtype (int4+ only). | | SinSR / AdcSR | Conv-heavy, fp16-optimized / fp32-locked — not matmul. | | Embedding / Reranker | Small text encoders, already fast on stock GPU. |

Orthogonal lever (size, not speed)

Native int4/fp4 dequant re-test (OS 27 E2M1 / E8M0 block scales). The zoo’s int4 collapse was a hand-rolled dequant numerics failure; HW dequant is a different numerics path. “One conversion + PSNR gate” on FLUX / LLaDA / a MoE could unlock smaller footprints (→ iPhone fit) without QAT.

THE pure custom-Metal-kernel win (no TensorOps, no new Apple HW) — Absorbed-MLA cross-head staging

This is the genuine hand-rolled-MSL win on the table, independent of the neural accelerator / OS 27. Source: MLA_KERNEL_BREAKTHROUGH.md, ABSORBED_MLA_STATE.md, memory project_absorbed_mla.

  1. Absorbed-MLA staging kernel (pure custom-Metal, frontier moat) — the headline win; half-built.
  2. LLaDA-8B TensorOps matmul2d (highest TensorOps multiplier; profile the 185 ms forward for matmul-boundedness first, then drop one TensorOps layer and compare on A19).
  3. MiniCPM-V vision tower — only encoder with a measured device baseline; clean TensorOps pilot.