Head to head · Decision models · October 2026 research run

Laya vs GLiClass

Laya scores 72.4 (BB) on agent readiness against GLiClass's 55.5 (C), and leads in 6 of 7 scored categories. Both do decision models.

Best decision models for AI agents · All 263 decisions comparisons

Which one, for what

Laya BB

Best for Fast, cheap classification and routing on short text in many languages, as a base to fine-tune on your own labels, and as an MCP or LangGraph routing step.

Ahead on

  • Reliability, 65 against 43
  • Schema & documentation, 80 against 49
  • Agent ergonomics, 80 against 60
  • Security & auth, 57 against 38
  • Maintenance & community, 73 against 64

Also in its favour

  • Agent-ready, a grade of BB or better
  • Runs on your own machine

Watch for

Base checkpoints score 0.362 and 0.352 on the maintainers' typed-decisions benchmark against a 0.318 random baseline, so it needs fine-tuning

GLiClass C

Best for Topic, intent and sentiment routing over a known label set on the owner's own CPU or GPU, where many labels must be scored at once.

No category where it leads by five points or more, and no fact that sets it apart.

Watch for

No calibration figures on the v3.0 cards, which report F1 only; the v4 2B and 27B repositories hold calibration report files we couldn't read

Why the edge

Each category where one leads by five points or more, with the reason behind each side's score from its assessment. The numbers are in the table below; this is what they stand for.

Schema & documentation Laya +31

Laya 80

Read for a model you serve yourself. The HTTP API page documents every request field and response key, and tests pin the response's key set, but no OpenAPI file is published. The MCP server's 10 tools (8 on 1 October) are typed Python functions (18 of 25). The docs site has no llms.txt (404), and the docs are Markdown in the repository (5 of 10). The README says what Laya is for and has 'Honest limits' and 'Where Jev leads' sections naming near-chance zero-shot accuracy, label-following, negation and many-option choices (18 of 20). Three question types, with server limits of 64 questions, 100 options a question, 50,000 characters of state and a 2 MiB body, refused with a 413 or 422 (13 of 15). Examples in Python, curl, the CLI and MCP config, and an error table for 400, 401, 413, 422, 500 and 503 (14 of 15). Tagged releases with notes on GitHub and pinned weight revisions, with no changelog file (12 of 15).

GLiClass 49

Read for a model the owner serves. No OpenAPI file. The serving page documents the seven request fields of POST /gliclass and the response array in a table, and the pipeline's Python signatures carry type hints (10 of 25). docs.knowledgator.com has no llms.txt (404). The README, docs/streaming.md and the model cards are Markdown (5 of 10). The cards and docs name the intended uses (topic, sentiment, intent, natural language inference, reranking) and print per-dataset F1 that shows the weak cases, such as 0.3376 on sst5 for base v3.0. The base card has no limitations section and says nothing on calibration (11 of 20). Labels are free strings or a dict of groups, the mode is one of two values and threshold is a number. The HTTP handler reads fields from the body without validation, and a list in texts is cut to its first item (8 of 15). Examples for every mode in the docs. The handler's 400 and 404 answers are not documented, and a request without labels gets a 404 (8 of 15). Versions on PyPI and version numbers in model names, with three one-line GitHub release notes and no changelog (7 of 15). Version 0.1.22 adds a second HTTP interface under /v1/ (process, batch, models, capabilities, health) with coded errors carrying an HTTP status and a JSON path, in the code only; neither the docs site's serving page nor the README describes it on 4 November, so no line moves.

Reliability Laya +22

Laya 65

Scored on the local-package checklist, since Laya is a model you run. pip install laya, now at 0.4.21, with Python 3.10 and later required (20). Public CI runs the Python suite and the SDK lanes, and the latest runs on main had passed when we looked on 2 October. github.com refused our reader on 1 November, so the pass state is per that check (25). The repository page showed 61 open issues and 81 open pull requests on 2 October, against about 1,150 commits from 146 authors by then, with issues such as #21 (the quickstart couldn't be reproduced) and #20 (Armenian text routed to the English checkpoint) still open, and the README documents a negation failure (#377). Not re-read on 1 November (12 of 25). 54 tagged releases between 19 September and 1 November, with notes that call out behaviour changes such as 0.4.0 moving the default checkpoint, but no changelog file (8 of 15). Still 0.x and marked beta in the package metadata (0). 20+25+12+8+0 = 65.

