Description
Laya-MLX is a native runtime for running Laya typed decision models on Apple Silicon using MLX. A typed decision is a short answer chosen from a set of labelled options, and the runtime returns the decision without generating any text, so there are no output tokens. The project reports a median end-to-end time of about 13 milliseconds for a short English decision on an M3 Max, and about 7 milliseconds with the multilingual checkpoint. Inference runs locally, with no PyTorch, Transformers runtime or cloud API required. The current release, 0.5.0, migrates the runtime to an upstream version and adds routing across several loaded models, batch prediction, long-input prediction, decision helpers, hooks, calibration, evaluation, HTTP and MCP serving, and integrations with several agent frameworks. Command-line entry points cover the router, the server, evaluations and the MCP server, and optional extras add structured output, calibration and integrations with LangChain, LangGraph, LlamaIndex, CrewAI and Agno. Model weights are published on Hugging Face. The project is in the open, with a benchmark section, a snake demo and a Chinese version of the README.…
Highlights
- Typed decisions with no text generation
- Runs locally on Apple Silicon with MLX
- No PyTorch, Transformers or cloud API
- HTTP and MCP serving
- Agent framework integrations
Ratings & Reviews
No ratings yet
Be the first to rate Laya MLX.
People also visit
Laya MLX FAQ
What is Laya-MLX?
It is a native MLX runtime that runs Laya typed decision models on Apple Silicon, choosing an answer from labelled options.
How fast is it?
The README reports a median of 13.4 milliseconds for a short English decision on an M3 Max, and 7.4 milliseconds with the multilingual checkpoint.
What do I need?
Apple Silicon hardware and MLX. The runtime does not need PyTorch, the Transformers runtime or a cloud API.
Where are the model weights?
The weights are published on Hugging Face, and the README links to them.
How do I run it as a service?
Use the laya-mlx-serve entry point for HTTP serving, or laya-mlx-mcp-server for MCP.
Is it open source?
The project is published on GitHub as open source.
What are the best Laya MLX alternatives?
Popular alternatives to Laya MLX include mlx-serve, Rapid-MLX and vllm-mlx. See all Laya MLX alternatives