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.

260 projects

Bud-Decision-Engine

BudEcosystem

Desktop app and local server for Laya and other Jev-like decision models

4·GitHub repo

laya-mcp

wsargent

Runs local Laya inference on Apple Silicon and exposes typed-decision tools through an MCP server

3·GitHub repo

laya-router-skill

wangmiaozero

Adds local Laya decision routing to coding agents through skills and MCP

3·GitHub repo

doomLaya

azalio

Trains and compares Laya and Jev agents playing FreeDoom with reproducible results

3·GitHub repo

oh-my-laya

leo1394

Installs local Laya tools for classification, scoring, and routing in coding agents

3·GitHub repo
C

laya-MLX-8bit

cavi-ai

An 8-bit MLX conversion of Laya checkpoints for Apple Silicon

565·HF model

localjev-mlx

rimusz

A self-hosted System One judgment service for Apple Silicon using laya-mlx

2·GitHub repo

doom-war

rythmn1111

Compares local MLX Laya and hosted Jev as decision-makers in a Doom deathmatch

2·GitHub repo

laya-vs-jev

zaferayan

Benchmarks multilingual Laya against hosted Jev across 900 cases, three tasks, and six languages

2·GitHub repo

SnakeGame_Laya

Okbatti

Uses a fine-tuned Laya model to choose moves in a Snake game

2·GitHub repo

laya-mlx-zh

ZLHAOOO

Provides Chinese fine-tuned Laya weights, training data, and evaluations for Apple Silicon MLX

2·GitHub repo

design-os-generative-ui

jangtrinh

Builds a generative UI engine using local Laya-MLX decisions and a TypeSafe JEV cascade router

2·GitHub repo

pacman-arena

hakan-gecili

Compares Laya with other local decision models playing Pac-Man under identical conditions

2·GitHub repo

s1-tui

tnaftali

Provides a terminal interface for typed decisions using local Laya or the hosted Jev API

2·GitHub repo
A

laya-modernbert-decision-90pct

ameerhmz5

Fine-tunes Laya into a ModernBERT decision model and offers deployment formats

473·HF model
S

Laya-Multilingual-MXFP8

sahilchachra

An MXFP8 MLX quantization of Laya multilingual's encoder backbone for Apple Silicon

274·HF model
A

laya-toolguard-mlx

a3harva

Fine-tunes Laya in MLX to assess coding-agent tool calls for safety risks

110·HF model
G

laya-multilingual-arc

goktugoguz

Fine-tunes Laya to classify Arc USDC transfers and answer questions about them

10·HF model
Y

fin-laya-mlx-6-rounds

ya9919

A 0.42B-parameter financial decision model trained on CHFS, CGSS, CFPS and CLDS data

10·HF model
G

laya-multilingual-stellar

goktugoguz

Fine-tunes Laya to classify Stellar operations and answer questions about them

5·HF model
M

laya-mlx

millat

Converts Laya to a native MLX FP16 checkpoint for inference on Apple silicon

1·HF model
M

LayaVoxprompt

MainzelMennchen

Fine-tunes multilingual Laya to classify dictation as an assistant prompt or ordinary text

1·HF model
M

laya-snake-mlx

madhavbiplov

Fine-tunes a multilingual Laya model for calibrated snake-game decisions on Apple silicon

1·HF model
Y

fin-laya-mlx-3-rounds

ya9919

A 0.42B-parameter financial decision model trained on CHFS and CGSS data

1·HF model

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