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.5.tar.gz (283.3 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.5-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.5.tar.gz.

File metadata

  • Download URL: onnxruntime_ep_mlx-0.29.5.tar.gz
  • Upload date:
  • Size: 283.3 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.5.tar.gz
Algorithm Hash digest
SHA256 bf5ffedf19830552d95ebab8182a4748887848ebd4eb442259afb155e656576b
MD5 6bc7d222224e28bb0db26610344ed406
BLAKE2b-256 221dd7f27f139aa1de4ccc6c314648ed1b0d7e55256bfbe1fe6d9845d27ffcb8

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for onnxruntime_ep_mlx-0.29.5-py3-none-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 5b087643d7c0301f9d5ec531f0bb8891d7eb88df8811eb73169d6d349d1f75e5
MD5 d4a24a8636489a4acf4ddc1253595f47
BLAKE2b-256 1444cb8bf9621985f01809853a73f6e59cbc1d5921c999a9272a6172dff45dde

See more details on using hashes here.

Provenance

The following attestation bundles were made for onnxruntime_ep_mlx-0.29.5-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.5 This release

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