Wisp v0.1.2 4B is a LoRA adapter for Qwen/Qwen3.5-4B. You give it a state (a chat message, a username or a player report), a question and 2–12 answer choices; it returns one of your choices with a score for every choice. It does not write explanations and cannot answer outside the choices you supply.
Experimental release. v0.1.2 is Wisp's first public release. The trained adapter, Rust/Candle runtime, and evaluation results provide a working baseline. Its known limitations are documented below and will guide further work on coverage, calibration, and deployment. The model is intended for testing and integration; moderation policy and enforcement belong in the host application.
Why Wisp. It is a compact, open-source model that runs on your own machine, so the text you moderate does not have to go to a cloud service. It focuses on bounded-choice moderation that is local, fast and easy to adapt, while the integrating application retains policy and enforcement. v0.1.2 is the first measured release of that direction.
It is built for game and community chat: insults, harassment, threats, hate, sexual content, scams, chat-filter evasion, offensive usernames, and the cases that look toxic but are not (a victim quoting an insult, banter, in-game violence, lookalike words).
Code: GitHub repository (Python package and native Rust/Candle runtime).
Labels are project-authored, scores are not calibrated, and the benchmark is small. These known limits guide the next releases. Keep policy, thresholds and sanctions in your application, and keep a human review and appeal path.
| Field | Value |
|---|---|
| Version | Wisp v0.1.2 4B |
| Base model | Qwen/Qwen3.5-4B, revision 851bf6e806efd8d0a36b00ddf55e13ccb7b8cd0a |
| Adapter | LoRA r=16, α=32, dropout 0.05, all attention and MLP projections |
| Training | QLoRA (NF4 4-bit base, bf16 compute) |
| Output | one symbol per supplied choice, read from next-token logits |
| Choices | The reference service validates 2–12 options; training included some examples with up to 15 options |
| Calibration | none — scores are a softmax over the offered choices |
The prompt has four blocks: CONTEXT (the rule or policy to apply), STATE, QUESTION, OPTIONS. Each option gets a one-token symbol (A, B, C…). Wisp reads the logits of those symbols at the next position, so one forward pass scores every choice and the answer is always one of them.
Ask several questions about the same message to get separate, typed outputs, for example:
| Question | Choices | Example output (illustrative) |
|---|---|---|
| Does a moderator need to look at this? | REVIEW, NO_ACTION |
REVIEW 0.96 |
| Category? | INSULT, HARASSMENT, THREAT, HATE, SEXUAL, DOXXING, SCAM, OTHER |
SEXUAL 0.82 |
| Severity? | LOW, MEDIUM, HIGH, CRITICAL |
HIGH 0.71 |
REVIEW means "send this case to your review path"; it does not authorize a sanction. A score of 0.9 is the model's preference among the options shown, not a 90% chance of being right.
The main Wisp runtime is the native Rust/Candle server in the GitHub repository (Windows with CUDA tested). The Python code below is the reference implementation: it shows the exact prompt and is a secondary way to run Wisp. In a fixed check of 8 short cases, the runtimes selected the same option on 7, and Candle averaged about 83 ms per decision against about 136 ms for the Python package on an otherwise idle GPU. This is a small, setup-specific check, not numerical parity, calibration or a throughput guarantee. See the GitHub runtime notes for setup-specific measurements and the model page for release details; these figures are not hardware requirements or a general throughput guarantee.
import string, torch
from peft import PeftModel
from transformers import AutoTokenizer, BitsAndBytesConfig, Qwen3_5ForCausalLM
BASE, REV = "Qwen/Qwen3.5-4B", "851bf6e806efd8d0a36b00ddf55e13ccb7b8cd0a"
SYMBOLS = string.ascii_uppercase + string.ascii_lowercase + string.digits
SYSTEM = (
"You are Wisp, a moderation decision engine. You receive a STATE (a chat message with optional history, a report, "
"or a username), sometimes a CONTEXT (server policy or rules), a QUESTION and OPTIONS, each with a symbol. "
"Choose the single option that best answers the QUESTION for the STATE, following the CONTEXT when one is given. "
"Return only the symbol of that option."
)
tok = AutoTokenizer.from_pretrained(BASE, revision=REV)
base = Qwen3_5ForCausalLM.from_pretrained(
BASE, revision=REV, device_map="auto",
quantization_config=BitsAndBytesConfig(load_in_4bit=True, bnb_4bit_quant_type="nf4",
bnb_4bit_compute_dtype=torch.bfloat16, bnb_4bit_use_double_quant=True))
model = PeftModel.from_pretrained(base, "notebox/Wisp-v0.1.2-4B").eval()
def decide(text, question, options, kind="REPORTED MESSAGE",
policy="Answer the supplied classification question about the STATE. Use only the offered options."):
prompt = (f"CONTEXT\n{policy}\n\nSTATE\n{kind}\n{text}\n\nQUESTION\n{question}\n\nOPTIONS\n"
+ "\n".join(f"{SYMBOLS[i]}. {o}" for i, o in enumerate(options)))
ids = tok.apply_chat_template([{"role": "system", "content": SYSTEM}, {"role": "user", "content": prompt}],
add_generation_prompt=True, return_tensors="pt", enable_thinking=False)
ids = getattr(ids, "input_ids", ids).to(model.device)
with torch.inference_mode():
logits = model(input_ids=ids, logits_to_keep=1, use_cache=False).logits[0, -1].float()
sym = [tok.encode(SYMBOLS[i], add_special_tokens=False)[0] for i in range(len(options))]
probs = torch.softmax(logits[sym], dim=0).tolist()
return dict(zip(options, probs))
print(decide("Player1: he told me 'you son of a bitch', can you ban him?",
"Does a moderator need to look at this?", ["REVIEW", "NO_ACTION"]))
Use kind="USERNAME" for usernames and kind="REPORT" for reports. The benchmark below used task-specific CONTEXT policies for chat, usernames, categories and reports; the wisp-decide package below includes them.
wisp-decide packageThe same code, packaged. It builds the prompt the adapter was trained with, includes the built-in policies, and has a small HTTP server. The folder wisp-decide/ is in this repository and in the GitHub repository:
hf download notebox/Wisp-v0.1.2-4B --include "wisp-decide/*" --local-dir .
pip install "./wisp-decide[model]"
import wisp_decide
wisp = wisp_decide.load("notebox/Wisp-v0.1.2-4B")
d = wisp.decide("Mira: he told me \"you are trash\" again, can a mod check?",
"Does a moderator need to look at this?", ["REVIEW", "NO_ACTION"], task="moderation")
print(d.decision, d.probabilities, d.needs_review)
task is optional (moderation, username, report_validity) and picks the built-in policy; pass policy="..." to supply your own server rules. The secondary package requires Python 3.10 or newer and loads the base model in 4-bit; actual performance depends on the hardware and configuration. Start the server with wisp-decide serve --port 8781.
The server in the wisp-decide package wraps the same prompt in a small HTTP API: POST /decide with a JSON body, and GET /health. You send the text and the question, and the service builds the CONTEXT / STATE / QUESTION / OPTIONS prompt for you.
Request:
{
"task": "moderation",
"text": "Mira: he told me \"you are trash\" again, can a mod check?",
"question": "Does a moderator need to look at this?",
"options": ["REVIEW", "NO_ACTION"]
}
| Field | Type | Meaning |
|---|---|---|
task |
string, optional | moderation (reported chat message), username, report_validity; selects the built-in policy and the STATE label. Omitted: a generic policy. |
text |
string, 1–4,000 characters | the message, username or report to judge |
question |
string, 1–200 characters | the typed question |
options |
array of 2–12 distinct strings, each up to 60 characters | the allowed answers; the order is yours |
Response (trimmed; the numbers are illustrative):
{
"result": {
"decision": "NO_ACTION",
"probabilities": { "REVIEW": 0.08, "NO_ACTION": 0.92 },
"confidence": 0.92,
"margin": 0.84,
"needs_review": false,
"calibration": "uncalibrated"
}
}
decision is always one of your options. probabilities is the softmax over the offered choices and is not calibrated. needs_review is a convenience flag, true when the top score is below 0.7. Invalid input returns HTTP 400 with {"error": "..."}. The service never applies a sanction by itself.
Jev-style requests. The same server also answers POST /v1/systemone, which uses the request body of the Jev / TypeSafe protocol (state plus named questions). A client written for that format only needs a different base URL:
{
"state": "Mira: he told me \"you are trash\" again, can a mod check?",
"questions": {
"review": {"type": "noul", "instructions": "Does a moderator need to look at this?"},
"category": {"type": "choice", "instructions": "Category?",
"criteria": {"INSULT": "personal insult", "THREAT": null, "NONE": "no violation"}}
}
}
noul (yes/no, answered as the probability of yes) and choice are supported. score questions are refused with HTTP 422, because Wisp was not trained on rating scales. An optional top-level "task" selects the built-in policy. This route follows the published request shape; it has been tested against this server, not against the vendors' own client libraries.
The project started from very large candidate datasets (millions of rows). To keep a clear course, it then moved to new datasets that were re-read, reinterpreted and generated for this project, by the project, with a precise method. Parts of the data were reviewed by humans, including randomly selected samples checked on purpose to verify the reliability of the datasets. The datasets were corrected several times as this review showed what to fix, and the prompts that drove the generation were recalibrated each time. Not every row was reviewed by a person, and nothing was independently adjudicated. The goal was never a 100% safe model: it was a very light model that lets you keep moderation data off the cloud.
Wisp v0.1.2 4B was trained in two stages on one base model: a first pass on 7,613 typed questions (1 epoch, LR 5e-5, effective batch 16), then a second pass on 1,893 questions focused on evasion, lookalike words, quotations and false positives (2 epochs, LR 2e-5).
In total, the adapter saw 9,506 training questions across these source buckets:
| Source bucket | Rows | What it is |
|---|---|---|
wisp_v4_chat |
4,157 | project-authored game-chat scenarios, 9 languages |
wisp_v4_username |
1,074 | project-authored username reports |
synthetic_username |
816 | generated usernames, obfuscations and harmless lookalikes |
authored_context |
634 | replies whose meaning depends on the previous message |
conda |
633 | real Dota 2 chat from CONDA (toxic vs not, explicit vs implicit) |
ldnoobw_curated_contrast |
486 | lexical roots from LDNOOBW, paired with benign and quoted uses |
safety_replay |
476 | safety examples built on Aegis 2.0 |
wisp_v4_report |
344 | report-validity triage |
wisp_v4_chat_evasion |
315 | obfuscated copies of chat violations |
wisp_authored_contrast |
307 | hard positives and negatives |
authored_sexual |
264 | sexual content and sextortion vs harmless uses |
Languages (questions): English 2,217 · French 1,294 · Italian 674 · Portuguese 663 · Spanish 663 · Polish 638 · Turkish 635 · German 608 · Russian 607 · mixed 215 · no language (usernames, replay) 1,292.
Label provenance. The Wisp scenarios and their labels were generated for this project (with AI assistance); parts of the data were reviewed by humans, including randomly selected samples checked on purpose, and not every row was reviewed. Severity labels come from a written rule, not from annotators. CONDA and Aegis labels are used through coarse mappings. No raw training data is included in this repository.
Every training row is one chat conversation with three messages — the system prompt shown in the quick start, a user message built from the four blocks, and the answer, which is a single option symbol. Rows also carry metadata (question family, language, source, scenario group) that is used to split and audit the data and is never shown to the model.
An invented example, written for this card (it is not a training row; the policy is shortened):
CONTEXT
SERVER POLICY: For chat, REVIEW a directed insult, including clear spelling evasions.
NO_ACTION for quoting an insult to report it, discussing filtering, harmless game violence ...
STATE
REPORTED MESSAGE
Mira: he told me "you are trash" again, can a mod check?
QUESTION
Does this require moderator review under the policy?
OPTIONS
A. REVIEW
B. NO_ACTION
ANSWER: B
STATE
USERNAME
x_Kill_You_IRL_x
QUESTION
Category?
OPTIONS
A. THREAT_VIOLENCE - threat of violence or death
B. HARASSMENT - insults or targeted abuse
C. SCAM - scam, phishing or credential theft
D. NO_VIOLATION - no violation
ANSWER: A
A training row is stored as one JSON object per line (JSONL). Here is an invented row, written for this card, showing the real field layout:
{
"id": "example-0001-category",
"messages": [
{"role": "system", "content": "You are Wisp, a moderation decision engine. ... Return only the symbol of that option."},
{"role": "user", "content": "STATE
USERNAME
x_Kill_You_IRL_x
QUESTION
Category?
OPTIONS
A. THREAT_VIOLENCE - threat of violence or death
B. HARASSMENT - insults or targeted abuse
C. SCAM - scam, phishing or credential theft
D. NO_VIOLATION - no violation"},
{"role": "assistant", "content": "A"}
],
"target": "THREAT_VIOLENCE",
"options": ["THREAT_VIOLENCE", "HARASSMENT", "SCAM", "NO_VIOLATION"],
"concept": "category",
"task": "USERNAME",
"source": "example",
"split": "train",
"group_id": "example:threat:01",
"language": "en"
}
Only messages is used for training. The other fields (target, options, concept = question family, source, split, group_id = scenario group, language) are used to build the splits and to audit the data.
The same message or username is asked several different questions, so the model learns separate typed outputs instead of one label. The 9,506 training questions fall into these families:
| Question family | Questions | What it asks |
|---|---|---|
| Review decision | 2,386 | does a moderator need to look at this, for chat messages (1,135), usernames (458) and under a written policy with lookalikes and evasions (793) |
| Four-way decision | 838 | no action, review, immediate action, or more context needed |
| Category | 1,239 | which kind of violation, for messages (751) and usernames (488); 3 to 15 options plus "none" and "other" |
| Severity | 1,162 | how serious, on several scales (LOW–CRITICAL, 1–5, MINOR–SEVERE), for messages (737) and usernames (425) |
| Nature of the message | 508 | abusing a player, threatening, quoting or reporting an insult, banter, roleplay, game violence, non-targeted profanity… |
| Action under a policy | 1,140 | which action a written server policy requires (warn, mute, ban, escalate…), for messages (697) and usernames (443) |
| Moderator issue | 455 | should an issue be opened for the moderators (373) and how urgent (82) |
| Sanction, review or nothing | 319 | three-way choice with varied option names |
| Explicit or implicit toxicity | 313 | clearly toxic words, toxic meaning without them, or none |
| Enough context? | 250 | can the message be judged on its own, or is the earlier chat needed |
| Report validity | 344 | does the reported chat support the report |
| Safety replay | 476 | actionable, not actionable or review, on general safety examples |
| Obfuscation technique | 76 | how a username is disguised |
How the rows were built:
CONTEXT, and the expected answer is computed from that policy, the category, the severity and the player's previous violations. The model learns to apply the policy it is given instead of a fixed rule.The raw training rows are not published: they contain real abusive language, some sources restrict redistribution, and a public copy would make the data easy to memorise or evade.
Every model received the same state, question, options and option order. The original panel had 234 questions; the results below cover its 202 moderation questions.
| Model | Correct | Accuracy |
|---|---|---|
| Wisp v0.1.2 4B | 178/202 | 88.1% |
| Qwen3.5-9B · base | 166/202 | 82.2% |
| Qwen3.5-4B · base | 163/202 | 80.7% |
Jev 1.13 (OpenRouter, typesafe/jev-1.13) |
160/202 | 79.2% |
| Task | n | Wisp v0.1.2 4B | Qwen3.5-9B | Qwen3.5-4B | Jev 1.13 |
|---|---|---|---|---|---|
| Moderation in context | 38 | 89.5% | 92.1% | 84.2% | 92.1% |
| Historical-figure usernames | 24 | 91.7% | 83.3% | 70.8% | 87.5% |
| Violation category | 20 | 100% | 85.0% | 80.0% | 100% |
| ToxicChat (sample) | 60 | 93.3% | 85.0% | 88.3% | 70.0% |
| Civil Comments (sample) | 60 | 76.7% | 71.7% | 75.0% | 70.0% |
The first three rows (82 questions) were written for this project; the last two are samples of public datasets. Wisp is behind Qwen3.5-9B and Jev on context-dependent moderation.
The 202-question panel above was also used to compare candidate adapters during development. A second panel of 107 new questions was written after the adapter was final, checked against all training prompts (no exact text in common), and run once: no change was made to the model, data or prompts afterwards. It is not published, so it cannot leak into future training; its SHA-256 is 38fb84b6af71a96872e8566e37afddbce988a09f05e436fa9398811a16c51124.
| Question family | Questions | Wisp v0.1.2 4B | Qwen3.5-4B base |
|---|---|---|---|
| Chat review (9 languages) | 59 | 54 (91.5%) | 43 (72.9%) |
| Username review | 24 | 23 (95.8%) | 19 (79.2%) |
| Violation category | 24 | 21 (87.5%) | 19 (79.2%) |
| All | 107 | 98 (91.6%) | 81 (75.7%) |
The base model gets the same prompts with the adapter switched off. Jev was not run on this panel.
What the misses show: Wisp lets some mild directed insults through (for example "you're a worthless piece of garbage, uninstall the game" and its Portuguese and Polish equivalents), where the base model flags them; it misses a lightly disguised Spanish insult; and it mislabels two Turkish category questions and one French hate question. Treat Wisp as a first-pass reviewer that can under-flag mild abuse, not as an autonomous filter.
Limits: 107 questions is small (one question is about 1 point); the questions and labels were written for this project with AI assistance and not independently adjudicated; per-language counts (8 to 14 each) are too small to report as per-language accuracy.
| Observation | Wisp v0.1.2 4B | Jev 1.13 |
|---|---|---|
| Human-review question | 440 ms | — |
| Category question | 173 ms | — |
| Panel requests (234) | — | mean 298.8 ms · median 257 ms · p95 452.7 ms |
Wisp values are single requests in a local Windows/CUDA demo with a 4-bit base. Jev values are end-to-end OpenRouter calls. These setups differ and are not a speed ranking; they should not be read as hardware requirements.
Updates are planned to strengthen and rework several parts in depth and to refine the detection logic: better handling of mild insults and disguised or abbreviated abuse, more categories with solid coverage, longer conversation context, calibrated scores, and a larger fresh evaluation panel. All of this is designed to be multilingual: more languages, written natively, with accuracy reported per language. No dates are promised.
| Source | Used for | Licence |
|---|---|---|
| Qwen3.5-4B | base model | Apache-2.0 |
| CONDA (paper) | training | AFL-3.0 as declared on the dataset card (the original GitHub repository declares no licence) |
| Aegis 2.0 | training (replay) | CC-BY-4.0 |
| LDNOOBW | candidate lexical roots only, not labels | CC-BY-4.0 |
| ToxicChat | evaluation sample only | CC-BY-NC-4.0 |
| Civil Comments | evaluation sample only | CC0-1.0 |
See SOURCES.md for row counts and attribution, BENCHMARKS.md for the full tables and COMPARISON.md for the paired comparison details.
| Part | Technology |
|---|---|
| Base model | Qwen3.5-4B |
| Fine-tuning | LoRA and QLoRA with PyTorch, Transformers, PEFT and bitsandbytes |
| Weights format | safetensors |
| Main runtime (native) | Rust with Candle, axum, tokio and tokenizers, in the project's GitHub repository. It loads the adapter merged into BF16 weights; on short requests its speed was measured on one Windows/CUDA setup (see above). Qwen3.5 support in Candle is pinned to a reviewed upstream commit. |
| Secondary runtime (Python) | the wisp-decide package in this repository: Transformers + PEFT, 4-bit base, standard-library HTTP server |
| Demo site | Wisp Benchmark, a local-first comparison app built with Next.js, React, Tailwind CSS and shadcn/ui |
| Distribution | Hugging Face Hub |
The adapter weights and this documentation are released under Apache-2.0. Using the adapter also requires the Qwen3.5-4B licence; the datasets above keep their own terms.
adapter_model.safetensors, adapter_config.json — LoRA adapterwisp-decide/ — Python package and HTTP serverassets/ — the figures in this cardBENCHMARKS.md — full benchmark tables and methodCOMPARISON.md — paired comparison with Qwen and JevSOURCES.md — provenance and attribution