mizorewww/laya-coreml
Local Laya typed decisions on Apple Core ML and Neural Engine. Validated ports, ~5 ms short decisions on M3 Max, reproducible speed and energy benchmarks.
Older snapshot: check the original source for current information.
From the publisher
README & documentation
Source previewRead the project’s overview, installation instructions and usage examples. The original README is the source of truth.
Open-weight typed decisions on Apple Silicon: Core ML, Neural Engine, zero generated tokens. 中文 · Usage reference · Benchmarks · PyPI · Hugging Face weights · Changelog Laya answers constrained questions (pick an option, score against a rubric, judge true or false) with calibrated probabilities from one bidirectional forward pass. It generates no tokens and returns no JSON to parse. This package runs the original Laya weights as Core ML programs on the CPU, GPU or Neural Engine. Inference needs no PyTorch, Transformers or MLX. 4.98 ms median for one short multilingual decision on the M3 Max Neural Engine, using 2.78× less system energy than compiled MLX. Requires Apple Silicon, macOS 15+ and Python 3.11–3.13. Describing each option, as above, works much better than bare labels. The bundle downloads before first use; predictions after that are local. Pass localfilesonly=True to forbid network access. States can be text, JSON-like dicts or…
Read the full README ↗ · Preview checked 2026-11-05T08:24:26.905Z
Inside the original README — Document outline
- Laya-CoreML
- Quick start
- Question types
- Model bundles
- What else it does
- Performance
- Snake demo
- Relationship to upstream
- Contributing
- License
Headings are captured from the source. Links open the publisher’s document, not a locally hosted copy.
Links from the README
References supplied by the publisher, not independently verified endorsements. Check the destination before downloading files or entering credentials.
Documentation belongs to its respective authors. Reported project/model license: Apache-2.0. A listing is not a grant of reuse or training rights. Confirm the document’s own terms at the source.
What this repository does
Local Laya typed decisions on Apple Core ML and Neural Engine. Validated ports, ~5 ms short decisions on M3 Max, reproducible speed and energy benchmarks.
Repository facts
- Owner
- mizorewww
- Primary language
- Python
- Stars
- 1,588
- Forks
- 132
- Open issues + pull requests
- 0
- License
- Apache-2.0
- Archived
- No
- Default branch
- main
- Created
- 2026-09-19T23:14:13.000Z
- Last push
- 2026-10-10T02:46:59.000Z
Topics and intended use
Owner-supplied topics: apple-neural-engine, apple-silicon, coreml, decision-model, laya, local-ai, modernbert, on-device-ai, typed-decisions
Review the README for scope, installation, examples and limitations. We do not run repository code or certify it.
Evaluate before installing
Review licensing and dependencies, inspect recent commits and unresolved issues, and test in an isolated environment before production use. Stars and forks alone cannot answer these questions.
Source and freshness
Source: GitHub. Metadata observed 2026-10-16T12:09:50.292Z. Daily imports are snapshots, not real-time monitoring.
Popularity and source listings do not establish security, suitability, licensing rights or benchmark performance.
Related repositories
EbookFoundation/free-programming-books
donnemartin/system-design-primer