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

Original title: Laya on Mac M4 CoreML Offline

> Hacker News story 49777106 · language: en · submitted 2026-09-20
> Web version: https://zeli.app/story/49777106
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 166 · by [putna](<https://news.ycombinator.com/user?id=putna>) · 💬 32
[original](<https://gist.github.com/fordnox/e592d0f68b543fd044be8e6d040863a0>) · [HN discussion](<https://news.ycombinator.com/item?id=49777106>)

## Summary

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.

## Key quote

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

## HN discussion (32 comments)

### [imranq](<https://news.ycombinator.com/item?id=49779462>)

> Based on my admittedly limited research, it seems like you should use Laya for much more deterministic tasks where you have some training data. It won't be as good as Jev for zero shot cases.

### [PaulRobinson](<https://news.ycombinator.com/item?id=49777759>)

> Local LLMs are the future, and one of the reasons I think the data centre furore is just going to end in a market crash.
>
> LLMs that can reliably be used for control problems are the future, and I think classic/deep RL has generally been overlooked for years for a whole host of problems by wider industry because it felt inaccessible. The first thing I thought of when I saw Jev (and then Laya), was "this might move the needle in a really, really interesting way".
>
> Local LLMs that can reliably be used for control problems smash through a lot of barriers I'm interested in, and this intrigues me a lot. Guess I'm about to become a big Laya fan if it can run on this kind of hardware to this performance.

### [speedping](<https://news.ycombinator.com/item?id=49780354>)

> So cool. I've fired up pumas (energy monitor) and it seems to run almost fully on the neural engine and not the GPU so it plays really nicely with CoreML

### [altano](<https://news.ycombinator.com/item?id=49778969>)

> How much memory does this use of the test machine's (M3 Max) 128 GB unified memory?

### [tentacleuno](<https://news.ycombinator.com/item?id=49777807>)

> This looks like a local AI model playing Snake -- is that correct? The article offers no explanation.

---

## Cite

- Page: https://zeli.app/story/49777106
- Date: 2026-09-20
- Source: gist.github.com (https://gist.github.com/fordnox/e592d0f68b543fd044be8e6d040863a0)
- Hacker News: https://news.ycombinator.com/item?id=49777106

## Other languages

- zh: https://zeli.app/zh/story/49777106 · markdown: https://zeli.app/zh/story/49777106.md
- ja: https://zeli.app/ja/story/49777106 · markdown: https://zeli.app/ja/story/49777106.md
- ko: https://zeli.app/ko/story/49777106 · markdown: https://zeli.app/ko/story/49777106.md
- de: https://zeli.app/de/story/49777106 · markdown: https://zeli.app/de/story/49777106.md
- es: https://zeli.app/es/story/49777106 · markdown: https://zeli.app/es/story/49777106.md
- ru: https://zeli.app/ru/story/49777106 · markdown: https://zeli.app/ru/story/49777106.md
