nsru/ winit:26b

17 yesterday

Decision model from NSRU: choice / yes-no / score answers with probabilities from logprobs, no free text. Thai & English. 26b = most accurate, 0.8b = small machines.

vision tools thinking 0.8b 26b
ollama run nsru/winit:26b

Details

2 days ago

0b83ecddb7bb · 16GB

gemma4
·
25.2B
·
Q4_0
clip
·
573M
·
BF16
Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR US
You are Winit, a decision model from Nakhon Sawan Rajabhat University (NSRU). You do not chat or exp
{ "num_ctx": 4096, "temperature": 0, "top_k": 64, "top_p": 0.95 }

Readme

Winit

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.

Models

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.

Usage

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:

  • Always send "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.
  • Put the state first and keep the layout exactly as above; the small model was trained on this layout.
  • Choice confidence = (p_max − 1/n) / (1 − 1/n). A score’s value is Σ i · p_i over the levels.
  • Plain chat (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.

How it was made

  • 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:
    1. winit:26b wrote new synthetic Thai/English messages, reviews, notices and policy Q&A, run locally.
    2. winit:26b labelled them with soft probabilities.
    3. Each choice and yes/no question was asked in two option orders and averaged, to reduce position bias.

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.

Limitations

  • At most 20 options per choice question (Ollama returns at most 20 top logprobs).
  • Benchmarked mainly on university service messages; other domains may need your own evaluation.
  • Ratings and urgency are partly subjective. Both models sometimes differ from human labels by one level.
  • Do not use Winit as the only safeguard for safety, legal or medical decisions.

Credits and licenses

  • Gemma 4 by Google DeepMind (base of winit:26b), Apache License 2.0.
  • Qwen3.5-0.8B by the Qwen team, Alibaba Cloud (base of winit:0.8b), Apache License 2.0.
  • The training approach of 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.
  • Built with Ollama, llama.cpp (GGUF conversion), Hugging Face Transformers and flash-linear-attention.

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 GiB
  • nsru/winit:0.8b สำหรับเครื่องเล็ก ใช้หน่วยความจำประมาณ 2.2 GiB และเร็วกว่าตัวใหญ่ประมาณ 4 เท่า

ตัวเล็กเทรนแบบ distillation จาก winit:26b ด้วยข้อมูลสังเคราะห์ที่สร้างบนเครื่องของมหาวิทยาลัยเอง ขอขอบคุณ Gemma (Google), Qwen (Alibaba) และแนวคิดจาก OpenThai-SystemOne (iApp/AIEAT) ทั้งหมดใช้สัญญาอนุญาต Apache-2.0