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

laya-plugin

Andrei-cloud

Provides an offline Laya decision plugin for coding agents through MCP and native integrations

0·GitHub repo

laya-explore

Lewiscowles1986

Explores running Laya locally, including an MLX demo for Apple Silicon

0·GitHub repo

laya-opencode-router

Wauuuuuu

A macOS OpenCode plugin routes tasks using local Laya classification and optional MLX models

0·GitHub repo

hermes-laya-arbiter-integration

osviel91

Connects Hermes Agent to Laya/Arbiter decision tools through MCP

0·GitHub repo

jev-clean

chengyixu

A macOS cleanup tool that uses Laya-MLX to investigate System Data and propose files for review

0·GitHub repo

system-one-playground

goodboybeau

A macOS playground comparing Laya, Decider, Kev and Jev on accuracy, calibration and performance

0·GitHub repo

laya-eval

imaddde867

An evaluation compares local Laya with jevmlx and hosted Jev on public cases

0·GitHub repo

laya-mlx-http

mjrussell91

Serves the Laya MLX question-answering model through a local FastAPI endpoint

0·GitHub repo

laya_ai_model_demo

lalithdabilpuram01

Tests Laya on labelled support emails and measures inference latency across local devices

0·GitHub repo

ai-sec-lab

shsingh

A Mac-based Kubernetes lab demonstrates prompt-security defenses using Laya and NOVA

0·GitHub repo

local-jev-bench

tak-bro

Benchmarks local Jev-style decision models, including Laya, on Apple Silicon

0·GitHub repo

laya-mcp

kennedyshead

Serves local Laya routing decisions to coding agents through an MCP server

0·GitHub repo

laya-api

gugaucb

Serves Laya and Laya-MLX models through OpenAI- and Anthropic-compatible APIs

0·GitHub repo

sys1rust

kgarg2468

A Rust and MLX service runs Laya decision models locally and exposes the System 1 API

0·GitHub repo

notchvoice

Starlord-999

A hands-free Mac voice assistant that uses Laya-MLX for on-device decisions

0·GitHub repo

laya-test

psenger

Tests Laya decisions, confidence calibration and latency on Apple Silicon GPUs

0·GitHub repo

laya-stack

spaxfiz

Provides an MLX inference studio, evaluation benchmarks, and data workflows for Laya decision models

0·GitHub repo

laya-service

FnSGit

Serves local Laya inference through a FastAPI endpoint compatible with the Jev protocol

0·GitHub repo

laya-01

D-Ajay-Kumar

Benchmarks and fine-tunes Laya-format decision models for column relevance and yes/no tasks

0·GitHub repo

LAYA_finetune

ameerhmz

Fine-tunes Laya into a multilingual, non-autoregressive decision model and provides deployment formats

0·GitHub repo

laya-service-desk-demo

choas

Demonstrates a local Laya-powered customer service bot using prepared replies and human handoffs

0·GitHub repo

local-systemone

axiomantic

Provides a self-hosted System 1 decision daemon and MCP server with a native Laya backend

0·GitHub repo

local-settings-slm

AkhileshManda

Uses Laya to generate Android settings decisions for distilling into an on-device Qwen model

0·GitHub repo

LocalFirstGmailIntelligence

karan19

Sets up local Gmail intelligence models on Apple Silicon, including Laya-MLX

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