Instructions to use mikewolfd/gemma-4-e2b-it-early14-coreml-ane with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use mikewolfd/gemma-4-e2b-it-early14-coreml-ane with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] hf download mikewolfd/gemma-4-e2b-it-early14-coreml-ane --local-dir gemma-4-e2b-it-early14-coreml-ane
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Atomic Chat
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-gemma4downloadsmlx-community/gemma-4-e2b-it-4bit/bf16andgoogle/gemma-4-E2B-it-assistant(MTP) automatically; this repo hosts only the pre-compiled stock Core MLEarly14ANE prefill ring and optionalvocab_remap_150786.npz. - Hardware policy:
Early14ANE+GPU ring activates automatically on>= 32 GBApple9 M4 Macs for large prefill batches (>= 16);<= 24 GBMacs (e.g., Base M524 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): FP16Early14prefix Core ML ANE bundle (S=256)ane_models/gemma4_early14_prefix_S256_w8.mlmodelc(515 MB): Hadamard-calibrated W8Early14prefix 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): optional150,786-token ASCII vocab remap table
Inference Providers NEW
This model isn't deployed by any Inference Provider. π Ask for provider support