laya-mlx
4
3 commits
2 linked in READMEs
updated Sep 19, 2026
Native MLX FP16 conversion of convaiinnovations/laya for Apple silicon.
This checkpoint uses ModernBERT-large, a 512-token total context, and Laya's decision Transformer, scoring head and action head. It supports choice, ordinal score, and boolean noul questions. All model computation runs in MLX; the runtime does not require PyTorch or Transformers.
Install the dedicated runtime on an Apple silicon Mac with macOS 14+ and Python 3.11+:
python -m pip install laya-mlx
import laya_mlx as laya
agent = laya.load("aac6fef/laya-mlx")
result = agent.predict(
"I was billed twice. Please refund the duplicate today.",
{
"department": {
"type": "choice",
"instructions": "Which department should handle this request?",
"criteria": ["billing", "technical", "sales"],
},
"refund": {
"type": "noul",
"instructions": "Does the customer ask for money back?",
},
},
)
print(result["answers"])
Use dtype="float32" for closer agreement with upstream FP32 arithmetic. The source weights themselves are FP16. Question formatting, tokenizer behavior, calibration temperatures and output schema are preserved.
This is a bidirectional decision encoder loaded with laya_mlx. The package provides the custom architecture needed to interpret the checkpoint. The repository does not include a generative language model or training implementation.
Tested locally on Apple M3 Max, 40-core GPU, 128 GB unified memory, macOS 27.2, Python 3.12.13 and MLX 0.32.2.
The included validation.json contains numerical and stability measurements for both FP32 and FP16 arithmetic. Full performance report and raw timing samples compare MLX with the original runtime on the same machine. These checks establish port fidelity, not that every model answer is correct.
convaiinnovations/laya at c5d78730f3493e4fe16d61507ef4b78eef7318cf.6a5819129eb220570792e417e49723d697efd76f.Apache-2.0. Original Laya models and code are by Convai Innovations and contributors. See LICENSE, NOTICE, mlx_config.json and manifest.json for attribution and export details.
3 commits
laya-mlx
4
3 commits
2 linked in READMEs
updated Sep 19, 2026
Native MLX FP16 conversion of convaiinnovations/laya for Apple silicon.
This checkpoint uses ModernBERT-large, a 512-token total context, and Laya's decision Transformer, scoring head and action head. It supports choice, ordinal score, and boolean noul questions. All model computation runs in MLX; the runtime does not require PyTorch or Transformers.
Install the dedicated runtime on an Apple silicon Mac with macOS 14+ and Python 3.11+:
python -m pip install laya-mlx
import laya_mlx as laya
agent = laya.load("aac6fef/laya-mlx")
result = agent.predict(
"I was billed twice. Please refund the duplicate today.",
{
"department": {
"type": "choice",
"instructions": "Which department should handle this request?",
"criteria": ["billing", "technical", "sales"],
},
"refund": {
"type": "noul",
"instructions": "Does the customer ask for money back?",
},
},
)
print(result["answers"])
Use dtype="float32" for closer agreement with upstream FP32 arithmetic. The source weights themselves are FP16. Question formatting, tokenizer behavior, calibration temperatures and output schema are preserved.
This is a bidirectional decision encoder loaded with laya_mlx. The package provides the custom architecture needed to interpret the checkpoint. The repository does not include a generative language model or training implementation.
Tested locally on Apple M3 Max, 40-core GPU, 128 GB unified memory, macOS 27.2, Python 3.12.13 and MLX 0.32.2.
The included validation.json contains numerical and stability measurements for both FP32 and FP16 arithmetic. Full performance report and raw timing samples compare MLX with the original runtime on the same machine. These checks establish port fidelity, not that every model answer is correct.
convaiinnovations/laya at c5d78730f3493e4fe16d61507ef4b78eef7318cf.6a5819129eb220570792e417e49723d697efd76f.Apache-2.0. Original Laya models and code are by Convai Innovations and contributors. See LICENSE, NOTICE, mlx_config.json and manifest.json for attribution and export details.
3 commits