onnxruntime-ggml
An onnxruntime execution provider that runs ONNX models on ggml's Metal, Vulkan and CPU kernels.
uv pip install onnxruntime-ggml
Requires Python 3.11 or newer.
The wheel includes the native provider and installs a compatible onnxruntime. Supports macOS 14+ (Apple silicon), Linux x86_64 (glibc 2.35+) and aarch64 (glibc 2.39+), and Windows x64. No compiler or separate ggml installation is needed.
import onnxruntime_ggml as ggml
session = ggml.InferenceSession("model.onnx") # ggml first, CPU provider as fallback
session = ggml.InferenceSession("model.onnx", {"device": "cpu", "threads": 4})
Or keep your own session options:
import onnxruntime as ort, onnxruntime_ggml as ggml
so = ggml.session_options({"device": "gpu"})
session = ort.InferenceSession("model.onnx", so)
Set ORT_GGML_LOG=debug to see what the provider does with a graph. Full docs: https://github.com/thewh1teagle/onnxruntime-ggml
Metadata
Release files for onnxruntime-ggml 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
| File | Actions Reset | |||
|---|---|---|---|---|
| onnxruntime_ggml-0.2.0-py3-none-win_amd64.whl | Python 3 | none | Windows x86-64 | Details for onnxruntime_ggml-0.2.0-py3-none-win_amd64.whl |
| onnxruntime_ggml-0.2.0-py3-none-manylinux_2_38_aarch64.manylinux_2_39_aarch64.whl | Python 3 | none | Linux glibc 2.39+ ARM64, Linux glibc 2.38+ ARM64 | Details for onnxruntime_ggml-0.2.0-py3-none-manylinux_2_38_aarch64.manylinux_2_39_aarch64.whl |
| onnxruntime_ggml-0.2.0-py3-none-manylinux_2_35_x86_64.whl | Python 3 | none | Linux glibc 2.35+ x86-64 | Details for onnxruntime_ggml-0.2.0-py3-none-manylinux_2_35_x86_64.whl |
| onnxruntime_ggml-0.2.0-py3-none-macosx_14_0_arm64.whl | Python 3 | none | macOS 14.0+ ARM64 | Details for onnxruntime_ggml-0.2.0-py3-none-macosx_14_0_arm64.whl |
Total release size: 60.7 MB
Release files / onnxruntime_ggml-0.2.0-py3-none-win_amd64.whl
| Download URL | onnxruntime_ggml-0.2.0-py3-none-win_amd64.whl |
|---|---|
| Size | 17.9 MB |
| Tags | Python 3 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
8c4d749f910cdb07b740b818bf906917ef7a1b3d1a58cb3cb88cd62e01bc10ca
|
|
BLAKE2b-256 checksum How to use checksums |
2454efd45c40b55c72dce3e267e53446371551212960255468cfbf34b10ada50
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.6 {"installer":{"name":"uv","version":"0.11.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / onnxruntime_ggml-0.2.0-py3-none-manylinux_2_38_aarch64.manylinux_2_39_aarch64.whl
| Download URL | onnxruntime_ggml-0.2.0-py3-none-manylinux_2_38_aarch64.manylinux_2_39_aarch64.whl |
|---|---|
| Size | 18.5 MB |
| Tags | Linux glibc 2.38+ ARM64 Linux glibc 2.39+ ARM64 Python 3 |
|
SHA-256 checksum How to use checksums |
8e7ea1fb79109a136f9783559df3ee9d3562e091dbf199fc3e8d04544d5a8316
|
|
BLAKE2b-256 checksum How to use checksums |
dc51b32c51aa0165486f64ac2b389b785bb0861ad4c594bd12779b946272a5ca
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.6 {"installer":{"name":"uv","version":"0.11.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / onnxruntime_ggml-0.2.0-py3-none-manylinux_2_35_x86_64.whl
| Download URL | onnxruntime_ggml-0.2.0-py3-none-manylinux_2_35_x86_64.whl |
|---|---|
| Size | 22.5 MB |
| Tags | Linux glibc 2.35+ x86-64 Python 3 |
|
SHA-256 checksum How to use checksums |
2342809f3f6dc2d7b6d303f3bcde391ec5ab10177ce45aec9365880aa5914745
|
|
BLAKE2b-256 checksum How to use checksums |
035c081250a15a155684d1255840d01ca31a9fa556a0e1bfd461a841b940559a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.6 {"installer":{"name":"uv","version":"0.11.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / onnxruntime_ggml-0.2.0-py3-none-macosx_14_0_arm64.whl
| Download URL | onnxruntime_ggml-0.2.0-py3-none-macosx_14_0_arm64.whl |
|---|---|
| Size | 1.8 MB |
| Tags | Python 3 macOS 14.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
b044e7813ab0af094c07ec1bf371cff858138362037c7512c814dfe89f939228
|
|
BLAKE2b-256 checksum How to use checksums |
a19216e4c27d31a9c12e701d819fb7971bbabe6c18ed2a399cf1139866a9448a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.6 {"installer":{"name":"uv","version":"0.11.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for onnxruntime-ggml 0.2.0
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A 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.