跳到正文

正在自动登录…

← 返回项目列表

mizorewww/laya-coreml

模型本地部署模型接口服务

在 Apple Silicon 上本地运行 Laya 模型,提供类型化决策(选择、评分、布尔)的推理,无需生成文本。适用于需要低延迟、离线决策的开发者,可通过 Python API 或命令行使用。

AI 中文解读 · 根据仓库描述与 README 生成 · 2026/10/16 21:11:32 · 查看原文

值得看Python应用与服务兼有 库与框架
累计 Stars
1,597
当前热度
已过新项目期
仓库创建时间
打开 GitHub ↗项目网站 ↗

选用指南

AI 根据 README 整理 · 2026/10/16 21:11:32

使用方式

通过 Python API 或命令行使用,例如 `laya-coreml-snake` 运行演示,或使用 `laya.load` 加载模型进行预测。

查看 README 依据
compiled MLX FP16. A separately validated W8 palette variant reached 4.88 ms and 3.19× energy improvement. These are single-question results, not full Snake frame times; the requested 10× improvement was not achieved. ## Run the demo Apple Silicon · macOS 15+ · Python 3.11–3.13. ```bash pip install 'laya-coreml[demo]' hf download aac6fef/laya-multilingual-coreml-ane --local-dir models/snake laya-coreml-snake --model ./models/snake ``` Download once, then play offline. No PyTorch, Transformers or MLX is needed for
inference. The terminal needs 104 columns × 35 rows. Space pauses; ↑/↓ changes speed; R resets; Q quits. First-time Core ML initialization can take tens of seconds. [Controls, recording and video export](https://github.com/mizorewww/laya-coreml/blob/main/docs/SNAKE_DEMO.md) · [Measured stable decision rates](https://github.com/mizorewww/laya-coreml/blob/main/docs/SNAKE_BENCHMARKS.md) · [Shareable video and recording provenance](https://github.com/mizorewww/laya-coreml/blob/main/docs/LAUNCH.md) ## Ask for a decision ```bash pip install laya-coreml ``` ```python import laya_coreml as laya
部署要求

需要 Apple Silicon、macOS 15+、Python 3.11–3.13。

查看 README 依据
compiled MLX FP16. A separately validated W8 palette variant reached 4.88 ms and 3.19× energy improvement. These are single-question results, not full Snake frame times; the requested 10× improvement was not achieved. ## Run the demo Apple Silicon · macOS 15+ · Python 3.11–3.13. ```bash pip install 'laya-coreml[demo]' hf download aac6fef/laya-multilingual-coreml-ane --local-dir models/snake laya-coreml-snake --model ./models/snake ``` Download once, then play offline. No PyTorch, Transformers or MLX is needed for
已知限制

ANE 模型有 96-token 总限制,长文本需使用 1024-token 模型;W8 变体是近似压缩,可能影响精度。

查看 README 依据
`local_files_only=True` to require an existing cache, or load a local directory. Following upstream v0.3.5, fitted calibration temperatures are clamped to `[0.5, 5.0]` before use: the shipped `choice:11+` bucket is 0.1006, which would sharpen logits ~10x and report a coin flip as near-certainty. The checkpoint's raw values remain available as `agent.temperature_raw` and `agent.temperature_by_options_raw`, and a `RuntimeWarning` names every clamped bucket at load. The ANE bundle has a **96-token total limit**, including question, options and
| Speed gain | 1× | **1.39×** | **1.42×** | | System energy gain | 1× | **2.78×** | **3.19×** | Energy uses direct SMC PSTR sensor readings, with raw samples and explicit anomaly rejection. This is an estimate with sensor and background-load uncertainty. **Speed gain × average power ratio = energy gain**; multiplying energy by speed again would double-count time. The W8 variant compresses weights while retaining FP16 compute. It is approximate, and its package-size reduction is not a speed ratio.

README

正在加载 README…

收录信息

仓库创建时间
2026/9/20 07:14:13
首次达标收录
2026/10/9 11:44:24
统计更新时间
2026/10/22 18:40:47

按创建时长与累计 Stars 判断等级。首次达标收录后,即使未达当前门槛仍保留;累计 Stars 和仓库状态会定期更新。确认只有 README 及辅助文件的仓库会停止公开。

模型评估

值得看加权总分 4.0 / 5

新颖度
3.9
实用价值
3.9
成熟度
4.6
实质含量
4.2

由 Jev 模型根据仓库描述与 README 评估,2026/10/16 20:41:52 生成。评分仅供参考,不是代码、安全或许可证审查;热度等级另按创建时长与累计 Stars 计算。

仓库信息

最近推送
2026/10/20 16:21:34
许可证标识
Apache-2.0
Fork 数
135
当前状态
未归档

收录记录

按创建时长与累计 Stars 首次收录:小火
首次发现项目