17 Downloads Updated yesterday
ollama run nsru/winit:0.8b
Updated 2 days ago
2 days ago
2dc067c3ef20 · 812MB
Winit is a decision model from Nakhon Sawan Rajabhat University (NSRU). It does not chat or write text. You give it some text (the state) and a question with labelled options, and it answers with one label. The probability of every option is read from the model’s next-token logprobs, so a single forward pass gives you a full, calibrated distribution rather than a sampled guess.
It supports three question types:
| Type | You give | You get |
|---|---|---|
choice |
up to 20 named options (with optional descriptions) | the best option, a probability per option, a confidence |
noul (yes/no) |
a yes/no question, optional criteria for yes and for no | p(yes) |
score |
1–10 ordered levels, lowest first | the probability-weighted score, a probability per level, a confidence |
Thai and English are both supported.
| Tag | Base | Size on disk | Memory used* | Speed* | Benchmark accuracy** |
|---|---|---|---|---|---|
nsru/winit:26b |
Gemma 4 26B-A4B (QAT, Q4_0) | 15 GB | ~17–19 GiB | ~144 ms / question | 93% |
nsru/winit:0.8b |
Qwen3.5-0.8B, fine-tuned (Q8_0) | 811 MB | ~2.2 GiB | ~33 ms / question | 90% |
* Measured with Ollama 0.40.16 on an NVIDIA GB10, num_ctx 4096, including the Ollama runtime.
** NSRU’s internal test split: 107 synthetic Thai/English cases, 216 questions about routing, urgency,
complaints, personal data, spam, grounding and review ratings. It is a small, domain-specific set, so
please evaluate on your own data before relying on these numbers.
winit:26b is the most accurate. winit:0.8b is for small machines: it was distilled from winit:26b
and runs on CPU or a small GPU.
Each question is one chat message in exactly this layout. The small model was trained on it:
<state>
{text or JSON}
</state>
Question: {question}
Options:
A) {option name} — {optional description}
B) ...
Answer with one letter (A-C).
The other question types change only the option labels and the last line:
- yes/no: A) Yes — {when yes} and B) No — {when no}, ending with Answer with one letter (A or B).
- score: the levels are labelled 0) … 1) … from lowest to highest, ending with
Answer with one digit (0-4), from lowest to highest.
Send "think": false. The reply is the single label:
curl http://localhost:11434/api/chat -d '{
"model": "nsru/winit:0.8b", "stream": false, "think": false,
"logprobs": true, "top_logprobs": 20, "options": {"temperature": 0, "num_predict": 1},
"messages": [{"role": "user", "content": "<state>\nFree iPhone! Click bit.ly/x to claim.\n</state>\n\nQuestion: Is this message spam?\nOptions:\nA) Yes\nB) No\n\nAnswer with one letter (A or B)."}]
}'
# → "message": {"content": "A"}, plus "logprobs" with the top tokens and their log-probabilities
To get a probability for every option, normalise exp(logprob) of the first token over the option labels.
In Python, for example:
import json, math, urllib.request
def ask(model, state, question, options):
"""options: list of (label, description); returns {label: probability}."""
labels = [l for l, _ in options]
lines = "\n".join(f"{l}) {d}" for l, d in options)
if labels[0] != "A":
hint = f"Answer with one digit (0-{len(labels) - 1}), from lowest to highest."
elif len(labels) == 2:
hint = "Answer with one letter (A or B)."
else:
hint = f"Answer with one letter (A-{labels[-1]})."
prompt = f"<state>\n{state}\n</state>\n\nQuestion: {question}\nOptions:\n{lines}\n\n{hint}"
body = {"model": model, "stream": False, "think": False, "logprobs": True, "top_logprobs": 20,
"options": {"temperature": 0, "num_predict": 1},
"messages": [{"role": "user", "content": prompt}]}
req = urllib.request.Request("http://localhost:11434/api/chat", json.dumps(body).encode(),
{"Content-Type": "application/json"})
top = json.load(urllib.request.urlopen(req))["logprobs"][0]["top_logprobs"]
mass = {l: 0.0 for l in labels}
for c in top:
t = c["token"].strip()
if t in mass:
mass[t] += math.exp(c["logprob"])
total = sum(mass.values()) or 1.0
return {l: m / total for l, m in mass.items()}
# choice: letters A, B, C, ...
print(ask("nsru/winit:0.8b", "ลืมรหัสผ่าน e-Learning พรุ่งนี้เช้ามีสอบค่ะ",
"Which office should handle this message?",
[("A", "registrar"), ("B", "finance"), ("C", "it — accounts, passwords, e-Learning"), ("D", "library")]))
# noul (yes/no): A = Yes, B = No
print(ask("nsru/winit:0.8b", "Your mailbox is full. Click here and enter your password.",
"Is this message phishing?", [("A", "Yes"), ("B", "No")]))
# score: digits 0..n-1, lowest first
print(ask("nsru/winit:0.8b", "Good food, a bit pricey.", "What star rating does this review express?",
[("0", "1 star"), ("1", "2 stars"), ("2", "3 stars"), ("3", "4 stars"), ("4", "5 stars")]))
Tips:
"think": false (as in the example). Gemma 4 thinks before answering by default, which makes
winit:26b slower and moves the label away from the first token, where the probabilities are read.(p_max − 1/n) / (1 − 1/n). A score’s value is Σ i · p_i over the levels.ollama run, /v1/chat/completions) also works and replies with the single label, but
without probabilities. With thinking on, winit:0.8b puts the label in the thinking field.winit:26b is Gemma 4 26B-A4B with a decision-only system prompt. Probabilities come from its logprobs.winit:0.8b is Qwen3.5-0.8B fully fine-tuned by distillation. About 120k decision records were made in
three steps:
winit:26b wrote new synthetic Thai/English messages, reviews, notices and policy Q&A, run locally.winit:26b labelled them with soft probabilities.The student is trained on the full teacher distribution, and options are shuffled on every pass. Two further rounds added targeted data for its weak spots: urgency, mid-range ratings and neutral sentiment. - No test cases were used for training. Prompt and training choices were tuned on a separate dev split.
winit:26b), Apache License 2.0.winit:0.8b), Apache License 2.0.winit:0.8b draws on OpenThai-SystemOne
by iApp Technology with AIEAT, Apache License 2.0: distillation into a small decision model, option-order
shuffling during training, and per-type calibration. Winit does not contain OpenThai weights, code or data.Both models are released under the Apache License 2.0, and the license text is included with each model. Winit is an independent NSRU project and is not affiliated with or endorsed by any other model provider.
Winit คือโมเดลตัดสินใจของมหาวิทยาลัยราชภัฏนครสวรรค์ ตอบเป็นตัวเลือกพร้อมความน่าจะเป็นของทุกตัวเลือก ไม่ได้สร้างข้อความ รองรับคำถามสามแบบ คือแบบเลือกตอบ (choice), ใช่/ไม่ใช่ (noul) และให้คะแนน (score)
nsru/winit:26b แม่นที่สุด ใช้หน่วยความจำประมาณ 17–19 GiBnsru/winit:0.8b สำหรับเครื่องเล็ก ใช้หน่วยความจำประมาณ 2.2 GiB และเร็วกว่าตัวใหญ่ประมาณ 4 เท่าตัวเล็กเทรนแบบ distillation จาก winit:26b ด้วยข้อมูลสังเคราะห์ที่สร้างบนเครื่องของมหาวิทยาลัยเอง ขอขอบคุณ Gemma (Google), Qwen (Alibaba) และแนวคิดจาก OpenThai-SystemOne (iApp/AIEAT) ทั้งหมดใช้สัญญาอนุญาต Apache-2.0