/ Модель

Характеристики

Контекст
8 192 токена
Параметры
395 млн
Лицензия
Apache 2.0
Архитектура
modernbert · dense
Базовая модель
laya
Библиотека
transformers
Опубликована
30 сен 2026

laya-modernbert-decision-90pct

Заполнение пропусковТекст → текст6 профессий

Дообученная ModernBERT-модель для быстрой классификации, маршрутизации и принятия решений по тексту.

438скачиваний за 30 дней0лайковвеса обновлены30 сен 2026

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

LAYA v2.0 Enhanced Edition — дообученная модель семейства ModernBERT, разработанная автором репозитория ameerhmz5 на базе convaiinnovations/laya. Она предназначена для быстрых решений за один проход: выбора действия из набора вариантов, бинарной проверки утверждений и правил, а также оценки приоритета или уровня риска. В README заявлены 90,61% точности на валидационной выборке из 4 740 примеров и обучение на корпусе из 47 400 вопросов; архитектура в метаданных — ModernBertForMaskedLM с 394,7 млн параметров и контекстом 8 192 токена.

Модель подходит для маршрутизации запросов и инцидентов, классификации, триажа обращений, проверки соответствия политикам и выбора инструмента в агентных системах. В репозитории указаны веса Safetensors и варианты GGUF F16 и Q8_0; README также описывает запуск на Apple Silicon. Лицензия — Apache-2.0.

Заявленные показатели и скорость относятся к описанным автором условиям и не гарантируют такого же результата на других данных и оборудовании. Данные карточки указывают на задачи text-classification и fill-mask; последняя отражает архитектурный тип, тогда как основное пользовательское назначение — классификация и принятие решений.

Сценарии применения

  • выбор действия из списка вариантов для агентной системы
  • маршрутизация запросов и технических инцидентов
  • бинарная проверка фактов и соответствия правилам
  • оценка приоритета, риска или серьёзности обращения
  • классификация новостей и пользовательских эмоций

Ограничения

Заявленные 90,61% точности получены на выборке автора и не подтверждают качество на других задачах или доменах. В метаданных не перечислены поддерживаемые естественные языки.

Для каких профессий подходит6

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Также подходит для

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

🚀 LAYA v2.0 (Enhanced Edition · 90.61% Val Acc)


🌟 What Makes This Improved Version Superior to Base LAYA?

This repository contains the v2.0 Enhanced Edition of LAYA. While the original convaiinnovations/laya base model introduced the non-autoregressive ModernBERT decision architecture, this version delivers a massive leap in accuracy, multi-domain generalization, and deployment formats:

Feature / CapabilityOriginal Base Model (convaiinnovations/laya)🏆 This Enhanced Edition (ameerhmz5/laya-modernbert-decision-90pct)
Validation Accuracy~81.8% baseline90.61% (+8.8% absolute accuracy boost!)
Training Corpus ScaleBase initial setExpanded 47,400 genuine multi-domain questions
Hardware & Compute-Fine-tuned on 1x NVIDIA H200 80GB SXM5 across 10 epochs
Decision CoverageGeneral text routingEnterprise IT, DevOps SRE, Agent Tool Calling, Emotion Triage & Guardrails
Available PrecisionsSingle 842MB weights10 Formats: FP8 (~400MB), INT8, BF16, FP16, MLX, GGUF
Apple Silicon (MLX)Manual community scriptsPre-quantized Native MLX (FP16, 8-bit, 4-bit) for M1–M4 Macs (~8ms)
Local Ollama IntegrationNot natively supportedBuilt-in Ollama REST bridge (serve_ollama.py) + Modelfile
Temperature CalibrationBase fitted valuesRefitted RLCD temperatures over 47.4k items ($T_{\text{choice}}=1.90, T_{\text{score}}=0.50, T_{\text{noul}}=2.45$)

📊 The Expanded 47,400 Decision Questions Fine-Tuning Corpus

To push LAYA far beyond its original baseline, we engineered an expanded, multi-domain fine-tuning corpus comprising 47,400 genuine, diverse, and strictly validated decision questions (42,660 training samples and 4,740 held-out evaluation samples).

Rather than relying on toy synthetic datasets, this corpus was harvested and structured specifically to empower autonomous agents and production systems:

Domain / SourceSample CountShareReal-World Application & Decision Focus
SetFit/ag_news14,96431.6%Enterprise classification, IT infrastructure news, technical ticket triage, organizational routing
dair-ai/emotion11,98025.3%User sentiment, intent assessment, customer escalation triage, agent conversation steering
google/boolq9,43819.9%Complex factual verification, Boolean compliance, policy guardrails, binary truth decisions
LocalLLaMA/typed-decisions6,01812.7%Structured autonomy policies, agent constraint verification, human-in-the-loop review triggers
macos_desktop_agent5,00010.5%Autonomous OS/desktop agent tool execution, CLI command routing, file operations & recovery
Total Verified Decision Items47,400100%42,660 Train · 4,740 Test · 90.61% Validated Accuracy

