Tools/mizorewww/laya-coreml

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.

1.3kemergingPythonApache License 2.0new this week

The Lens

By Erik Loyd, SaaS CEO and former COO/CFO of an AWS Premier Partner.

Updated Sep 2026

laya-coreml moves Laya decision models onto Apple's Neural Engine, the low-power AI chip in every Apple Silicon Mac. Laya answers multiple choice, rating, and yes or no questions with probabilities instead of generated text, the open counterpart to TypeSafe's Jev. This is the same author's follow-up to mizorewww/laya-mlx, and it is Apache-2.0.

Install is pip install laya-coreml on macOS 15 or later. Weights download from Hugging Face on first load, then everything runs offline, with no PyTorch needed. The author measured about 5 ms per short question on an M3 Max, roughly 1.4x faster than the MLX port and about 2.8x less energy per decision.

Free at every size. Use it when a Mac app needs a fast yes or no or a routing decision thousands of times a session and battery matters. For longer prompts, laya-mlx is simpler.

The catch is the fine print. The Neural Engine build caps each request at 96 tokens total, question and options included. An experimental 1,024-token Neural Engine build took about 92 ms per request, and the author says the short-prompt speedup does not carry over to long prompts. The weights sit on a pseudonymous Hugging Face account, and this is a port of a port, a few days old.

Free vs Self-Hosted vs Paid

fully free

Free tier: Fully free. The package is Apache-2.0 and the converted weights download from Hugging Face at no cost.

Self-hosted: Runs locally on any Apple Silicon Mac with macOS 15 or later and Python 3.11 to 3.13. No server, no account, and no PyTorch at inference time. The Neural Engine build handles requests up to 96 tokens; a general-purpose Core ML build handles up to 1,024 tokens on CPU and GPU.

Paid: No paid tier. The hosted comparison is TypeSafe's Jev API, which publishes $42 per billion input tokens.

Completely free. Worth it only for short decisions on a Mac, where the Neural Engine saves real battery.

What to do by team size

Solo
free
Small team
free
Medium team
free; test against your own questions first
Large team
free, but plan to own the fork since it is a one-person port
Self-hosting ops:trivial

Get tools like this every Wednesday

One featured tool, three on the radar. No fluff.

Score
54/100 · C+
Adoption12/30
Maintenance10/25
Community7/20
License15/15
Analysis10/10

A low score is not a verdict on quality. Young and niche tools start low by design. How we calculate scores

Trust Signals

Author also built: mizorewww/laya-mlx (5,657 stars)

License: Apache License 2.0

Use freely. Patent grant included.

Commercial use: ✓ Yes

About

Owner
mizorewww (User)
Stars
1,329

Also by mizorewww

Explore Further

More tools in the directory