Text Classification
Transformers
Safetensors
English
jis
feature-extraction
decision-model
classification
calibration
custom-code
custom_code
Instructions to use TuanPhat/JIS-124M with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use TuanPhat/JIS-124M with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="TuanPhat/JIS-124M", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("TuanPhat/JIS-124M", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Rename model to JIS-124M
Browse files- LICENSE +1 -1
- README.md +9 -9
- config.json +1 -1
LICENSE
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
JIS model release β TuanPhat/JIS
|
| 2 |
|
| 3 |
Original JIS code: MIT. GPT-2 backbone: MIT. Parent d1-3B teacher attribution and inherited training-data notices follow. These notices do not relicense all derived artifacts under a single license.
|
| 4 |
|
|
|
|
| 1 |
+
JIS-124M model release β TuanPhat/JIS-124M
|
| 2 |
|
| 3 |
Original JIS code: MIT. GPT-2 backbone: MIT. Parent d1-3B teacher attribution and inherited training-data notices follow. These notices do not relicense all derived artifacts under a single license.
|
| 4 |
|
README.md
CHANGED
|
@@ -20,9 +20,9 @@ tags:
|
|
| 20 |
- custom-code
|
| 21 |
---
|
| 22 |
|
| 23 |
-
# JIS
|
| 24 |
|
| 25 |
-
JIS is a **124M-parameter decision model** for text and JSON. Give it a state and
|
| 26 |
typed questions; it returns candidate probabilities, a selected option, or an
|
| 27 |
expected rubric score without generating text.
|
| 28 |
|
|
@@ -32,7 +32,7 @@ expected rubric score without generating text.
|
|
| 32 |
|
| 33 |
## Model details
|
| 34 |
|
| 35 |
-
| Property | JIS |
|
| 36 |
| --- | --- |
|
| 37 |
| Backbone | GPT-2-derived, affine Pre-RMSNorm, shared candidate scorer |
|
| 38 |
| Layers / hidden size | 12 / 768 |
|
|
@@ -56,7 +56,7 @@ import torch
|
|
| 56 |
from transformers import AutoModel
|
| 57 |
|
| 58 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
| 59 |
-
model = AutoModel.from_pretrained("TuanPhat/JIS", trust_remote_code=True).to(device).eval()
|
| 60 |
|
| 61 |
questions = {
|
| 62 |
"team": {
|
|
@@ -95,7 +95,7 @@ Both models were measured locally with their released calibration settings.
|
|
| 95 |
|
| 96 |
| Model | Parameters | Accuracy β | KL β | Brier β | ECE β |
|
| 97 |
| --- | ---: | ---: | ---: | ---: | ---: |
|
| 98 |
-
| **JIS
|
| 99 |
| [Laya](https://huggingface.co/convaiinnovations/laya) | 421M | 36.35% | 0.57207 | 0.31545 | 0.17262 |
|
| 100 |
|
| 101 |
### Speed and memory
|
|
@@ -105,7 +105,7 @@ calls with five questions per case.
|
|
| 105 |
|
| 106 |
| Model | Median latency | p95 latency | Peak allocated GPU memory |
|
| 107 |
| --- | ---: | ---: | ---: |
|
| 108 |
-
| JIS
|
| 109 |
| Laya | **115.5 ms** | **152.0 ms** | 2,389 MiB |
|
| 110 |
|
| 111 |
## Contact
|
|
@@ -115,11 +115,11 @@ Nguyen Huu Tuan Phat β [tuanphatnguyenhuu@gmail.com](mailto:tuanphatnguyenhuu@
|
|
| 115 |
## Citation
|
| 116 |
|
| 117 |
```bibtex
|
| 118 |
-
@misc{
|
| 119 |
author = {Nguyen Huu Tuan Phat},
|
| 120 |
-
title = {JIS: A Compact Typed Decision Model},
|
| 121 |
year = {2026},
|
| 122 |
-
url = {https://huggingface.co/TuanPhat/JIS}
|
| 123 |
}
|
| 124 |
```
|
| 125 |
|
|
|
|
| 20 |
- custom-code
|
| 21 |
---
|
| 22 |
|
| 23 |
+
# JIS-124M
|
| 24 |
|
| 25 |
+
JIS-124M is a **124M-parameter decision model** for text and JSON. Give it a state and
|
| 26 |
typed questions; it returns candidate probabilities, a selected option, or an
|
| 27 |
expected rubric score without generating text.
|
| 28 |
|
|
|
|
| 32 |
|
| 33 |
## Model details
|
| 34 |
|
| 35 |
+
| Property | JIS-124M |
|
| 36 |
| --- | --- |
|
| 37 |
| Backbone | GPT-2-derived, affine Pre-RMSNorm, shared candidate scorer |
|
| 38 |
| Layers / hidden size | 12 / 768 |
|
|
|
|
| 56 |
from transformers import AutoModel
|
| 57 |
|
| 58 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
| 59 |
+
model = AutoModel.from_pretrained("TuanPhat/JIS-124M", trust_remote_code=True).to(device).eval()
|
| 60 |
|
| 61 |
questions = {
|
| 62 |
"team": {
|
|
|
|
| 95 |
|
| 96 |
| Model | Parameters | Accuracy β | KL β | Brier β | ECE β |
|
| 97 |
| --- | ---: | ---: | ---: | ---: | ---: |
|
| 98 |
+
| **JIS-124M** | **124M** | **53.70%** | **0.28328** | **0.15499** | **0.07016** |
|
| 99 |
| [Laya](https://huggingface.co/convaiinnovations/laya) | 421M | 36.35% | 0.57207 | 0.31545 | 0.17262 |
|
| 100 |
|
| 101 |
### Speed and memory
|
|
|
|
| 105 |
|
| 106 |
| Model | Median latency | p95 latency | Peak allocated GPU memory |
|
| 107 |
| --- | ---: | ---: | ---: |
|
| 108 |
+
| JIS-124M | 177.7 ms | 254.7 ms | **512 MiB** |
|
| 109 |
| Laya | **115.5 ms** | **152.0 ms** | 2,389 MiB |
|
| 110 |
|
| 111 |
## Contact
|
|
|
|
| 115 |
## Citation
|
| 116 |
|
| 117 |
```bibtex
|
| 118 |
+
@misc{nguyen2026jis124m,
|
| 119 |
author = {Nguyen Huu Tuan Phat},
|
| 120 |
+
title = {JIS-124M: A Compact Typed Decision Model},
|
| 121 |
year = {2026},
|
| 122 |
+
url = {https://huggingface.co/TuanPhat/JIS-124M}
|
| 123 |
}
|
| 124 |
```
|
| 125 |
|
config.json
CHANGED
|
@@ -80,6 +80,6 @@
|
|
| 80 |
"gate_evidence": "Wilson lower on decisions AND groups with all accepted questions correct",
|
| 81 |
"policy": "Scores and validation gates are signals; application owns final actions. No teacher fallback."
|
| 82 |
},
|
| 83 |
-
"model_name": "JIS",
|
| 84 |
"author": "Nguyen Huu Tuan Phat"
|
| 85 |
}
|
|
|
|
| 80 |
"gate_evidence": "Wilson lower on decisions AND groups with all accepted questions correct",
|
| 81 |
"policy": "Scores and validation gates are signals; application owns final actions. No teacher fallback."
|
| 82 |
},
|
| 83 |
+
"model_name": "JIS-124M",
|
| 84 |
"author": "Nguyen Huu Tuan Phat"
|
| 85 |
}
|