Laya runs fully offline on a Mac M4, hitting 45 decisions per second

Laya (OS Jev) on Mac M4 CoreML Offline (45 decisions per second)

A GitHub gist from fordnox shows how to run Laya, an open-source decision model, entirely offline on a Mac M4 using CoreML and the Apple Neural Engine. The setup relies on the laya-coreml package and a multilingual CoreML model, installed with uv and downloaded via hf. The demo, a Snake game driven by the model, reaches roughly 45 decisions per second with no network connection.

Author testing https://github.com/mizorewww/laya-coreml

More from this day

2026-09-20