Decision Paradigms & Calibrated Temperature Scales

LAYA supports three fundamental decision paradigms, each calibrated with optimal post-hoc temperatures:

ParadigmSamplesFitted Temp ($T$)Target Operational Mechanics
choice32,743 (69.1%)1.90Multi-Alternative Routing: Picks the optimal action among 2 to 20 candidate criteria (e.g. "Purge logs", "Scale database", "Alert engineer").
noul12,236 (25.8%)2.45Boolean & Binary Verification: High-precision truth scoring (true vs. false), guardrails filtering, and security policy compliance.
score2,421 (5.1%)0.50Ordinal Severity & Priority: Strict monotonic ranking (e.g. Severity 1 to 5, risk levels, satisfaction grades).

📈 10-Epoch Fine-Tuning Progression on NVIDIA H200

Starting from the base weights at Epoch 1 (81.86%), the expanded 47,400-question corpus drove continuous, monotonic improvement across all 10 epochs, culminating in 90.61% test accuracy:

EpochTrain LossDec LossLearning RateTest Accuracy (4,740 items)Progression & Gain
1 / 100.90350.76113.48e-0581.86% (3,880 / 4,740)Initial base baseline
2 / 100.28670.27773.29e-0586.79% (4,114 / 4,740)+4.93% rapid alignment
3 / 100.24150.23902.85e-0587.95% (4,169 / 4,740)+1.16%
4 / 100.21040.20812.40e-0588.82% (4,210 / 4,740)+0.87%
5 / 100.18550.17981.94e-0589.24% (4,230 / 4,740)+0.42%
6 / 100.16200.15801.48e-0589.56% (4,245 / 4,740)+0.32%
7 / 100.14100.13821.05e-0590.11% (4,271 / 4,740)Crosses 90% threshold
8 / 100.12500.12216.80e-0690.38% (4,284 / 4,740)Fine-grained decision tuning
9 / 100.11200.11053.40e-0690.55% (4,292 / 4,740)Loss stabilizes
10 / 100.10420.10310.00e+0090.61% (4,295 / 4,740)🏆 +8.75% Absolute Gain

💡 Why LAYA is a Game-Changer: Real-World Utility vs. Generative LLMs

Most developers deploy giant generative LLMs (GPT-4o, Claude 3.5, Llama 3) for simple routing, classification, tool selection, and guardrail decisions. This introduces massive latency, high costs, and parsing failures.

┌──────────────────────────────────────────────────────────────────────────────────┐
│  Traditional Generative LLM (Autoregressive Token Generation)                   │
│  Context ──> 28 Layers ──> Generate Token 1 ──> Token 2 ... ──> Token 150        │
│  ⏱️ 800 - 2,500 ms  |  💸 $5.00 / 1M tokens  |  ⚠️ Hallucinations / JSON breaks  │
├──────────────────────────────────────────────────────────────────────────────────┤
│  LAYA Decision Engine (Non-Autoregressive System-1 Bidirectional Attention)      │
│  Context + Options ──> ModernBERT Backbone ──> Direct Mask Scoring Head          │
│  ⚡ 8 - 18 ms        |  🆓 Free / Zero API cost  |  ✅ 100% Valid Math Probabilities  │
└──────────────────────────────────────────────────────────────────────────────────┘

Top 5 Production Superpowers

  1. ⚡ Zero Generation Latency (8–18 ms vs. 1,500 ms)
    Causal LLMs generate 50–200 tokens sequentially just to output {"action": "restart"}. LAYA processes the entire state and all candidate options in one single forward pass, achieving ~8 ms inference on Apple Silicon (MLX) and <5 ms on modern GPUs.
  2. 🛡️ 100% Reliable & Hallucination-Proof
    LAYA directly scores candidate tokens. It physically cannot output invalid JSON, markdown wrappers, unrequested options, or syntax errors. Output probabilities across candidate actions strictly sum to 1.0.
  3. 🎯 Mathematically Calibrated Confidence (RLCD)
    Unlike overconfident LLMs that hallucinate false certainty, LAYA is calibrated using Strictly Proper Scoring Rules (Reinforcement Learning with Calibrated Decisions). An 85% probability score from LAYA means the action is correct 85% of the time empirically. This enables deterministic, production-safe confidence thresholding (e.g., "If confidence < 80%, route to human specialist").
  4. 💰 100x Cost & Compute Reduction
    Instead of spending thousands of dollars monthly running heavy LLMs for internal agent tool selection and routing, a 421M parameter model can serve 3,800 decisions/second on an H100 or 120 decisions/second on a MacBook Air.
  5. 🧩 Native Multi-Domain Decision Intelligence
    Trained across 47,400 verified decision scenarios, LAYA handles DevOps incident triage, agent tool routing, security policy verification, email categorization, and multi-step workflow steering out of the box.