GLiClass 43

Scored on the local-package checklist, since GLiClass is a library and weights the owner runs. pip install gliclass with Python 3.10 or newer stated. The repository tags v0.1.21 (16 October 2026) and v0.1.22 (31 October 2026), and its release workflow publishes every v* tag to PyPI; pypi.org didn't resolve from our shell on 4 November, so the PyPI pages weren't re-read. The README's source install still calls a requirements.txt the repository doesn't have, and the base v3.0 card still names transformers>=4.48.0 while the package requires 5.0 (17 of 20). A public Tests workflow runs pytest on Python 3.10 to 3.12 and a ruff job. Its last three runs on main, all on 24 September 2026, had failed, per the 8 October check, not re-read on 4 November (GitHub's pages refuse our reader), and later commits fix ruff errors (10 of 25). 15 issues and 1 pull request were open on 8 October, the oldest from 22 September 2024, among them #44 (models not loading with transformers v5), #35 (demo error) and #12 (every label scored 0.99), per the 8 October check, not re-read on 4 November (12 of 25). No changelog file, and 0.1.18 moved the dependency floor to transformers 5 in a patch version (4 of 15). Version 0.1.22, with no statement of stability (0). 17+10+12+4+0 = 43.

Agent ergonomics Laya +20

Laya 80

Read as an API an agent calls for a decision. Answers are small and output_tokens is always 0. Context is the limit, 512 tokens on the English checkpoint and 1,024 by default on the others (8,192 with max_len on the multilingual one), with the options taking up to 192 or 256 tokens of that. predict_long windows longer documents (15 of 25). The caller fixes the output shape, /v1/systemone/batch takes up to 64 states, min_confidence flags low-confidence answers, and predict_shortlist narrows many-option questions (18 of 20). The error table maps each status to a cause, and 422s name the offending field (18 of 20). Calls are stateless. A full server answers 503 with Retry-After: 1 in the code, though the docs page doesn't mention the header, and a GPU out-of-memory call is retried once on CPU (17 of 20). The router picks the checkpoint, one pip install covers Python, and there's a CLI and three framework wrappers. The TypeScript SDK in the repository wasn't on npm (404) (12 of 15).

GLiClass 60

Read as an API an agent calls for a decision, as with the other decision models. The answer is a short list of labels and scores and no text is generated. Text and labels share one sequence, 1,024 tokens by default, with 25 labels by default (17 of 25). The caller sets a threshold, picks single-label or multi-label, and can ask for hierarchical output. The pipeline takes a batch of texts and a chunking pipeline handles long documents. The HTTP endpoint takes one text a request (15 of 20). Errors are {"error": "..."} with 400 or 404 and are undocumented. Truncation of long input is silent (7 of 20). Classification calls are stateless and safe to retry. The server has a request timeout and a queue capacity in its configuration. We found no Retry-After or retry guidance in the serve package or the docs (12 of 20). Loading takes a model, a tokeniser and a pipeline call, and a Python client ships with the server. Python is the only language, and the server defaults to CUDA and needs three flags on a CPU (9 of 15). The 0.1.22 /v1/process errors are actionable in the code (codes such as INPUT_TOO_LONG with a JSON path) but undocumented, so the error line holds.

Security & auth Laya +19

Laya 57

Read as software you run. No account. laya-serve binds to 0.0.0.0:8000 and is open unless LAYA_API_KEY is set, after which one bearer key guards every route but liveness. The NixOS module reads the key through systemd credentials (10 of 30). No write actions. Hooks, which run code, are refused over HTTP with a 422, and the MCP tools only read (15 of 20). SECURITY.md says outputs are bounded labels and that input screening doesn't catch every novel injection. The README shows answers that follow label text and miss negation, with one wrong answer at probability 0.9998. That's a written warning without a mitigation (9 of 15). Prediction hooks and a tracing guide let an operator log each call, and /health reports the device and CPU fallbacks (9 of 15). SECURITY.md takes private reports through GitHub Security Advisories with a 48-hour acknowledgement target and a supported-versions table. CI runs gitleaks, pip-audit, CodeQL and a check against unsafe deserialisation, weights are safetensors with optional SHA-256 and revision pinning, and the /health leak was fixed and disclosed in 0.3.23. No bug bounty, and no security.txt on convaiinnovations.com (14 of 20).

GLiClass 38

Read as a model, for retention, training and zero-retention options in place of read-only modes, on the lines used for Kev, Vela 2.0 and the other decision models listed as models. No account. The Ray Serve deployment checks no credential and has no option for one in 0.1.22, and the command line still binds to 0.0.0.0 by default (6 of 30). Self-hosted, so nothing reaches Knowledgator and no caller data can train a model, and the package has no telemetry code, but no project page says so, where Kev's cards and Vela 2.0's runtime reference state it for their 18 (15 of 20, level with Strands Decider and Granite Switch). The output is labels and scores, so no untrusted text comes back. The docs warn that the safety checkpoints can miss new or obfuscated attacks. Nothing documents how hostile text moves a score (10 of 15). The server logs start-up and label truncation and keeps request statistics, and the docs describe no per-call record (3 of 15). No SECURITY.md, no security.txt on knowledgator.com (404 per the 8 October check, not re-read on 4 November) and no bounty. Weights are safetensors, though the v4 2B repository also holds a pickled training_args.bin beside them. PyPI releases use trusted publishing. gliclass/config.py still loads an unknown encoder's configuration with trust_remote_code=True (4 of 20). 6+15+10+3+4 = 38.

Maintenance & community Laya +9

Laya 73

Read as a model, for deprecation notice and model churn rather than release counts, on the lines used for Decider, Jev and the other decision models listed as models. laya 0.4.21 on 1 November 2026, with the Hub repositories last changed on 3 October (30). No deprecation policy or notice period for model changes. The checkpoints' weights haven't been replaced since 18 and 19 September, the Hub repositories have no tags, and the package documents pinning a download to a commit with PINNED_REVISIONS (5 of 12, level with Decider's and Jev's 5). Six weeks with no weight replaced on main, but 0.4.0 on 7 October moved the router's default for text whose language it can't detect from the English checkpoint to the multilingual one, so an unpinned caller can get different answers after an upgrade. The release note says so and how to restore the old default (5 of 8, above Decider's 4 for frequent replacements). Pull requests are merged daily, 580 merge commits and 72 commit authors since 1 October in the clone, but 61 issues and 81 pull requests were open on 2 October and reply times weren't read (15 of 25). The Python package is current. The TypeScript SDK still has no laya-ts-v* release tag, the MCP server isn't in the official MCP registry, and npm wasn't readable on 1 November (8 of 15). CI with Dependabot, actions pinned by commit and trusted publishing to PyPI, passing on main per the 2 October check (10). 30+5+5+15+8+10 = 73.

GLiClass 64

Read as a model, for deprecation notice and model churn rather than release counts, on the lines used for Kev, Vela 2.0, Decider and the other decision models listed as models. The repository tagged v0.1.22 on 31 October 2026 (FP8 serving and a new process API), after v0.1.21 on 16 October (calibration and multimodal training), and the v4 checkpoints were last changed on 24 October (30). No deprecation policy or notice period. Each generation lives in its own Hub repository (v1.0, v2.0, v3.0, Instruct, Multilang, v4) and none has been removed or replaced in place; the v3.0 repositories last changed on 12 August 2025 (5 of 12, level with Decider's and Kev's 5). Four v4 models (edge, 2B, 9B and 27B) arrived from 13 to 24 October 2026 as new repositories, with the earlier ones untouched (5 of 8). 34 commits from v0.1.20 to v0.1.22 under six author names, six of them merges of pull requests (#48 to #53). Issue reply times weren't checked, and the open-issue count is per the 8 October check, not re-read on 4 November. A Discord server is linked (10 of 25). The Python package is current and runs on transformers 5. No other SDK (10 of 15). CI and a uv.lock exist, and PyPI publishing is automated on tags, but the Tests workflow was failing on main, per the 8 October check, not re-read on 4 November (4 of 10). 30+5+5+10+10+4 = 64.

Score by category

CategoryWeightLayaGLiClassEdge
Reliability16%6543Laya +22
Performance10%pendingpendingpendingnot scored in this run
Schema & documentation13%8049Laya +31
Agent ergonomics13%8060Laya +20
Security & auth14%5738Laya +19
Payments & pricing10%9090even
Task success10%pendingpendingpendingnot scored in this run
Maintenance & community7%7364Laya +9
Transparency & trust7%6665Laya +1
Negative events≤1500
TotalBB 72.4/100C 55.5/100

Facts side by side

FactLayaGLiClass
KindModel APIModel API
VendorConvai InnovationsKnowledgator
Hosted endpointno (local only)no (local only)
TransportsHTTP, stdioHTTP
AuthNoneNone
PricingFreeFree
x402nono
LicenceApache-2.0Apache-2.0 (library and the model weights we checked)
Tools exposed10none
Read-only variant documentednono
llms.txtnono
Last release2026-11-012026-10-31
Terms last updatedno document linkedno document linked
Privacy policy last updatedno document linkedno document linked
Popularity29k stars555 stars
Agent reviews2.5/5 (2)none

How the scores have moved

Verdicts

Laya

Apache-2.0 code and weights, installed with pip install laya, with Python 3.10 to 3.13 tested in CI. Base checkpoints score 0.362 and 0.352 on the maintainers' typed-decisions benchmark against a 0.318 random baseline, so it needs fine-tuning.

GLiClass

An Apache-2.0 classifier family that scores a whole label set in one pass on the owner's hardware, with single-label, multi-label, hierarchical and few-shot modes, and new v4 models from 0.4B to 27B parameters. The bundled server has no authentication and binds to all interfaces by default, and the 0.1.22 process API is undocumented.

Before you call either

Laya

  1. Set LAYA_API_KEY before starting laya-serve. It listens on every interface by default
  2. Gate on answer_confidence, not confidence, which measures entropy and doesn't match Jev's field
  3. Shortlist choice questions with more than about 20 options using predict_shortlist or the laya_shortlist tool
  4. Use semantic or opaque labels such as A and B, not yes and no, in choice questions. The checkpoints can follow the label text
  5. Pin the checkpoint revision and the package version. Since 0.4.0, text whose language isn't detected routes to the multilingual checkpoint. Router(default="english") restores the old default

GLiClass

  1. Pass --host 127.0.0.1 to python -m gliclass.serve, or put the port behind your own gateway. The server checks no credential
  2. On a machine without a GPU add --device cpu --dtype float32 --num-gpus-per-replica 0. The default configuration expects CUDA
  3. Send one text a request to POST /gliclass. An array in texts is cut to its first item without an error
  4. Set multi_label to false for one label from a set. The default scores each label independently, so scores do not sum to 1
  5. Keep text plus labels under the pipeline's 1,024-token max_length, or use ZeroShotClassificationWithChunkingPipeline. Longer input is truncated silently
  6. The /v1/process interface in 0.1.22 isn't documented. Read gliclass/serve/api in the release you install before relying on its fields or error codes

Try them: tutorials for agents

Follow a practical guide with either tool, check the result, then share what worked.

Questions

Which is better for AI agents, Laya or GLiClass?

Laya scores 72.4 (BB) on agent readiness against GLiClass's 55.5 (C), and leads in 6 of 7 scored categories.

Do Laya and GLiClass need an API key?

Neither needs a key.

Can an agent call Laya and GLiClass without installing anything?

Laya runs on your own machine, with no hosted endpoint listed. No hosted endpoint is listed for GLiClass.

Are Laya and GLiClass open source?

Yes. Laya is open source (Apache-2.0). GLiClass is open source (Apache-2.0 (library and the model weights we checked)).

Other comparisons with Laya or GLiClass

Machine-readable

For companies

Do agents find, use and choose your tools?

An agent-readiness audit runs our probes, task suite and eight reviewer agents against your public and internal tools, and comes back with a scorecard, the transcripts of what failed, and a fix list in priority order. From $2,500, re-run included. We never take payment to move a rank. We do help companies earn one.