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.3.tar.gz (264.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.3-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.3.tar.gz.

File metadata

  • Download URL: onnxruntime_ep_mlx-0.29.3.tar.gz
  • Upload date:
  • Size: 264.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.3.tar.gz
Algorithm Hash digest
SHA256 bfe928036ed77d53499559bdba73206924bdec1d6ccc661b5bf2a7ba4018bfbd
MD5 0c1b2daf9ec3d4bd1d43fc78175aba3b
BLAKE2b-256 c6eeaa8196c6b51daf763fb7a2497fbdc534895f932d533e6ea4f4ddc604cd67

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for onnxruntime_ep_mlx-0.29.3-py3-none-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 934c30a0890f56cd8e78edea4a696d39571eea48e6e3eb560a488154dde84fce
MD5 07c03e832971075f424cc3f43f8d1609
BLAKE2b-256 d2df85db9cf4078f86922b535f5c3393fb1cb6396b1c25ad2237a117179f79b8

See more details on using hashes here.

Provenance

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

0.29.4

2 files

This release

0.29.3 This release

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