onnx2mlx
Convert ONNX models into MLX callables for accelerating inference on Apple Silicon.
Setup Instructions
Open a terminal and run the following command:
# Install onnx2mlx
$ pip install --upgrade onnx2mlx
Converting from ONNX to MLX
Use the onnx2mlx function to create a callable that uses MLX to run the model:
import mlx.core as mx
import onnx
from onnx2mlx import onnx2mlx
# Load an ONNX model
model = onnx.load("model.onnx")
# Convert to MLX
model_mlx = onnx2mlx(onnx_model)
# Run the MLX model
outputs = model_mlx(mx.array(...))
Useful Links
- Join our Slack community.
- Check out the docs.
- Read our blog.
- Reach out to us at hi@muna.ai.
Metadata
Release files for onnx2mlx 0.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| onnx2mlx-0.0.5.tar.gz | 21.1 kB | With provenance | Details for onnx2mlx-0.0.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| onnx2mlx-0.0.5-py3-none-any.whl | Python 3 | none | any | Details for onnx2mlx-0.0.5-py3-none-any.whl |
Total release size: 47.5 kB
Release files / onnx2mlx-0.0.5.tar.gz
| Download URL | onnx2mlx-0.0.5.tar.gz |
|---|---|
| Size | 21.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2f9eb0370490ea68d142fdc6f55332b59a0052ab0012c5c842b8eb2ca682210c
|
|
BLAKE2b-256 checksum How to use checksums |
94a9b5c6feafc15d86808a2db05458a83e568f177efceab205ec5241d8459ec5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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 Mar 12, 2026.
Transparency logRelease files / onnx2mlx-0.0.5-py3-none-any.whl
| Download URL | onnx2mlx-0.0.5-py3-none-any.whl |
|---|---|
| Size | 26.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5a6fb7a1f5dfa65b13bb17846fceb0d3f9f506b75e8d9ed820cd123f4575e2ce
|
|
BLAKE2b-256 checksum How to use checksums |
ed34926a7dc3b6c5dcedc87f60b3e2c840021a4de6f275594ade2703bd9bb75e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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 Mar 12, 2026.
Transparency logSecurity for onnx2mlx 0.0.5
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.
Attestation for onnx2mlx-0.0.5.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 Mar 12, 2026.
Transparency logA 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.