Laya on MLX

laya-mlx is an independent MLX port of Laya that runs the original weights on the Apple Silicon GPU with no PyTorch or Transformers runtime. It keeps upstream prompt formatting, calibration and output schema, and it is the base for many Mac demos, agents and benchmarks.

140 projects

jev-laya-japanese-business-benchmark

snsk

Compares Jev and Laya on a Japanese business decision benchmark

0·GitHub repo

slop-finder

Code-Wizard-Wilson

Detects AI-like writing styles in social feeds using a local Laya-MLX helper

0·GitHub repo

Jev-agent

To3akaRin

Suggests clipboard entries based on the focused field using local Laya inference or the Jev API

0·GitHub repo

screenquest

DanielTea

Controls a game on Apple Silicon with screenshot perception, Laya decisions, and vision-language planning

0·GitHub repo

semantic-browser

koriym

Navigates hypermedia applications by selecting server-declared links using Laya-MLX

0·GitHub repo

laya-multilingual-mlx

janvavrina

Provides a multilingual Laya model in MLX format

0·GitHub repo

layad

rcwsr

Keeps the Laya decision model resident and serves it over HTTP with MLX or PyTorch

0·GitHub repo

laya-example

lim6112j

Demonstrates typed-question routing with Laya checkpoints and startup optimizations

0·GitHub repo

laya-adblock

Samuel-Ku

Uses a local MLX Laya model to identify and remove likely ads from web pages

0·GitHub repo

laya.mbt

majikxu

Implements Laya typed-decision inference in MoonBit with CPU and Metal backends

0·GitHub repo

Laya_TESTSUITE

sirwari

Provides Laya tests, demos, routing examples, and MLX setup guidance

0·GitHub repo

laya-todo

firede

Classifies to-do items locally with Laya and compares its predictions with an optional Kev backend

0·GitHub repo

laya-mlx-rs

andyjusa

A native Rust and MLX implementation runs Laya decision models on Apple Silicon

0·GitHub repo

laya-doom-agent

Jaiswal-Siddhant

Uses Laya-MLX to choose actions for an autonomous DOOM agent

0·GitHub repo

laya-mlx-advisor

esse

Uses a resident Laya-MLX model to adapt reasoning effort in Codex CLI and Claude Code

0·GitHub repo

obsidian-laya-tagger

tyPhoon-collab

Automatically tags Obsidian notes using the local Laya MLX typed-decision model

0·GitHub repo

laya-mcp-server

ocha-no-taiko

Wraps the laya-mlx typed-decision model in an MCP server for tools such as Claude Code

0·GitHub repo

laya-flappy-bird

GadhiyaRaj

A Flappy Bird-style game uses Laya to choose real-time flap or coast actions

0·GitHub repo

laya-or-jev-pong

bananadonn

Compares local Laya and hosted Jev decision APIs by having them control paddles in Pong

0·GitHub repo

laya-mlx-jev-compat

matt-starburst

Serves a local MLX Laya model through a Jev-compatible HTTP endpoint

0·GitHub repo

e2e-ui-test-laya

spencerlepine

A local browser-use agent uses Laya through MLX to choose actions and verify task completion

0·GitHub repo

system-one

arhamj

Serves Laya typed decisions from Apple silicon over a private Tailscale endpoint

0·GitHub repo

ai-update-radar-lab

starhunt

Tests Laya-based project relevance decisions and compares results with saved Jev evaluations

0·GitHub repo

Jev

Caho1

A research repository documents Laya fine-tuning, evaluation, local inference and browser automation experiments

0·GitHub repo

Install

Requirements from the laya-mlx README: Apple Silicon, Python 3.11+, macOS 14+.

pip install laya-mlx

Pre-converted FP16 checkpoints are on Hugging Face: aac6fef/laya-mlx, aac6fef/laya-multilingual-mlx and aac6fef/laya-typed-decisions-mlx. You can also load the original convaiinnovations/laya IDs.

Router and CLI

The port includes the upstream language router and presets:

from laya_mlx import Router, triage_questions

router = Router(dtype="float16", max_loaded=2)
result = router.predict({"message": "发票被重复扣款,请退款。"}, triage_questions())
print(result["routing"])  # multilingual

For the terminal demo, where Laya plays Snake:

pip install 'laya-mlx[demo]'
hf download aac6fef/laya-multilingual-mlx
laya-snake

Reported numbers

On an M3 Max, FP16, one short question: 13.42 ms P50 for the 421M English model and 7.39 ms for the 322M multilingual model. The README states that all three checkpoints matched the upstream answer on 63/63 validation questions in FP32 and FP16. That measures port fidelity, not task accuracy.

Projects built on laya-mlx

Caveats

This is not an official Convai Innovations release. Training and fine-tuning stay in the upstream project. BF16 can be requested but is not part of the published validation.

More ways to use Laya