Gemma-4 E2B-it Early14 Core ML ANE Bundles

Pre-compiled stock Early14 Pure-ANE Core ML prefill bundles (layers 0..14, 1,326 ANE ops, 0 GPU/CPU ops) and optional 150K ASCII output-vocab remap table for fast-silicon (fast-gemma4), avoiding local coremltools compilation.

  • Stock base & MTP weights are pulled directly from upstream HF: fast-gemma4 downloads mlx-community/gemma-4-e2b-it-4bit / bf16 and google/gemma-4-E2B-it-assistant (MTP) automatically; this repo hosts only the pre-compiled stock Core ML Early14 ANE prefill ring and optional vocab_remap_150786.npz.
  • Hardware policy: Early14 ANE+GPU ring activates automatically on >= 32 GB Apple9 M4 Macs for large prefill batches (>= 16); <= 24 GB Macs (e.g., Base M5 24 GB) keep pure GPU execution by memory policy.

Our Options vs. Stock mlx-vlm GPU (Gemma-4 E2B-it 4-bit)

Workload Host Stock mlx-vlm GPU fast-gemma4 GPU fast-gemma4 ANE+GPU / MTP Speedup / Notes
Batch-128 extraction fixtures (kv_i8) M4 Pro (48 GB) 1.79–1.80 valid docs/s (B=64; OOMs 34.4 GB unchunked) 6.79–6.87 valid docs/s (5.64 docs/s / 1,258 tok/s 2026-11-24 contended) 8.78 valid docs/s (2Γ—128; 5.91–6.11 docs/s contended; Early14 W8 7,815 tok/s chunk prefill) 3.29×–4.90Γ— valid docs/s vs. Stock mlx-vlm; 1,326 ANE ops (0 GPU/CPU)
Batch-128 extraction fixtures (kv_i8) Base M5 (24 GB) 2.02 valid docs/s (B=64) 10.46 valid docs/s (6.42 docs/s / 1,289 tok/s 2026-11-24; 6.13 GB MLX) ANE ring off on <= 24 GB policy 5.18Γ— vs. Stock mlx-vlm
Strict JSON + tool calls (Cat-4, 300 tasks) Base M5 (24 GB) 1.501 score/s (286/300 valid, 0.923 F1, 172.2 s) 1.835 score/s (300/300 valid, 0.946 F1, 144.4 s) β€” 1.22Γ— Stock mlx-vlm (300/300 vs 286/300 valid)
Speculative MTP (B=1 / B=4) Base M5 (24 GB) 15.6 tok/s (json_b1, unrestricted) AR baseline 33.5 tok/s (1.65–1.68Γ— vs. AR B=1, 1.00Γ— json_b4, 10/10 exact) 2.15Γ— vs. Stock mlx-vlm; multimodal FinTabNet(4) 2.123Γ— (103.62 vs 48.81 tok/s, 4/4 exact)
Speculative MTP (B=1 / B=4) M4 Pro (48 GB) β€” AR baseline 1.49–1.62Γ— vs. AR B=1, 1.13Γ— free_b4 (10/10 exact) β€”

Included Files

  • ane_models/gemma4_early14_prefix_S256_fp16.mlmodelc (1.0 GB): FP16 Early14 prefix Core ML ANE bundle (S=256)
  • ane_models/gemma4_early14_prefix_S256_w8.mlmodelc (515 MB): Hadamard-calibrated W8 Early14 prefix Core ML ANE bundle (S=256)
  • ane_models/ane_calibration_manifest.json: stock calibration metadata (checkpoint_ane_key: null)
  • vocab/vocab_remap_150786.npz (592 KB): optional 150,786-token ASCII vocab remap table
Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Model tree for mikewolfd/gemma-4-e2b-it-early14-coreml-ane

Finetuned
(519)
this model