laya-multilingual-coreml-ane
0
2 commits
2 linked in READMEs
updated Sep 20, 2026
Laya typed decisions on Apple Silicon, using CPU + Neural Engine.
This is a portable Core ML bundle for laya-coreml,
converted from convaiinnovations/laya-multilingual.
It outputs choice, score, and noul probabilities with zero generated tokens.
Inference needs no PyTorch, Transformers, MLX, remote code, or cloud API.
Apple Silicon, macOS 15+, Python 3.11–3.13. Tested on M3 Max / macOS 27.2.
pip install laya-coreml
import laya_coreml as laya
agent = laya.load("aac6fef/laya-multilingual-coreml-ane") # Download once; Core ML runs locally.
result = agent.predict(
"The customer asks for a refund of a duplicate payment.",
{"refund": {"type": "noul", "instructions": "Does the customer request a refund?"}},
)
print(result["answers"])
To download explicitly and then run entirely offline:
hf download aac6fef/laya-multilingual-coreml-ane --local-dir models/ane
pip install 'laya-coreml[demo]'
laya-coreml-snake --model models/ane --fps 12
Use laya.load("aac6fef/laya-multilingual-coreml-ane", local_files_only=True) for a cached snapshot or pass a
local directory. Use revision="<Hub commit SHA>" to pin a remote revision.
This FP16 conversion retains the original trained parameters. The ANE graph's host action head uses FP32. Floating-point results can differ from the upstream FP32 runtime.
The fixed L96 package agrees with upstream on 59/59 fitting fixture questions and passes 100 repeated calls. Inputs longer than 96 tokens raise an error instead of being silently shortened to fit.
The exported capacity is 96 total tokens, batch 1, and 32 option slots. Questions/options and state share this budget. The ANE short exports reject over-capacity prompts. Snake uses planner features and a visible optional cycle safety shield; survival is not a claim of unaided game intelligence.
coreml_config.json records shapes, source revisions and per-file SHA256 checksums.
validation.json contains the packaging-time validation. Port fidelity on this regression
suite does not establish general task accuracy or preserved calibration on arbitrary inputs.
The multilingual ANE L96 FP16 runtime measured 4.98 / 5.31 ms P50 / P95 for one short question on M3 Max; W8 measured 4.88 / 5.23 ms. Whole-system energy per decision improved 2.78× / 3.19×, respectively, against compiled MLX FP16 in that experiment. Those numbers apply to the named short ANE variants, not every bundle, long contexts, or complete Snake frames. The requested 10× improvement was not achieved.
Measurements and scope · General Core ML benchmarks · Snake demo.
convaiinnovations/laya-multilingual at 052592a15d198d9ad47da779604259b10b47b7aa.9d628fd971b700382ac6f65920a86f149777b2e748e0c955fb3b19695aa8f204.6a5819129eb220570792e417e49723d697efd76f.See LICENSE and NOTICE. Model quality and task/language limitations originate
with Laya; this runtime is an inference port, not a newly trained decision model.
2 commits
laya-multilingual-coreml-ane
0
2 commits
2 linked in READMEs
updated Sep 20, 2026
Laya typed decisions on Apple Silicon, using CPU + Neural Engine.
This is a portable Core ML bundle for laya-coreml,
converted from convaiinnovations/laya-multilingual.
It outputs choice, score, and noul probabilities with zero generated tokens.
Inference needs no PyTorch, Transformers, MLX, remote code, or cloud API.
Apple Silicon, macOS 15+, Python 3.11–3.13. Tested on M3 Max / macOS 27.2.
pip install laya-coreml
import laya_coreml as laya
agent = laya.load("aac6fef/laya-multilingual-coreml-ane") # Download once; Core ML runs locally.
result = agent.predict(
"The customer asks for a refund of a duplicate payment.",
{"refund": {"type": "noul", "instructions": "Does the customer request a refund?"}},
)
print(result["answers"])
To download explicitly and then run entirely offline:
hf download aac6fef/laya-multilingual-coreml-ane --local-dir models/ane
pip install 'laya-coreml[demo]'
laya-coreml-snake --model models/ane --fps 12
Use laya.load("aac6fef/laya-multilingual-coreml-ane", local_files_only=True) for a cached snapshot or pass a
local directory. Use revision="<Hub commit SHA>" to pin a remote revision.
This FP16 conversion retains the original trained parameters. The ANE graph's host action head uses FP32. Floating-point results can differ from the upstream FP32 runtime.
The fixed L96 package agrees with upstream on 59/59 fitting fixture questions and passes 100 repeated calls. Inputs longer than 96 tokens raise an error instead of being silently shortened to fit.
The exported capacity is 96 total tokens, batch 1, and 32 option slots. Questions/options and state share this budget. The ANE short exports reject over-capacity prompts. Snake uses planner features and a visible optional cycle safety shield; survival is not a claim of unaided game intelligence.
coreml_config.json records shapes, source revisions and per-file SHA256 checksums.
validation.json contains the packaging-time validation. Port fidelity on this regression
suite does not establish general task accuracy or preserved calibration on arbitrary inputs.
The multilingual ANE L96 FP16 runtime measured 4.98 / 5.31 ms P50 / P95 for one short question on M3 Max; W8 measured 4.88 / 5.23 ms. Whole-system energy per decision improved 2.78× / 3.19×, respectively, against compiled MLX FP16 in that experiment. Those numbers apply to the named short ANE variants, not every bundle, long contexts, or complete Snake frames. The requested 10× improvement was not achieved.
Measurements and scope · General Core ML benchmarks · Snake demo.
convaiinnovations/laya-multilingual at 052592a15d198d9ad47da779604259b10b47b7aa.9d628fd971b700382ac6f65920a86f149777b2e748e0c955fb3b19695aa8f204.6a5819129eb220570792e417e49723d697efd76f.See LICENSE and NOTICE. Model quality and task/language limitations originate
with Laya; this runtime is an inference port, not a newly trained decision model.
2 commits