{"id":15631759,"url":"https://github.com/cansik/onnxruntime-silicon","last_synced_at":"2025-07-04T10:33:32.499Z","repository":{"id":43107063,"uuid":"489766688","full_name":"cansik/onnxruntime-silicon","owner":"cansik","description":"ONNX Runtime prebuilt wheels for Apple Silicon (M1 / M2 / M3 / ARM64)","archived":false,"fork":false,"pushed_at":"2024-07-10T14:55:23.000Z","size":16,"stargazers_count":214,"open_issues_count":8,"forks_count":18,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-06-08T01:43:03.963Z","etag":null,"topics":["apple","macos","onnx","onnxruntime","silicon"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cansik.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-05-07T19:41:53.000Z","updated_at":"2025-06-03T07:43:23.000Z","dependencies_parsed_at":"2024-02-07T09:31:22.443Z","dependency_job_id":"590b9f8a-cff8-4290-8650-80ae0e690c94","html_url":"https://github.com/cansik/onnxruntime-silicon","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/cansik/onnxruntime-silicon","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cansik%2Fonnxruntime-silicon","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cansik%2Fonnxruntime-silicon/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cansik%2Fonnxruntime-silicon/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cansik%2Fonnxruntime-silicon/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cansik","download_url":"https://codeload.github.com/cansik/onnxruntime-silicon/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cansik%2Fonnxruntime-silicon/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263493275,"owners_count":23475166,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["apple","macos","onnx","onnxruntime","silicon"],"created_at":"2024-10-03T10:41:27.555Z","updated_at":"2025-07-04T10:33:32.479Z","avatar_url":"https://github.com/cansik.png","language":"Shell","readme":"# [ONNX Runtime](https://github.com/microsoft/onnxruntime) for Apple Silicon [![PyPI](https://img.shields.io/pypi/v/onnxruntime-silicon)](https://pypi.org/project/onnxruntime-silicon/)\nONNX Runtime prebuilt wheels for Apple Silicon (M1 / M2 / arm64)\n\n⚠️ The official [ONNX Runtime](https://pypi.org/project/onnxruntime/) now includes `arm64` binaries for MacOS as well with Core ML support. Please use the official wheel package as this repository is no longer needed.\n\n```\npip install onnxruntime\n```\n\n## Install\nTo install the prebuilt packages, use the following command to install. The package is called **onnxruntime-silicon** but is a drop-in-replacement for the onnxruntime package.\n\n```\npip install onnxruntime-silicon\n```\n\n## Build\nTo build the libraries yourself, please first install the following dependencies and run the build script.\n\n```\nbrew install wget cmake protobuf git git-lfs\n```\n\n```\n./build-macos.sh\n```\n\nThe pre-built wheel packages should be in the `dist` directory.\n\n## FAQ\n\n#### Installation\n\n\u003e pip install onnxruntime-silicon returns the following error: Could not find a version that satisfies the requirement onnxruntime-silicon\n\nThis indicates either that the Python version is not supported (currently only `3.8`, `3.9`, `3.10`, `3.11`) or that the python installation is not built for `arm64`. You can check this by running the following command: \n\n```bash\nfile $(which python) | grep -q arm64 \u0026\u0026 echo \"Python for arm64 found\" || echo \"Python for arm64 has not been found\"\n```\n\n#### Import ONNX Runtime\n\n\u003e import onnxruntime reaises the exception: ModuleNotFoundError: No module named 'onnxruntime'\n\nIt seems that onnxruntime has not been installed yet, please run `python -m pip install onnxruntime-silicon`. Check if it has been installed correctly with the following command:\n\n```bash\npython -m pip freeze | grep -q onnxruntime-silicon \u0026\u0026 echo \"ONNX runtime for arm64 found\" || echo \"No ONNX runtime for arm64 found\"\n```\n\n#### Import ONNX Runtime Silicon\n\n\u003e import onnxruntime-silicon raises the exception: ModuleNotFoundError: No module named 'onnxruntime-silicon'\n\n`onnxruntime-silicon` is a dropin-replacement for `onnxruntime`. After [installing](#Install) the package, everything works the same as with the original `onnxruntime`. Import the package like this: `import onnxruntime`.\n\n#### Another Issue\n\nIf your specific issue is not answered by the [FAQ](#FAQ) and there is not already an [issue]([url](https://github.com/cansik/onnxruntime-silicon/issues/)) solved or open, please [open a new issue](https://github.com/cansik/onnxruntime-silicon/issues/new/choose) for it. Provide the following information:\n\n- MacOS version and architecture\n- Python version and architecture\n- Pip version\n- ONNX Runtime version\n\nYou can also run the following command and copy paste it's output into the issue:\n\n```bash\necho \"\"; \\\necho \"Operating System: $(uname -s) $(uname -r)\"; \\\necho \"Architecture: $(uname -m)\"; \\\necho \"Python Version: $(python --version 2\u003e\u00261)\"; \\\necho \"Python Architecture: $(python -c 'import platform; print(platform.architecture()[0])')\"; \\\necho \"Python Executable: $(file $(which python))\"; \\\necho \"PIP Version: $(pip --version | awk '{print $2}')\"; \\\necho \"\"\n```\n\n## About\nMIT License - Copyright (c) 2024 Florian Bruggisser\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcansik%2Fonnxruntime-silicon","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcansik%2Fonnxruntime-silicon","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcansik%2Fonnxruntime-silicon/lists"}