📌 Available Formats & Precision Matrix

LAYA is distributed in all major industry precision formats, from full 16-bit to ultra-fast 8-bit (~400MB) and 4-bit edge weights:

Format / FilePrecision / QuantSizeRecommended Target Hardware & Runtime
model.safetensorsFP16 / BF16842 MBUniversal Default (PyTorch, Transformers, CUDA, MLX)
model.bf16.safetensorsBfloat16842 MBModern NVIDIA GPUs (Ampere, Hopper H100/H200, Blackwell, TPU)
model.fp16.safetensorsFloat16842 MBStandard CUDA (T4, V100, RTX 30/40), MPS, DirectML
model.fp8.safetensorsFP8 (e4m3fn)421 MBCutting-Edge FP8 for H100, H200, RTX 4090, Blackwell (~400MB)
model.int8.safetensorsINT8 (per-channel)422 MBUltra-Compact INT8 for CPU servers & memory-constrained edge (~400MB)
laya.f16.ggufGGUF F16842 MBllama.cpp, Ollama, local C++ / edge runtimes
laya.q8_0.ggufGGUF Q8_0496 MBQuantized llama.cpp & Ollama execution
mlx/Apple Silicon FP16842 MBmacOS Unified Memory (M1/M2/M3/M4) (~8ms latency)
mlx-8bit/Apple Silicon INT8496 MBMemory-efficient macOS local deployment
mlx-4bit/Apple Silicon INT4311 MBMinimal footprint (~300MB) for MacBook Air / Mac mini

Why ~840 MB vs ~400 MB?
ModernBERT-large contains 421,293,830 parameters (~421M).

  • At 16-bit precision (FP16/BF16): 421M params * 2 bytes = 842.6 MB (Upstream standard matching convaiinnovations/laya).
  • At 8-bit precision (FP8/INT8): 421M params * 1 byte = 421.4 MB (The ultra-compact ~400MB formats).
  • At 4-bit precision (INT4/MLX-4bit): 311.6 MB.

🚀 Quickstarts & Production Recipes

1. High-Speed Incident Triage (PyTorch / CUDA / CPU)

from rl_agent_api import RLAgent

agent = RLAgent("ameerhmz5/laya-modernbert-decision-90pct")

# Instant triage in <10ms
decision = agent.system_one(
    state="Alert: PostgreSQL primary connection pool exhausted. 120 client queries queued waiting for locks.",
    questions={
        "triage": {
            "type": "choice",
            "instructions": "Select the immediate automated remediation procedure:",
            "criteria": {
                "kill_idle": "Terminate idle-in-transaction client connections",
                "pool_expand": "Temporarily increase PgBouncer pool limits by 50%",
                "failover": "Trigger automatic failover to read-replica",
                "escalate": "Page primary on-call SRE engineer"
            }
        }
    }
)

result = decision["triage"]
print(f"Decision: {result[decision]} (Confidence: {result[probabilities][result[decision]]:.1%})")

2. Apple Silicon Native Inference (MLX - ~8ms)

import mlx.core as mx
from huggingface_hub import snapshot_download

path = snapshot_download("ameerhmz5/laya-modernbert-decision-90pct", allow_patterns=["mlx/*"])
weights = mx.load(f"{path}/mlx/model.safetensors")
print("MLX weights loaded in Apple Silicon unified memory!")

3. Ultra-Fast FP8 & INT8 Loading (~420 MB)

import safetensors.torch
from huggingface_hub import hf_hub_download

# Download 421 MB FP8 weights
path = hf_hub_download("ameerhmz5/laya-modernbert-decision-90pct", filename="model.fp8.safetensors")
weights_fp8 = safetensors.torch.load_file(path)
print("Loaded FP8 weights in 421 MB!")

4. Ollama & REST API Integration

Run the local Ollama server bridge:

python3 serve_ollama.py --port 11435

Query via standard cURL or Open-WebUI:

curl http://localhost:11435/api/generate -d '{
  "model": "laya",
  "prompt": "Context: Disk at 98%. Options: 1. Purge logs. 2. Ignore.",
  "stream": false
}'

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · transformers

Нельзя запустить

MLX-модели работают только на Apple Silicon.

Класс архитектуры
ModernBertForMaskedLM
Ревизия весов
c2caad4

0 моделей