Remove MLX artifacts: slower than Core ML on device
Browse filesMLX measured slower than Core ML on an iPhone 16 for this model, at matched fp32 precision and against the shipped Core ML fp16 build. These exporters only ever declared an MLX fp32 variant, so fp32-vs-fp32 is the fair and conservative comparison, and MLX still loses it.
The .pte and config.json are removed; each mlx/ dir keeps a NOTES.md with this model's own measurements. The exporter is retained in export-scripts so this can be re-tested against a future ExecuTorch/MLX release.
MLX for these models was only ever published on main / v0.10.0; no tag at v0.9.0 or below carried it. v0.9.0 and below are untouched.
Files changed (3)
- mlx/NOTES.mdAdded+51
- mlx/config.jsonDeleted-44
- mlx/lraspp_mobilenet_v3_large_mlx_fp32.pteDeleted-3
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051# MLX is not shipped for this model
The MLX artifacts for this model were removed deliberately. The exporter in`export-scripts` is kept so the decision can be re-tested against a futureExecuTorch/MLX release, but no `.pte` or `config.json` is published here.
## Why
Measured on device (iPhone 16, ExecuTorch 1.4.1, Release build, 3 warmup runs +15 timed runs, median), on lraspp (mobilenet_v3_large):
| backend | precision | median latency ||---|---|---|| Core ML | fp32 (precision matched) | 15.8 ms || MLX | fp32 (only precision offered) | 75.5 ms || Core ML | fp16 (shipped default) | **7.8 ms** |
MLX is **4.8x slower than Core ML at matched precision**, and **9.7x slower thanthe Core ML build that actually ships**.
These exporters only ever declared an MLX fp32 variant, so fp32-vs-fp32 is thefair comparison and it is deliberately the conservative one: MLX still loses it.
## Context
MLX was measured behind Core ML on every convolutional vision model tested. Themargin varies widely with architecture, so each model carries its own numberrather than a blanket figure.
Two things compound the gap. MLX weight quantization cannot shrink a conv model:`quantize_model_` only rewrites `nn.Linear` and embedding modules, andEfficientNet-V2-S holds just 6.0% of its parameters in its single `nn.Linear`,so 4-bit quantization buys about 5% file size. Core ML by contrast reaches theconvolutions.
## Scope
This concerns convolution-dominated vision models. It does **not** generalize:
- `rfdetr-nano` (conv + transformer) measured only **1.24x** behind Core ML.- The `lfm2.5` text encoders measured **2.7-3.1x faster on MLX** than XNNPACK.
MLX suits matmul-heavy graphs. The right backend depends on model class, so thisfile is not a statement about MLX in general.
## Availability history
MLX for this model was only ever published on `main` / `v0.10.0`. No earlier tag(`v0.9.0` and below) carried an MLX artifact for it, so there is no pinnedrevision from which these files can still be fetched. They remain recoverablefrom this repository's git history.1234567891011121314151617181920212223242526272829303132333435363738394041424344{ "$schema": "https://huggingface.co/software-mansion/react-native-executorch-spec/resolve/main/config.schema.json", "model": "lraspp_mobilenet_v3_large", "family": "lraspp", "capabilities": [ "semantic-segmentation" ], "backend": "mlx", "license": "bsd-3-clause", "variants": [ { "file": "lraspp_mobilenet_v3_large_mlx_fp32.pte", "precision": "fp32", "quantized": false, "default": true, "methods": { "forward": { "inputs": [ { "shape": [ 1, 3, 520, 520 ], "dtype": "float32" } ], "outputs": [ { "shape": [ 1, 21, 520, 520 ], "dtype": "float32" } ] } } } ]}123version https://git-lfs.github.com/spec/v1oid sha256:db45b997a8f4cc38d7046ea56c4d6df82ff8d0313622822ddf4a245a63e9ab01size 13119104mlx/NOTES.mdAdded+51
mlx/config.jsonDeleted-44
mlx/lraspp_mobilenet_v3_large_mlx_fp32.pteDeleted-3