Team Ai
Modelpublic

iapp/OpenThai-SystemOne-NVFP4A16

sourceHugging Faceapache-2.0updated 16d agoView on Hugging Face
0likes22downloads
Model Card

OpenThai-SystemOne — NVFP4A16

OpenThai-SystemOne is an open Thai + English System One decision model: one forward pass answers typed questions (choice over up to 255 options, ordinal score, yes/no noul) about a text / JSON state with calibrated probabilities, no text generation. It is a Qwen3.5-0.8B text tower (Thai continued pre-training) plus a 256-slot decision head. This repo is a quantization of v0.3 (commit f3709948).

What is quantized: the Linear layers of the tower. The token embeddings, the 256-slot decision head and the per-type temperatures stay in bf16. Quantization therefore only perturbs the hidden state the head reads.

Format: NVFP4 weight-only (FP4 weights, 16-bit activations). compressed-tensors (llm-compressor) checkpoint. Loaded through transformers the weights are decompressed to bf16 at load time (same speed as bf16, smaller download); native FP8 / INT8 / FP4 kernels need a runtime with this architecture (the decision head is custom, so vLLM does not serve it out of the box). NVFP4 kernels need NVIDIA Blackwell.

Size: 790 MB (bf16 original: 1,509 MB).

Usage

bash
pip install torch transformers safetensors pydantic && pip install compressed-tensors
python
from transformers import AutoModel, AutoTokenizer        # trust_remote_code files are in this repo
model = AutoModel.from_pretrained("iapp/OpenThai-SystemOne-NVFP4A16", trust_remote_code=True)
# or with the pip package (git+https://github.com/iapp-technology/openthai-systemone):
from openthai_systemone import SystemOneClient
c = SystemOneClient("iapp/OpenThai-SystemOne-NVFP4A16")
r = c.system_one("ร้านนี้อาหารอร่อยมาก แต่รอนานเกือบชั่วโมง", {"sentiment": {"type": "choice", "instructions": "ความรู้สึก",
                 "criteria": {"บวก": None, "ลบ": None, "กลาง": None}}})

Accuracy vs the bf16 original (same records, single option order, first 800 per set)

Macro: public 73.6 (original 74.3), Thai 79.8 (original 80.1).

subsetbf16 originalthisΔ
public 13-subset bench
aegis2 (noul)83.282.8-0.4
boolq (noul)79.778.3-1.3
civil_comments (noul)79.076.0-3.0
helpsteer2 (score)41.641.6+0.0
massive-de-DE (choice)88.386.3-2.0
massive-en-US (choice)88.388.6+0.3
multinli (choice)89.086.6-2.3
paws (noul)94.092.4-1.6
pubmedqa (choice)64.062.0-2.0
squad2 (noul)89.387.0-2.3
summeval-consistency (score)75.078.5+3.5
summeval-relevance (score)21.725.0+3.3
vitaminc-dev (choice)72.571.6-0.8
macro, public 13-subset bench74.373.6-0.7
Thai held-out / eval sets
banking77 (choice)59.159.0-0.1
contrastive_th (choice)80.779.1-1.7
contrastive_th (noul)83.581.9-1.6
contrastive_th (score)78.680.4+1.8
massive_th (choice)90.689.5-1.1
prachathai (choice)98.398.3+0.0
prachathai (noul)93.493.7+0.3
sib200_th (choice)77.977.9+0.0
wisesight (choice)48.949.6+0.8
wongnai (score)64.564.9+0.4
xlam_tools (choice)99.499.4+0.0
xnli_th (choice)79.877.6-2.1
xnli_th (noul)86.886.4-0.4
macro, Thai held-out / eval sets80.179.8-0.3

Notes

  • —Scores are single-option-order accuracy on the first 800 records of each set (scripts/06_eval.py --limit 800), the same records for the original and the quantization. score subsets report exact level accuracy.
  • —Base model, data, training and the full benchmark tables: iapp/OpenThai-SystemOne.
  • —License Apache-2.0 (same as the base). Built by iApp Technology / OpenThaiGPT.