From: onnx-community <huggingface.co/onnx-community>Newsgroups: alt.freeweights.visionSubject:

laya-ONNX

Date: 2026-11-15Commit: 42e2a6eSigned: 2DC28CC7B26A283B ✓

Text classification model. Onnx weights, 2.54 GB in all. Published by onnx-community under Apache-2.0.

vision2.54GBlaya-ONNXonnxpermissive
FactsParamsnot statedSize2.54 GBFormatsonnxTasktext classificationLicenseApache-2.0From sourcepermissive
$ fw get onnx-community/laya-ONNX
# manifest sha256 d9bdad1056a6… · 2.54 GB · 15 files
$ fw verify ./laya-ONNX onnx-community/laya-ONNX
From sourceHosted (signed)onnx-community/laya-ONNXLast check: 2026-11-15 05:20 UTC

Get help: custom fine-tune or private deploy. We review your setup before we quote.

Quantized of laya.

Works with

Runs with

Ranked by fit to this model (onnx), then by GitHub stars.

Convert with

Scan with

Overview

Size
2.54 GB
Weights
847 MB (smallest of 2 ONNX variants)
Parameters
not stated
Formats
onnx
Task
text classification
License
Apache-2.0 (permissive)
Files
15, each with a sha256
Publisher
onnx-community
Added
2026-11-15
Section
alt.freeweights.vision
Lineage

Original release from the publisher.

Base model: convaiinnovations/laya

Where these bytes come from
Publisher at the pinned commit→You

Sources are tried in order. A file counts only when its size and sha256 match the manifest. Sources are checked when you ask for them, not on a timer.

Sources
BadgeHostLast checkResult
From sourcehuggingface.co2026-11-15 05:20 UTCpassed

Model card

From the publisher at commit 42e2a6e. Shown as plain text with links; images open at the publisher.

laya (ONNX)#

ONNX conversion of Convai Innovations' convaiinnovations/laya, a non-autoregressive decision model (answerdotai/ModernBERT-large encoder with a decision head). Give it a state (text or JSON) and typed questions (choice, score, noul); it returns a calibrated distribution per question in one forward pass. For the model itself, its training and its limits, see the original model card and the laya repository.

Files#

FileSize
onnx/model.onnx (+ _data), fp321.69 GB
onnx/model_fp16.onnx (+ _data), fp16 weights and activations, fp32 inputs/outputs0.85 GB

