{"id":50494279,"url":"https://github.com/computer-graphics-tools/ane","last_synced_at":"2026-06-02T05:31:22.134Z","repository":{"id":342091735,"uuid":"1166736132","full_name":"computer-graphics-tools/ane","owner":"computer-graphics-tools","description":null,"archived":false,"fork":false,"pushed_at":"2026-03-05T13:57:51.000Z","size":72,"stargazers_count":39,"open_issues_count":0,"forks_count":5,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-05-23T00:02:54.112Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","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/computer-graphics-tools.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-02-25T14:52:11.000Z","updated_at":"2026-04-21T01:07:31.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/computer-graphics-tools/ane","commit_stats":null,"previous_names":["computer-graphics-tools/ane"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/computer-graphics-tools/ane","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/computer-graphics-tools%2Fane","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/computer-graphics-tools%2Fane/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/computer-graphics-tools%2Fane/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/computer-graphics-tools%2Fane/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/computer-graphics-tools","download_url":"https://codeload.github.com/computer-graphics-tools/ane/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/computer-graphics-tools%2Fane/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33808702,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-02T02:00:07.132Z","response_time":109,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2026-06-02T05:31:21.148Z","updated_at":"2026-06-02T05:31:22.129Z","avatar_url":"https://github.com/computer-graphics-tools.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ane\n\nRust bindings for Apple Neural Engine (ANE) via the private `AppleNeuralEngine.framework`.\n\nProvides a symbolic graph builder and a compile-then-run lifecycle through `_ANEInMemoryModel`, using IOSurface-backed zero-copy I/O.\n\n## Example\n\n```rust\nuse ane::{Graph, Shape, TensorData, NSQualityOfService};\n\nlet mut graph = Graph::new();\n\nlet input   = graph.placeholder(Shape::channels(64));\nlet weights = graph.constant(\u0026weight_data, Shape { channels: 64, height: 1, width: 1, batch: 1 });\nlet output  = graph.convolution_2d_1x1(input, weights, None);\nlet output  = graph.relu(output);\n\nlet executable = graph.compile(NSQualityOfService::Default)?;\n\nlet input_tensor  = TensorData::with_f32(\u0026data, Shape::channels(64));\nlet output_tensor = TensorData::new(Shape::channels(64));\nexecutable.run(\u0026[\u0026input_tensor], \u0026[\u0026output_tensor])?;\n\nlet result = output_tensor.read_f32();\n```\n\n## GPT-2 forward pass\n\nThe included `gpt2_forward` example downloads GPT-2 124M from Hugging Face, compiles the transformer layers to ANE, and runs autoregressive text generation with KV-cache:\n\n```\ncargo run --release --example gpt2_forward\n```\n\n## Research\n\nThe ANE internals research behind this crate was inspired by Mohamed Ghannam's [weightBufs exploit chain](https://cra.sh/public_html/strlcpy3/iosmacos-exploit-chain-cve-2022-32845-32948-42805-32899-weightbufs) writeup, which documents the ANE architecture, the `aned` / `ANECompilerService` pipeline, and the kernel interface (`AppleH11ANEInterface`).\n\n## License\n\n[MIT](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcomputer-graphics-tools%2Fane","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcomputer-graphics-tools%2Fane","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcomputer-graphics-tools%2Fane/lists"}