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.

Open original source ↗

Older snapshot: check the original source for current information.

From the publisher

README & documentation

Source preview

Read 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…

mizorewww/laya-coreml on GitHub A short preview, not the full document.

Read the full README ↗ · Preview checked 2026-11-05T08:24:26.905Z

Inside the original README — Document outline
  1. Laya-CoreML
  2. Quick start
  3. Question types
  4. Model bundles
  5. What else it does
  6. Performance
  7. Snake demo
  8. Relationship to upstream
  9. Contributing
  10. 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.

README and project files

Issues and maintenance discussion

Releases and changelog

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.

Open original source

Related repositories

public-apis/public-apis

EbookFoundation/free-programming-books

donnemartin/system-design-primer

vinta/awesome-python

practical-tutorials/project-based-learning

NousResearch/hermes-agent