One graph holds encoder and head (laya's own laya-ts export splits them in two):

  • inputs: input_ids [b, s] int64, attention_mask [b, s] int64, marker_pos [b, k] int64, marker_mask [b, k] bool, qtype [b] int64 (choice 0, score 1, noul 2)
  • outputs: logits [b, k] (one per [MASK] option marker, masked slots -1e4), act_logits [b, 2]

Each question is its own sequence ([CLS] {type} question: {question} [SEP] [MASK] opt … [SEP] state [SEP]). config.json carries the encoder config plus a laya section with everything a runtime needs: max_len (512), head_max_len (192), the calibrated temperatures per question type and option count, and whether the tokenizer needs word-by-word encoding in Transformers.js (split_words).

Use it in the browser#

With open-jev (Transformers.js, WebGPU):

import { OpenJev, choice, score, noul } from "open-jev";

const jev = await OpenJev.load({ model: "laya" });
const answers = await jev.decide("Hi, we were billed twice for March. Please refund the duplicate.", {
  department: choice("Which department should handle this?", ["billing", "technical", "other"], {
    billing: "invoices, payments, refunds",
    technical: "bugs, outages, system errors",
  }),
  urgency: score("How urgent is this?", ["not urgent", "soon", "blocking"]),
  refund: noul("Does the user ask for a refund?"),
});

The open-jev laya family rebuilds laya's build_sequence (option texts, 48-token option cap, head budget) and applies the checkpoint's calibrated temperatures, as laya.Agent does.

Conversion and parity#

torch.onnx.export (dynamo, opset 18) of DecisionModel.forward from laya.common, with dynamic batch, sequence and marker axes. Scripts are in conversion/.

  • ONNX Runtime (CPU) against PyTorch on real typed-decisions sequences, up to 2,048 tokens (past the 128-token sliding window): max |Δlogit| 2.4e-5.
  • open-jev in Node (onnxruntime-node) against laya's own Python Agent.predict on 15 cases (typed-decisions states; double spaces; the mask token inside text; over-long options; the head budget; Hindi, Chinese, Japanese and Spanish): token ids identical for every question; fp32 max |Δp| < 1e-4; fp16 max |Δp| 0.007, no top answer changed.

Accuracy in the browser#

typed-decisions test split (400 states, 2,000 questions), WebGPU on an M3 Pro, via open-jev:

dtypechoicescorenouloverallmedian per state
fp1629.2%32.6%48.3%36.3%0.96 s
fp3229.3%32.4%48.7%36.4%1.32 s

fp16 is the default on WebGPU: it matches fp32 within 0.2 points and is faster. The base checkpoints are zero-shot here; Laya's card reports 0.362 for the English one.

License#

Apache-2.0, as the original. Converted by @shreyask; all credit for the model to Convai Innovations.

Files

15 files · 2.54 GBWeights 847 MB (smallest of 2 ONNX variants). Sizes and sha256 from the signed manifest.
Hide all 15 files with their sha256
FileSizesha256
.gitattributes1.64 KB11766e5171641f6c68b9f14099fdb4e7b3d610f0a69451893e356c8334812257
README.md4.02 KB6fc215ee43d27b189049191566242adf6633da6289d1d1c97ec0cd62b3b69a45
config.json3.28 KB1a888f1373542026f6e09b4bdfa746eb6ed6cd0713187cf18c5602e92993bb0c
conversion/laya_export.py6.69 KB12f7cc885c06d6fb483497429a0017ed87903fbe9c0b28bc2e0dae4e423ad007
conversion/laya_fp16.py2.73 KBb0512c0b222a4b1cd8537245d37621ef877fc0e3a2198f426fa19a5bf4dc7355
conversion/laya_package.py2.73 KBf695e3d3c2f2022e5f9a5c70373b745cf90c731f000cd618aa36c54c5f140082
conversion/laya_readme.py4.43 KB6a020352c487a95608d889b5232b56bff4d41c8a8b84d8aef9575fe107d98416
conversion/laya_reference.py3.02 KB61552dd49975f258fd67a33d89b059988e4164408ffdcdca80322398590a43eb
conversion/laya_typed_bench.py1.66 KBbe642d798eea5d50f0a935fddd663aee32a12ce6532ec7a6da1606fb4f722e56
onnx/model.onnx4.44 MB04ac226b2ce6cfd35a28e8cefcc897e9fcc2901b0bfa86d0f518d5b94491f7b0
onnx/model.onnx_data1.69 GBafcc11e72b59193fbec6e5dc8b693c9baa81cf66bec53279cefd687b318c3199
onnx/model_fp16.onnx4.47 MB027403a80579f1546bac9831383c00ab9469a4e7c37aa8f68fdcecd85f8ef29e
onnx/model_fp16.onnx_data843 MB6631bd51ee258787336568fda528ae3534fb5a3e13386558e7502043cbff4828
tokenizer.json3.58 MB6c8aaa9a542084f2457eab775d4eeb51f92a70c0fd9de28d5edb0ddec3c08d30
tokenizer_config.json308 B50044de60daaa73df97d262e15a40d4faf0160e7d742df64b377877a1320dd12
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
42e2a6e3b3 pinned now2026-11-15 05:20 UTC15 files · 2.54 GB

Use it

$ fw get onnx-community/laya-ONNX
# manifest sha256 d9bdad1056a6… · 2.54 GB · 15 files
$ fw verify ./laya-ONNX onnx-community/laya-ONNX
fw.pyChecks the signature and every sha256, tries each source in order, resumes.
$ python3 fw.py get https://freeweights.allternit.com/manifests/onnx-community/laya-ONNX.json --dir ./laya-ONNX $ python3 fw.py verify ./laya-ONNX ./onnx-community__laya-ONNX.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download onnx-community/laya-ONNX --revision 42e2a6e3b3708c8ff5f61f4aa75c314b1449199b --local-dir ./laya-ONNX

License

Name
Apache License 2.0
Id
Apache-2.0
Class
Permissive
Redistribution
yes
Listing
Hosted (signed)
Decided
License as declared by the publisher. No person read it. 2026-11-15
Text in
README.md
Text sha256
6fc215ee43d27b189049191566242adf6633da6289d1d1c97ec0cd62b3b69a45
Terms gate
No extra terms beyond the license.

Read the license text

Licenses are checked against the license table. A custom license passes only after a person reads it.

Provenance

From: onnx-community <huggingface.co/onnx-community>Newsgroups: alt.freeweights.visionSubject: laya-ONNXDate: 2026-11-15Commit: 42e2a6eSigned: 2DC28CC7B26A283B ✓
Upstream
onnx-community/laya-ONNX
Pinned commit
42e2a6e3b3708c8ff5f61f4aa75c314b1449199b
Manifest
laya-ONNX.json · .minisig
Manifest sha256
d9bdad1056a604a0bf16fae1d89d958f583107318e918f846e01b516c9d86187
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-15 05:20 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/onnx-community/laya-ONNX.json $ curl -O https://freeweights.allternit.com/manifests/onnx-community/laya-ONNX.json.minisig $ minisign -Vm laya-ONNX.json -P RWQ7KGqyx4zCLXtUFOqvfv8L3g+8fpKJ1FsuxPyOYMF+4KufbUxKq1Oq $ shasum -a 256 <file> # compare with the Files tab

A manifest whose signature fails must be rejected. A file whose size or sha256 does not match must be discarded. Verify a download

Model tree

Parent

convaiinnovations/laya · this model is a quantization of it

No model in the catalog names this one as its parent.

Get it
Download
$ HF_ENDPOINT=https://freeweights.allternit.com hf download onnx-community/laya-ONNX
Open in Freeweights Studio

Pull, verify and run it in the Allternit app on Desktop, web or phone.

Signed manifest
minisign, key 2DC28CC7B26A283B. laya-ONNX.json. Provenance. Takedown history: none.
From: dima806 <huggingface.co/dima806>Subject: ai_vs_real_image_detection
From: legekka <huggingface.co/legekka>Subject: AI-Anime-Image-Detector-ViT
From: onnx-community <huggingface.co/onnx-community>Subject: AI-Anime-Image-Detector-ViT-ONNX
From: AICodexLab <huggingface.co/AICodexLab>Subject: answerdotai-ModernBERT-base-ai-detector
From: onnx-community <huggingface.co/onnx-community>Subject: answerdotai-ModernBERT-base-ai-detector-ONNX
From: onnx-community <huggingface.co/onnx-community>Subject: bart-large-cnn-ONNX