Text Classification
Transformers
Safetensors
Laya
system-one
calibrated-decisions
rlcd
classification
routing
scoring
guardrails
moderation
reinforcement-learning
commercial-use
Instructions to use kp-forks/laya with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use kp-forks/laya with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="kp-forks/laya")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("kp-forks/laya", device_map="auto") - Laya
How to use kp-forks/laya with Laya:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
Commit ·
d41846e
1
Parent(s): ac3e6cc
Clean up math rendering in README
Browse filesOriginal commit: cce578c3df804585aea413f0413db0baa43dafc7
README.md
CHANGED
|
@@ -8,13 +8,13 @@ tags: [laya, rl-agent, system-one, calibrated-decisions, rlcd, classification, r
|
|
| 8 |
|
| 9 |
Laya is an open-source, non-autoregressive System 1 decision model: give it a **state** (text, email, ticket, or JSON document) and **typed questions**, and it returns typed answers with mathematically calibrated probabilities and confidence scores. It never generates text, eliminating parsing errors and hallucinations.
|
| 10 |
|
| 11 |
-
This is the **fine-tuned checkpoint**, incorporating dedicated email triage (spam, phishing, department routing), conversation trajectory modeling (
|
| 12 |
|
| 13 |
| Question type | Returns |
|
| 14 |
|---|---|
|
| 15 |
| `choice` | Selected option, probabilities per option, calibrated confidence |
|
| 16 |
| `score` | Expected level on your ordinal rubric (0, 1, 2...), distribution, confidence |
|
| 17 |
-
| `noul` | Calibrated boolean probability
|
| 18 |
|
| 19 |
## Architecture
|
| 20 |
- Backbone: `ModernBERT-large` (395M, fully fine-tuned, bidirectional), plus a decision head trained from scratch (2 transformer layers, an option marker scorer, and an act/escalate head). Total parameters: 421M.
|
|
@@ -25,7 +25,7 @@ This is the **fine-tuned checkpoint**, incorporating dedicated email triage (spa
|
|
| 25 |
## Training
|
| 26 |
Trained with **RLCD (Reinforcement Learning for Calibrated Decisions)**: the policy reports a probability distribution, exploration adds zero-mean Gaussian noise to the logits, and the reward is a strictly proper scoring rule (log score + spherical score, plus ranked probability score for ordinal score questions). The maximum expected reward is achieved only when the model outputs true, calibrated probabilities.
|
| 27 |
|
| 28 |
-
Multi-turn dialogues use Temporal Difference learning with Monte Carlo targets (
|
| 29 |
|
| 30 |
- Training: Fine-tuned (7,313 updates, 1 epoch, ~1.96 hours)
|
| 31 |
- Fitted calibration temperatures: [1.637, 1.251, 1.983] (with per-option-count scaling)
|
|
|
|
| 8 |
|
| 9 |
Laya is an open-source, non-autoregressive System 1 decision model: give it a **state** (text, email, ticket, or JSON document) and **typed questions**, and it returns typed answers with mathematically calibrated probabilities and confidence scores. It never generates text, eliminating parsing errors and hallucinations.
|
| 10 |
|
| 11 |
+
This is the **fine-tuned checkpoint**, incorporating dedicated email triage (spam, phishing, department routing), conversation trajectory modeling (TD(lambda = 1.0)), and per-cardinality temperature calibration.
|
| 12 |
|
| 13 |
| Question type | Returns |
|
| 14 |
|---|---|
|
| 15 |
| `choice` | Selected option, probabilities per option, calibrated confidence |
|
| 16 |
| `score` | Expected level on your ordinal rubric (0, 1, 2...), distribution, confidence |
|
| 17 |
+
| `noul` | Calibrated boolean probability P(true) from 0.0 to 1.0 |
|
| 18 |
|
| 19 |
## Architecture
|
| 20 |
- Backbone: `ModernBERT-large` (395M, fully fine-tuned, bidirectional), plus a decision head trained from scratch (2 transformer layers, an option marker scorer, and an act/escalate head). Total parameters: 421M.
|
|
|
|
| 25 |
## Training
|
| 26 |
Trained with **RLCD (Reinforcement Learning for Calibrated Decisions)**: the policy reports a probability distribution, exploration adds zero-mean Gaussian noise to the logits, and the reward is a strictly proper scoring rule (log score + spherical score, plus ranked probability score for ordinal score questions). The maximum expected reward is achieved only when the model outputs true, calibrated probabilities.
|
| 27 |
|
| 28 |
+
Multi-turn dialogues use Temporal Difference learning with Monte Carlo targets (TD(lambda = 1.0)) over prefix slices, preventing outcome leakage. 100% human-annotated real-world datasets, zero synthetic shortcuts.
|
| 29 |
|
| 30 |
- Training: Fine-tuned (7,313 updates, 1 epoch, ~1.96 hours)
|
| 31 |
- Fitted calibration temperatures: [1.637, 1.251, 1.983] (with per-option-count scaling)
|