Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

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.29 and requires no ONNX Runtime fork.

The wheel bundles MLX 0.32.1 and mlx-c 0.6.0_4. It supports encoder, LLM prefill, and token-at-a-time decode workloads, including quantized matmul, attention, normalization, convolution, shape operations, and compiled shape-specialized If, Loop, and Scan control flow.

See the complete README for operator coverage, performance results, diagnostics, build instructions, and C/C++ integration.

Install

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"],
)
outputs = session.run(None, feeds)

The package requires macOS on Apple Silicon and an ONNX Runtime 1.29 build.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

onnxruntime_ep_mlx-0.29.6.dev1.tar.gz (291.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

onnxruntime_ep_mlx-0.29.6.dev1-py3-none-macosx_14_0_arm64.whl (40.3 MB view details)

Uploaded Python 3macOS 14.0+ ARM64

File details

Details for the file onnxruntime_ep_mlx-0.29.6.dev1.tar.gz.

File metadata

  • Download URL: onnxruntime_ep_mlx-0.29.6.dev1.tar.gz
  • Upload date:
  • Size: 291.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for onnxruntime_ep_mlx-0.29.6.dev1.tar.gz
Algorithm Hash digest
SHA256 66219a07bacc40f082579cd37431c8231bf4c46bbde0d55b6de293d05c8618d2
MD5 f2c29755a7e6cf940ed5c599436bfd07
BLAKE2b-256 b6c53835746f38802acf91f32ed975a100527efd291a9580a98e11b4e34d85d2

See more details on using hashes here.

Provenance

The following attestation bundles were made for onnxruntime_ep_mlx-0.29.6.dev1.tar.gz:

Publisher: publish.yml on justinchuby/onnxruntime-mlx

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file onnxruntime_ep_mlx-0.29.6.dev1-py3-none-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for onnxruntime_ep_mlx-0.29.6.dev1-py3-none-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 1e8ba910fa752036b15f9e1c234d9efa3a9795e2342bd854994a2569834af3a6
MD5 97e6387c071dd55893e95dbc5b3c74fa
BLAKE2b-256 a88dc843744f2f61f2f0ca9f6639d40f4cf89a80ef7585fb364d225c06114c66

See more details on using hashes here.

Provenance

The following attestation bundles were made for onnxruntime_ep_mlx-0.29.6.dev1-py3-none-macosx_14_0_arm64.whl:

Publisher: publish.yml on justinchuby/onnxruntime-mlx

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.29.6.dev1 This release

2 files

0.29.5

2 files

0.29.4

2 files

0.29.3

2 files

0.29.1

2 files

0.29.0

2 files

0.27.6

2 files

0.27.5

1 file

0.27.4

1 file

0.27.3

1 file

0.27.2

1 file

0.27.1

1 file

0.27.0

1 file

0.3.0

1 file

0.2.3

1 file

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