GitHub · Runtime ports · Games and demos
afshinm/laya-mps
Macs where memory matters more than milliseconds.

What it does
Runs Laya's typed-decisions checkpoint on an Apple GPU through PyTorch's Metal backend, with a local server and a demo that plays Pong and plots response latency for a minute on request.
The repository's own description: “Run Jev-style typed decisions locally on your Mac with low RAM usage and fast responses”
How it works
PyTorch dispatches the model to Metal Performance Shaders, the server binds to the loopback interface and works offline after the first download, and a lower-memory mode trades latency for roughly a third of the resident footprint.
The repository, by the numbers
Read from the GitHub API on 2026-09-24. Stars and the last push move daily — quote them with the date, the way we do.
What we checked
- the README, read 2026-09-24
- the two memory modes and the disk budget it asks for
- the licence file
What we did not check. The 32 ms median and the memory figures. Both are the author's, measured on an M5 Pro; our own run of the same weights is a CPU measurement and is not comparable.