Instructions to use punkraven/t3k-ni8 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Laya
How to use punkraven/t3k-ni8 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
t3k-ni8 (english-r2)
t3k-ni8 is an English System 1 decision model. Given a text and typed questions, it
answers every question in one forward pass: one option out of a list (choice), yes or no
(noul) or a level on a scale (score), with a probability for every option. It is stock
laya (convaiinnovations/laya at revision 55cf4c4ebb4ebe31b2550e8bdf3bd21b99753851, ModernBERT-large with
Laya's decision head, 421M parameters) fine-tuned on English public and
teacher-labelled data. This release is english-r2.
Results in brief
- It does not pass the project's pass rule against Jev. Mean accuracy 0.7535 [0.7438, 0.7628] (95% bootstrap interval, 10,000 resamples) against Jev's 0.7806, so it fails: the lower end of the interval of its mean accuracy is not above Jev's mean; it is more than 5 points below Jev on ANLI (-20.1); its Brier score is above Jev's on ANLI and CLINC150.
- English guard against stock laya: 23 of 24 rows are at most 0.5 points below stock laya or better; it fails on Prompt injections (injection) 0.698 to 0.647 (-5.2 points, n 116).
- Gains: mean accuracy on the 7 Jev sets 0.7535, against 0.5625 for stock laya (+19.1 points) and 0.7041 for english-r1 (+4.9 points); on the own test split, accuracy 0.7198 against 0.5839 and Brier 0.3380 against 0.5241 for stock laya. Above Jev, in points: DAIR Emotion (+29.7, in training) and Banking77 (+3.5, in training).
- In-distribution results: the train splits of SST-5, DAIR Emotion, ANLI, Banking77 and CLINC150 are in the training data, so their test results are in-distribution and marked in the table below.
Results against Jev
Jev is TypeSafe's hosted decision model; its numbers are the result files of its paper (jev-1.13.0). Every set is asked in Jev's own wording and option lists, with every label shown on Banking77 and CLINC150. Accuracy per set; the gap is english-r2 minus Jev, in points; Brier is shown where Jev publishes an English one.
| Set | n | english-r2 | english-r1 | stock laya | Jev | Gap to Jev | Brier english-r2 (Jev) | In training |
|---|---|---|---|---|---|---|---|---|
| Belebele | 900 | 0.748 | 0.792 | 0.427 | 0.972 | -22.4 | no | |
| SIB-200 | 204 | 0.853 | 0.873 | 0.804 | 0.897 | -4.4 | no | |
| SST-5 | 2,210 | 0.552 | 0.494 | 0.412 | 0.579 | -2.7 | yes | |
| DAIR Emotion | 2,000 | 0.882 | 0.574 | 0.591 | 0.585 | +29.7 | 0.192 (0.672) | yes |
| ANLI | 3,200 | 0.538 | 0.514 | 0.506 | 0.739 | -20.1 | 0.633 (0.377) | yes |
| Banking77 | 3,080 | 0.832 | 0.825 | 0.509 | 0.797 | +3.5 | 0.264 (0.309) | yes |
| CLINC150 | 5,500 | 0.868 | 0.857 | 0.689 | 0.895 | -2.6 | 0.204 (0.163) | yes |
| Mean of 7 | 0.7535 | 0.7041 | 0.5625 | 0.7806 | -2.7 |
The rule: the lower end of the mean's interval above Jev's mean; no set other than Belebele more than 5 points below Jev; Brier no higher than Jev's where Jev has one. english-r2 fails it: the lower end of the interval of its mean accuracy is not above Jev's mean; it is more than 5 points below Jev on ANLI (-20.1); its Brier score is above Jev's on ANLI and CLINC150.
English guard against stock laya
Accuracy against stock laya on the English test tasks, each allowed at most 0.5 points below stock laya. 23 of 24 rows are at most 0.5 points below stock laya or better; it fails on Prompt injections (injection) 0.698 to 0.647 (-5.2 points, n 116). The passing rows run from +0.5 points (Banking77 (intent_check)) to +31.3 points (Belebele (reading)). Reported only, outside the guard: BoolQ (answer) -2.1 points.
| Set and question | n | stock laya | english-r2 | Change (points) |
|---|---|---|---|---|
| ANLI (nli) | 3,200 | 0.502 | 0.542 | +4.0 |
| ANLI (nli_check) | 3,200 | 0.688 | 0.699 | +1.1 |
| ANLI (nli_score) | 3,200 | 0.491 | 0.530 | +3.9 |
| Banking77 (intent) | 3,080 | 0.771 | 0.931 | +16.0 |
| Banking77 (intent_check) | 3,080 | 0.781 | 0.786 | +0.5 |
| Belebele (reading) | 900 | 0.417 | 0.730 | +31.3 |
| BoolQ (answer) | 3,270 | 0.846 | 0.824 | -2.1 |
| CLINC150 (intent) | 5,500 | 0.936 | 0.974 | +3.8 |
| CLINC150 (intent_check) | 5,500 | 0.788 | 0.850 | +6.2 |
| DAIR Emotion (anger) | 2,000 | 0.868 | 0.965 | +9.7 |
| DAIR Emotion (fear) | 2,000 | 0.889 | 0.972 | +8.3 |
| DAIR Emotion (joy) | 2,000 | 0.752 | 0.934 | +18.2 |
| DAIR Emotion (love) | 2,000 | 0.880 | 0.963 | +8.2 |
| DAIR Emotion (sadness) | 2,000 | 0.773 | 0.959 | +18.6 |
| DAIR Emotion (surprise) | 2,000 | 0.963 | 0.978 | +1.5 |
| MASSIVE (intent) | 2,974 | 0.599 | 0.886 | +28.7 |
| MASSIVE (intent_check) | 2,974 | 0.649 | 0.839 | +19.0 |
| MASSIVE (scenario) | 2,974 | 0.706 | 0.864 | +15.7 |
| Prompt injections (injection) | 116 | 0.698 | 0.647 | -5.2 |
| SIB-200 (topic) | 204 | 0.765 | 0.858 | +9.3 |
| SIB-200 (topic_check) | 204 | 0.760 | 0.770 | +1.0 |
| SST-5 (sentiment) | 2,210 | 0.397 | 0.547 | +15.0 |
| XNLI (nli) | 5,010 | 0.869 | 0.890 | +2.1 |
| XNLI (nli_check) | 5,010 | 0.922 | 0.932 | +1.1 |
| XNLI (nli_score) | 5,010 | 0.754 | 0.817 | +6.3 |
Own test split
The project's own held-out test split (136,888 items), opened once for this release.
| Model | Accuracy | Macro-F1 | Log-loss | Brier | ECE | AUROC |
|---|---|---|---|---|---|---|
| stock laya | 0.5839 | 0.5870 | 0.9246 | 0.5241 | 0.1156 | 0.7492 |
| english-r2 | 0.7198 | 0.6372 | 0.5844 | 0.3380 | 0.0157 | 0.8440 |
Training
One run, scale-1m-88c5f2-seed1 (seed 1, loss soft_ce): 1,000,000 question passes on 2 GPUs on Kaggle, no item drawn more than 4 times; the checkpoints of segments 7, 8 and 9 are averaged. Passes by label source: public, dataset-labelled 72.2% (1,133,916 items) and teacher-labelled 27.8% (69,729 items). Teachers: Qwen3.8-27B and Claude Sonnet 5.5. Calibration: the fitted temperatures did not pass the calibration check, so the neutral temperatures (1, 1, 1) are kept. Inputs up to 2,048 tokens. The training mix by category:
| Category | Labels | Items | Passes | Share of passes |
|---|---|---|---|---|
| negation | dataset | 103,806 | 100,000 | 10.0% |
| negation | teacher | 158 | 0 | 0.0% |
| nli | dataset | 431,600 | 215,141 | 21.5% |
| open instruction | teacher | 52,314 | 209,256 | 20.9% |
| ordinal score | dataset | 21,283 | 14,441 | 1.4% |
| ordinal score | teacher | 15,064 | 60,256 | 6.0% |
| reading | dataset | 349,745 | 143,427 | 14.3% |
| routing preference tool | dataset | 168,056 | 71,714 | 7.2% |
| safety | dataset | 17,385 | 69,540 | 7.0% |
| sentiment emotion | dataset | 29,496 | 57,273 | 5.7% |
| sentiment emotion | teacher | 2,193 | 8,772 | 0.9% |
| variable options | dataset | 12,545 | 50,180 | 5.0% |
How to use
pip install laya==0.4.8
import unicodedata
import laya
agent = laya.load("punkraven/t3k-ni8")
text = unicodedata.normalize("NFC", "I was charged twice for my order, please refund one.")
result = agent.system_one(
text,
{
"intent": {
"type": "choice",
"instructions": "What does the customer want?",
"criteria": {
"refund": "get money back",
"track_order": "find out where an order is",
"cancel_order": "stop an order",
},
}
},
min_confidence=0.5,
)
print(result["answers"]["intent"])
- Unsure answers. With
min_confidenceset, an answer whose confidence is below it comes back with"abstention": "abstained"and"low_confidence": true; its choice and probabilities are kept, and the caller decides what to do with it. - Text cleaning. Training and testing normalised every text, question and option to Unicode NFC, as above.
- Precision. The test results above ran in fp16 on Tesla T4 GPUs. On GPUs of compute
capability 8 or more laya uses the checkpoint's
amp_dtypeunlessLAYA_CUDA_AMP=fp16is set; on CPU it runs in fp32. - HTTP. laya-serve (
pip install "laya[serve]==0.4.8") serves the model onPOST /v1/systemonein Jev's wire format: download this repo, then setLAYA_EXTRA_MODELS='{"english": "<local folder>"}',LAYA_MODELS=englishandLAYA_DEFAULT_MODEL=englishand runlaya-serve.
Limits
- It fails the project's pass rule against Jev and its English guard against stock laya (above).
- Below Jev, in points: Belebele (-22.4), ANLI (-20.1), SIB-200 (-4.4), SST-5 (-2.7) and CLINC150 (-2.6).
- Lower than english-r1, in points: Belebele (-4.4) and SIB-200 (-2.0).
- SST-5, DAIR Emotion, ANLI, Banking77 and CLINC150 were trained on (their train splits), so their results are in-distribution.
- One seed (seed 1).
- English only.
- Inputs up to 2,048 tokens.
Benchmarks
- JevBench: submission pending
- Jev Decision Index: to be reported
Links
- Base model: https://huggingface.co/convaiinnovations/laya at 55cf4c4ebb4ebe31b2550e8bdf3bd21b99753851
- Downloads last month
- 18
Model tree for punkraven/t3k-ni8
Base model
convaiinnovations/laya