Z
Zirnay Documentation v2.4.1
System One Intelligence • AI Infrastructure for Decisions
Launch Playground ↗ Interactive API Explorer Strands Decider ↗
DOCS / CORE ARCHITECTURE / Model Selection: AnyJev, Laya & Strands

Model Selection: AnyJev, Laya & Strands

In-depth architectural comparison between calibrated open-weight models (AnyJev), non-autoregressive ModernBERT encoder heads (Laya), and Qwen-based decider models (Strands Decider).

⏱ 6 min read • Zirnay v2.4.1 • Updated October 2026

Engine Architecture: AnyJev, Laya & Strands-dc

Zirnay supports pluggable decision engines via the Service Provider Interface (System1ModelPlugin SPI). The platform ships with three specialized engines so you can match every workload to the optimal execution profile:

1. AnyJev Engine (Calibrated Open-Weight Decision Engine)

Zero-Training • Bias Eradicated

AnyJev (Read Full AnyJev Deep-Dive →) turns compact, CPU-native open-weight models (such as ModernBERT-large-421M, SmolLM2-360M-Instruct, and DeBERTa-v3-large) into calibrated, deterministic decision models without retraining across version upgrades.

  • P99 Latency Budget: 28.5 ms (Single Prefill) / 2.10 ms (Fast-Path Cache)
  • Bias Elimination: Eradicates option-order bias via cyclic permutation averaging and removes token-frequency label bias via unconditional prior division.
  • Calibration Levels: L0 (zero-shot drop-in across model upgrades), L1 (temperature Platt scaling), and L2 (supervised domain checkpoint tuning).
  • Ideal Use Cases: Zero-training decisions over open-weight models, CRM deal qualification (MEDDPICC), policy arbitration, and workloads where base model versions upgrade frequently.

2. Laya Engine

Non-Autoregressive ModernBERT

Laya is optimized for single-turn, ultra-low latency semantic classification, sentiment categorization, and transaction scoring. Inspired by the Laya Space, it uses deep transformer encoders coupled with dedicated task heads.

  • P99 Latency Budget: < 4.50 ms CPU (< 2.50 ms cached)
  • Supported Primitives:
    • Choice: Multi-class softmax distribution over categorical options (e.g., [APPROVE, CHALLENGE, DECLINE]).
    • Yes / No: Binary reflex gate with sigmoid certainty (e.g., Is Malicious Phishing?).
    • Score: Continuous regression score normalized in the range [0.0, 1.0].
  • Ideal Use Cases: Card authorization fraud, customer support ticket triage, AI prompt jailbreak reflex gates.

3. Strands-dc Engine (Strands Decider)

Qwen-Based Open-Weight Decider Model

Strands-dc (Strands Decider) is an open-weight decider model built on an underlying Qwen LLM backbone. It is purpose-built for model routing, tool selection, evaluations, guardrails, memory, context management, and policy classification, as well as building hybrid agents where frontier LLMs make the hardest reasoning decisions and decider models make the easier rote decisions at low latency and cost.

  • P99 Latency Budget: < 1.20 ms (Edge) / 4.20 ms (Gateway CPU)
  • Architecture: Compact Qwen-based open-weight decider model optimized for single-pass discrete decision heads and hybrid workflow integration.
  • Ideal Use Cases: Model routing, tool selection, evaluations, guardrails, memory & context management, policy classification, hybrid agents, task automation, and state-space navigation.

Architectural Comparison Matrix

CRITERION ANYJEV (OPEN-WEIGHT LLM) LAYA (MODERNBERT) STRANDS-DC (QWEN DECIDER)
Primary Paradigm Cyclic-Calibrated Single-Prefill LLM Non-autoregressive Transformer Head Qwen-Based Open-Weight Decider Model
P99 Latency SLA 28.5 ms (Prefill) / 2.10 ms (Cached) 4.20 ms (CPU) / 2.10 ms (Cached) 0.85 ms (Edge) / 4.20 ms (CPU)
Retraining on Base Upgrade None required (L0 Zero-Training) Optional head fine-tuning Zero-shot or supervised fine-tuning
Bias Mitigation Cyclic permutation + Prior division Empirical Bayes + Platt scaling Calibrated decider head over Qwen backbone
Output Format Calibrated Probabilities & Classes Calibrated Probabilities & Classes Discrete Decisions, Tool Routes & Policy Labels
Input Representation Raw Text + Dynamic Candidate Options Raw Text Tokens + Feature Tensors Agent Context, Tool Schemas & Policy State
Checkpoint Persistence JSON calibration config (.json, .bin) Serialized weights (.bin, .pt) Qwen decider checkpoint (.safetensors, .bin)

Empirical Production Validation: Sparkov Fraud Benchmark

api.zirnay.com Verified

To validate accuracy and latency in realistic production environments, all three engines were evaluated against 30 unseen transactions (15 fraud, 15 legitimate card authorizations) from the Sparkov datasets/fraudTest.csv dataset via the public gateway https://api.zirnay.com/v1/decisions.

ENGINE ARCHETYPE MODEL ID PRECISION RECALL (CATCH RATE) F1 SCORE ECE (CALIBRATION) P99 OVER-THE-WIRE
Laya (ModernBERT) zirnay-laya 100.0% (15/15) 100.0% (15/15) 100.0% 0.037 105.88 ms (P50: 89.6ms)
Strands-dc (Qwen Decider) zirnay-strands-decider 100.0% (15/15) 100.0% (15/15) 100.0% 0.027 110.70 ms (P50: 87.7ms)
AnyJEV (Calibrated LLM) zirnay-anyjev 100.0% (15/15) 100.0% (15/15) 100.0% 0.054 120.18 ms (P50: 87.7ms)
# Run the reproduction suite against production:
npm run test:fraud:sparkov:prod
🔒 Deterministic Typed Output: AnyJev, Laya, and Strands-dc produce strictly typed softmax probability distributions or discrete routing graphs rather than free-form text. Because there is no token generation step to hijack, prompt injections cannot cause data leakage via generated prose, and outputs strictly conform to your defined schema.