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.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.4.tar.gz (276.0 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.4-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.4.tar.gz.

File metadata

  • Download URL: onnxruntime_ep_mlx-0.29.4.tar.gz
  • Upload date:
  • Size: 276.0 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.4.tar.gz
Algorithm Hash digest
SHA256 5db886084e3a6dfb41c56ac2d65bbafeefd57c7699873b8c7e44dbdca06d131c
MD5 72754aa854ec53553c22d1dc63a78985
BLAKE2b-256 327c87a06a2af8a40d873ceec761d77ff1435c93efd997a5608f43abe12763ad

See more details on using hashes here.

Provenance

The following attestation bundles were made for onnxruntime_ep_mlx-0.29.4.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.4-py3-none-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for onnxruntime_ep_mlx-0.29.4-py3-none-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 fbdc66f12f8f878ac6e667ba02550e79774d3a8a7dce049c485b958ae79944cc
MD5 5ff84a03ecc470ba1c80ab94b3576a77
BLAKE2b-256 a8f6e9753b90f18a2d04a3a9ae332296071dd3cb3715cf5ec139bb71eedec337

See more details on using hashes here.

Provenance

The following attestation bundles were made for onnxruntime_ep_mlx-0.29.4-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

0.29.5

2 files

This release

0.29.4 This release

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