# Laya（OS Jev）在 Mac M4 CoreML 离线环境下每秒 45 次决策

- 来源：Hacker News 热门（buzzing.cc 中文翻译）
- 作者：putna
- 发布时间：2026-09-21 05:13
- AIHOT 分数：32
- AIHOT 链接：https://aihot.news/items/cmuabls030a3kro5tfk5zp2zx
- 原文链接：https://gist.github.com/fordnox/e592d0f68b543fd044be8e6d040863a0

## AI 摘要

Laya（OS Jev）可在 Mac M4 上通过 CoreML 离线运行，达到每秒 45 次决策。用户可用 uv 安装 laya-coreml[demo]，并下载 aac6fef/laya-multilingual-coreml-ane 模型到本地，再运行 laya-coreml-snake 演示。

## 正文

fordnox/laya.sh

Last active September 20, 2026 20:10

Show Gist options

Download ZIP

(11) You must be signed in to star a gist

(1) You must be signed in to fork a gist

Select an option

Learn more about clone URLs

Save fordnox/e592d0f68b543fd044be8e6d040863a0 to your computer and use it in GitHub Desktop.

Select an option

Learn more about clone URLs

Save fordnox/e592d0f68b543fd044be8e6d040863a0 to your computer and use it in GitHub Desktop.

Download ZIP

Laya on Mac m4 CoreML Offline

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

Raw

laya.sh

mkdir test-laya

cd test-laya

uv init

uv add 'laya-coreml[demo]'

hf download aac6fef/laya-multilingual-coreml-ane --local-dir models/snake

uv run laya-coreml-snake --model models/snake
