Text Classification
Transformers
ONNX
Safetensors
GLiClass
rlcd
typesafe-ai
jev
decision-engine
system-1
modernbert
gliclass
non-autoregressive
zero-token-generation
structured-outputs
calibration
expected-calibration-error
ece
brier-score
proper-scoring-rules
webgpu
edge-ai
fast-inference
banking77
Instructions to use heman10x/rlcd-modernbert-151m with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use heman10x/rlcd-modernbert-151m with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="heman10x/rlcd-modernbert-151m")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("heman10x/rlcd-modernbert-151m", device_map="auto") - Notebooks
- Google Colab
- Kaggle
OpenJev (Verdict): Non-Autoregressive Decision Engine (151M)
OpenJev (Verdict) is an open-source, post-trained foundational decision model built for structured software workflows, inspired by TypeSafe AI's Jev and Reinforcement Learning for Calibrated Decisions (RLCD). It provides calibrated semantic judgments (discrete choices, ordinal scores, and binary probabilities) in a single forward pass without conversational text generation.
- GitHub Repository: https://github.com/Heman10x-NGU/Verdict-open-jev
- Base Architecture: ModernBERT-base (
knowledgator/gliclass-modern-base-v2.0, 151,378,177 parameters) - Logit Capacity: 25 candidate slots (24 substantive options + 1 explicit abstention slot)
Key Features
- Non-Autoregressive Single Pass: Evaluates all candidate options simultaneously in a single forward pass (< 35ms latency) without token generation loops.
- Proper Scoring Calibration: Trained with composite Cross-Entropy + Brier Score loss: $$\mathcal{L}{\text{total}} = \mathcal{L}{\text{CE}} + 1.0 \times \mathcal{L}_{\text{Brier}}$$ followed by post-hoc L-BFGS temperature scaling ($T = 1.0716$).
- Explicit Abstention Route: Dedicated
__insufficient_evidence__candidate slot ensures calibrated rejection on out-of-distribution or insufficient context queries. - Edge and In-Browser WebGPU: Runs locally in browsers via WebGPU/WASM and on servers via PyTorch/ONNX Runtime.
Quickstart
Python SDK
git clone https://github.com/Heman10x-NGU/Verdict-open-jev.git
cd Verdict-open-jev
pip install -e .
python scripts/download_artifacts.py
from rlcd import DecisionEngine, Choice, Option
engine = DecisionEngine()
query = Choice(
question="What is the primary customer inquiry?",
options=[
Option(id="card_lost", description="Reporting a lost or stolen card"),
Option(id="dispute_charge", description="Disputing an unrecognized charge"),
Option(id="pin_reset", description="Requesting a PIN reminder or reset"),
]
)
result = engine.evaluate(
context="I lost my wallet yesterday and need to stop my debit card immediately.",
queries=[query]
)
print(f"Selected: {result.results[0].selected_option_id}")
print(f"Confidence: {result.results[0].confidence:.4f}")
print(f"Abstention probability: {result.results[0].p_abstain:.4f}")
Direct ONNX Runtime Loading
import onnxruntime as ort
from huggingface_hub import hf_hub_download
model_path = hf_hub_download(repo_id="heman10x/rlcd-modernbert-151m", filename="model.onnx")
session = ort.InferenceSession(model_path, providers=["CPUExecutionProvider"])
Empirical Benchmark Results
All metrics reflect evaluation on the held-out test split (1,000 cases, 5 candidates) and out-of-scope challenge sets:
| Metric | Uncalibrated | Calibrated | 95% Bootstrap CI |
|---|---|---|---|
| Top-1 Accuracy | 95.00% | 95.00% | [93.60%, 96.20%] |
| Negative Log-Likelihood (NLL) | 0.1787 | 0.1768 | [0.1345, 0.2223] |
| Multi-Class Brier Score | 0.0790 | 0.0785 | [0.0601, 0.0978] |
| Equal-Width ECE (10 bins) | 3.52% | 3.35% | [2.58%, 4.56%] |
| Adaptive ECE (10 bins) | 3.50% | 3.32% | [2.55%, 4.49%] |
| Out-of-Scope Abstention Recall | 97.50% | 97.50% | [95.07%, 99.49%] |
| Out-of-Scope Abstention Precision | 89.45% | 89.45% | [85.33%, 93.36%] |
| Inference Latency (p50) | 35.58 ms | 35.58 ms | Single-pass forward |
| Inference Latency (p95) | 39.81 ms | 39.81 ms | Single-pass forward |
Citation and Upstream Credits
- Inspired by TypeSafe AI's Jev architecture and RLCD (Reinforcement Learning for Calibrated Decisions).
- Base encoder backbone: ModernBERT (
knowledgator/gliclass-modern-base-v2.0). - Evaluation benchmarks: PolyAI Banking77 and CLINC150 Out-of-Scope datasets.
- Downloads last month
- -
Model tree for heman10x/rlcd-modernbert-151m
Base model
knowledgator/gliclass-modern-base-v2.0