Skip to content
Laya AI

Unofficial community documentation

Laya AI - Open Source System-1 Decision Model

Use cases

When the published tables point at Laya, and when they point at Jev. Task notes below use the README limits and the benchmark files.

When to choose Laya

  • You need to run the model on your own machine, with Apache 2.0 weights, and the README comparison lists self-hosted cost as $0.
  • The choice set is small. AG News has four labels. The ticket example uses four departments.
  • You will fine-tune. The 0.766 typed-decisions score is the specialist checkpoint, not the base install.
  • Latency on a local GPU matters. The official one-question multilingual figure is 32.8 ms on a T4.

When to keep Jev

  • You want a closed API that is already specialized, without a fine-tune step. Base Laya is under the majority-class line on typed-decisions.
  • One choice question has more than about 20 labels. Banking77 is 0.870 for Jev on 72 labels and 0.425 for Laya on 77 labels at the default budget.
  • You need the probability distribution, not only the top label. Jev's published soft accuracy is 0.580 against 0.471, and its published raw ECE is 0.144 against 0.213 before Laya's temperature fit.

Ticket routing

Good fit

  • A support message needs a small department choice, an ordinal urgency score, and yes/no flags such as churn or an explicit refund request. That is the README Router example and the triage preset laya.triage_questions().
  • choice, score, and noul run in one forward pass. The README shows a confidence gate at 0.85 for automatic routing versus human review. Fit temperatures on your own data before trusting that threshold: both checkpoints ship over-confident.

Poor fit

  • A 10-way support queue. The themes table scores support triage at 0.502–0.522, and that data was in the training mix.
  • Fifty or more labels in one choice question. Banking77 is 0.425 for the base checkpoints at the default head budget.
  • Writing the reply. Laya does not generate text.

Content safety

Good fit

  • Email spam and phishing in the themes table: 0.993, with the report noting ECE around 0.01. Both sources were in the training mix. Presets in the README are laya.moderation_questions() and laya.guard_questions().
  • Held-out jailbreak detection lands at 0.708–0.762 across checkpoints, and a separate prompt-injection set is listed at 0.698. The report treats that as a signal, not a sole control.

Poor fit

  • Held-out toxicity moderation. The themes table is 0.530 with macro-F1 0.400. BENCHMARKS.md says hand-picked demo examples work and real traffic does not.
  • A safety stack that only checks the model’s confidence on text the English checkpoint cannot read. Khmer is 0.000 accuracy at 0.952 confidence.

Intent classification

Good fit

  • English intent with a modest label set. MASSIVE intent English is 0.783 on laya in the summary table (the per-language grid lists English laya at 0.820; both numbers are in BENCHMARKS.md).
  • Other languages when Router sends the request to laya-multilingual. The summary lists 0.451 on 13 other MASSIVE languages, and 45 of 51 languages clear 3× random.

Poor fit

  • Non-Latin text on the English checkpoint. The README says it collapses, and confidence stays high, so a confidence gate does not save the call. Route first.
  • A single choice question with more than about 20 options, unless you raise head_max_len or shortlist with predict_shortlist. The README says keep choice questions under ~20 options at the defaults.

Scoring

Good fit

  • A short ordinal rubric: the README score primitive returns an expected level, a distribution, and a confidence. The ticket example uses not urgent / soon / critical.
  • After domain fine-tuning. On typed-decisions the fine-tuned checkpoint’s score MAE is 0.242 in BENCHMARKS.md, against 0.694 and 0.687 for the base checkpoints.

Poor fit

  • Fine-grained sentiment such as SST-5. The README lists SST-5 at 0.372 for laya and calls ordinal score the weakest primitive.
  • Zero-shot scoring with a base checkpoint on a typed-decisions style rubric. Those checkpoints sit under the majority-class baseline on that benchmark.