Skip to main content

onnxruntime-ep-mlx

PyPI Version Rust crate

MLX-native ONNX Runtime execution provider for Apple Silicon. It is an out-of-tree plugin EP for ONNX Runtime 1.31 or newer and requires no ONNX Runtime fork.

The wheel bundles the MLX runtime. Supported parts of your model run in MLX; unsupported operators stay on ONNX Runtime's CPU provider, where a matching CPU kernel is available. Coverage depends on operator attributes, dtypes, and shapes.

See the complete README for requirements, limitations, and links to operator coverage, benchmarks, diagnostics, source builds, and native integration.

Install

python -m pip install -U onnxruntime-ep-mlx
import onnxruntime as ort
import onnxruntime_ep_mlx

onnxruntime_ep_mlx.register_execution_provider_library()
session = ort.InferenceSession(
    "model.onnx",
    providers=["MLXExecutionProvider", "CPUExecutionProvider"],
)
feeds = {"input_name": input_array}
outputs = session.run(None, feeds)

Replace model.onnx, input_name, and input_array with your model and NumPy inputs. Use session.get_inputs() to inspect input names, shapes, and types.

The package requires macOS 14+ on Apple Silicon, Python 3.11+, and ONNX Runtime 1.31 or newer. The 0.31.x package series targets ABI 31 and is built with ONNX Runtime 1.31 headers. Use one session per thread, not concurrent runs on a shared session. Performance is workload-dependent and floating-point results are not bit-identical to CPU.

Metadata

Release files for onnxruntime-ep-mlx 0.31.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for onnxruntime-ep-mlx 0.31.1
File Size Uploaded Provenance Actions
onnxruntime_ep_mlx-0.31.1.tar.gz 491.0 kB With provenance Details for onnxruntime_ep_mlx-0.31.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for onnxruntime-ep-mlx 0.31.1
File Interpreter ABI Platform Actions
onnxruntime_ep_mlx-0.31.1-py3-none-macosx_14_0_arm64.whl Python 3 none macOS 14.0+ ARM64 Details for onnxruntime_ep_mlx-0.31.1-py3-none-macosx_14_0_arm64.whl

Total release size: 46.5 MB

Release files / onnxruntime_ep_mlx-0.31.1.tar.gz

Download URL onnxruntime_ep_mlx-0.31.1.tar.gz
Size 491.0 kB
Tags Source
SHA-256 checksum
How to use checksums
8f16aebbdc1255107fa5b17ed3974224412e8b576639ddb46ac7ca732ec619b2
BLAKE2b-256 checksum
How to use checksums
0bbab11f6a188b70ceda55236a43aa5158da2f571d76b8bef0e5c68002333335
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 9, 2026.

Transparency log

Release files / onnxruntime_ep_mlx-0.31.1-py3-none-macosx_14_0_arm64.whl

Download URL onnxruntime_ep_mlx-0.31.1-py3-none-macosx_14_0_arm64.whl
Size 46.0 MB
Tags Python 3 macOS 14.0+ ARM64
SHA-256 checksum
How to use checksums
6ad3ba280a1709b5bdd5713f193e7d948cbeef33975e85fe105781368f154885
BLAKE2b-256 checksum
How to use checksums
15bafad0b995d5c228a5355528579ab027ab5e27f760f43c743a4fd3acd40105
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 9, 2026.

Transparency log

Security for onnxruntime-ep-mlx 0.31.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for onnxruntime_ep_mlx-0.31.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 9, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page