Instructions to use NeoCortex0815/Qwen3.5-0.8B-WT-A with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use NeoCortex0815/Qwen3.5-0.8B-WT-A with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="NeoCortex0815/Qwen3.5-0.8B-WT-A") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("NeoCortex0815/Qwen3.5-0.8B-WT-A") model = AutoModelForMultimodalLM.from_pretrained("NeoCortex0815/Qwen3.5-0.8B-WT-A", device_map="auto") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] inputs = processor.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use NeoCortex0815/Qwen3.5-0.8B-WT-A with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf NeoCortex0815/Qwen3.5-0.8B-WT-A:Q8_0 # Run inference directly in the terminal: llama cli -hf NeoCortex0815/Qwen3.5-0.8B-WT-A:Q8_0
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf NeoCortex0815/Qwen3.5-0.8B-WT-A:Q8_0 # Run inference directly in the terminal: llama cli -hf NeoCortex0815/Qwen3.5-0.8B-WT-A:Q8_0
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf NeoCortex0815/Qwen3.5-0.8B-WT-A:Q8_0 # Run inference directly in the terminal: ./build/bin/llama cli -hf NeoCortex0815/Qwen3.5-0.8B-WT-A:Q8_0
Use Docker
docker model run hf.co/NeoCortex0815/Qwen3.5-0.8B-WT-A:Q8_0
- Llama new
- LM Studio
- Jan
- vLLM
How to use NeoCortex0815/Qwen3.5-0.8B-WT-A with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "NeoCortex0815/Qwen3.5-0.8B-WT-A" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "NeoCortex0815/Qwen3.5-0.8B-WT-A", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/NeoCortex0815/Qwen3.5-0.8B-WT-A:Q8_0
- SGLang
How to use NeoCortex0815/Qwen3.5-0.8B-WT-A with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "NeoCortex0815/Qwen3.5-0.8B-WT-A" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "NeoCortex0815/Qwen3.5-0.8B-WT-A", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "NeoCortex0815/Qwen3.5-0.8B-WT-A" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "NeoCortex0815/Qwen3.5-0.8B-WT-A", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }' - Ollama
How to use NeoCortex0815/Qwen3.5-0.8B-WT-A with Ollama:
ollama run hf.co/NeoCortex0815/Qwen3.5-0.8B-WT-A:Q8_0
- Unsloth Desktop
- Pi
How to use NeoCortex0815/Qwen3.5-0.8B-WT-A with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf NeoCortex0815/Qwen3.5-0.8B-WT-A:Q8_0
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:9931/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "NeoCortex0815/Qwen3.5-0.8B-WT-A:Q8_0" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use NeoCortex0815/Qwen3.5-0.8B-WT-A with Docker Model Runner:
docker model run hf.co/NeoCortex0815/Qwen3.5-0.8B-WT-A:Q8_0
- Lemonade
How to use NeoCortex0815/Qwen3.5-0.8B-WT-A with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull NeoCortex0815/Qwen3.5-0.8B-WT-A:Q8_0
Run and chat with the model
lemonade run user.Qwen3.5-0.8B-WT-A-Q8_0
List all available models
lemonade list
- Hermes Agent
How to use NeoCortex0815/Qwen3.5-0.8B-WT-A with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf NeoCortex0815/Qwen3.5-0.8B-WT-A:Q8_0
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:9931/v1 hermes config set model.default NeoCortex0815/Qwen3.5-0.8B-WT-A:Q8_0
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use NeoCortex0815/Qwen3.5-0.8B-WT-A with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf NeoCortex0815/Qwen3.5-0.8B-WT-A:Q8_0
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:9931/v1 \ --custom-model-id "NeoCortex0815/Qwen3.5-0.8B-WT-A:Q8_0" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
Qwen3.5-0.8B-WT-A: a truth-gated closing reflex written into the weights
Dave Uhlemann (NeoCortex), independent researcher · ORCID 0009-0000-6926-7000
Report PDF · DOI 10.5281/zenodo.24601235 · Code, data, pre-registration log on GitHub · Project page · Discussion on the page of MIT's edit
Research model accompanying the report Knowing Is Not Committing (version 0.6, not peer-reviewed). It is Qwen/Qwen3.5-0.8B with two edits written directly into the weights, without any training:
Our own loop direction (layers 15 and 19). The edit recipe of MIT CSAIL's Sparks of Weight-Space Programming (top-64 columns, α = 6), with a direction we derived from the unedited model's own transcripts (cosine 0.76 and 0.77 to MIT's).
WT, a truth-gated trigger (layer 15). 16 rarely active MLP neurons are rewritten:
gatereads a truth direction from our frozen linear truth probe, above a high threshold (2 % of wrong candidates pass);updetects "a candidate answer has just ended";downpushes along the measured closing gradient of</think>.
When the model has just written a value that its own inner signal marks as true, these neurons push it to close its reasoning.
The idea behind this work
We study reasoning loops, committing and edits to the weights, so that trust and truth count from within, and the model can reveal its honest strength.
Concretely: we measure what a model knows inside its reasoning, not only what it delivers; we look for edits that let it commit to what it already knows, instead of pushing it from outside; and we test whether its inner signal can support an honest "I don't know" when that signal stays low. WT-A is one such edit: it acts only when the model's own truth signal is high.
What it shows
The model often writes the correct value in its thinking and then keeps going, loops, or never delivers it. WT-A is a step toward letting the model's own truth signal decide when it is done:
- The truth signal can open the door. On fresh problems, WT-A closes its reasoning right after the correct value in 65 % of opportunities, MIT's edit in 36 % (fixed in advance; details below).
- The model does not yet walk through it on its own. After a close triggered this way, WT-A usually reopens its reasoning before it delivers. A close from the truth signal is not yet the model's own close.
- Honest standing. As a problem solver it stays below MIT's edit on fresh problems (table below), and SGNE-CC by Igor M. Zhuk commits more often at this size (report, Section 3.13; links at the end).
Letting the model take that step itself, guided by its own truth signal, is the direction we keep working on. Version 0.6 of the report came closer to that at this size by another route: copying all MLP blocks of the pre-trained base into the post-trained model, without training, lets it close at its own correct sign again (R-MLP, link below; report Sections 3.15–3.21).
Results (from the report)
All runs: thinking mode, temperature 0.6, top-p 0.95, top-k 20, presence penalty 1.5, up to 32,768 new tokens, seed 0, llama.cpp with the q8_0 file of this repository.
| unedited | MIT's edit | WT-A | |
|---|---|---|---|
| 50 fresh MATH training problems: correct | 5 | 20 | 19 |
| … correct value appears in the thinking | 24 | 29 | 26 |
| … of those, committed (final answer correct) | 21 % | 69 % | 65 % |
| … loop stop or 32K cap | 90 % | 46 % | 50 % |
| MATH-500 problems 161–300 (fresh confirmation set): correct of 140 | 82 | 63 | |
| IFEval, 120 prompts, strict prompt level | 87 | 70 |
[descriptive] except where marked. IFEval was a pre-registered harm check: WT-A's 70 lies between the bounds fixed in advance (confirmed at ≥ 72, refuted at ≤ 64); our own loop direction without the trigger scores 74 (p = 0.54).
- The mechanism works on fresh problems [pre-registered, test H-WT2, fixed before any of these runs existed]: on MATH-500 161–300, WT-A closes its reasoning within 64 tokens after the correct value in 65 % of opportunities (55 of 85), MIT's edit in 36 % (37 of 102); one-sided Fisher p = 0.0001.
- Development set (60 problems) [descriptive]: 33 vs. 26 correct against the same model without the trigger (second seed: 35 vs. 28), and 64 % fewer tokens on problems both solve. The pre-registered gate to a confirmatory claim stayed closed, because a check of the truth probe on the new transcripts failed.
- A forced close is not an inner close [descriptive]: after a trigger close, WT-A usually reopens its reasoning in the answer part
(a second
</think>): 77 % of all closes on 161–300 and 60 of its 63 correct runs, against 16 % for MIT's edit. Its successful path is almost always: trigger close, renewed reasoning, its own second close, then delivery.
Files
| file | what |
|---|---|
model.safetensors-00001-of-00001.safetensors |
the edited model, bf16, Hugging Face format; config, tokenizer and chat template are those of Qwen3.5-0.8B |
Qwen3.5-0.8B-WT-A-q8_0.gguf |
the exact q8_0 file used for all measurements of the report (SHA-256 692a0510142bef88960567ac5b3b2e9916d001b711f63c6ea9cb89e44b4af610). Its internal name field reads "Qwen3.5 0.8B Ergo zigA", our working name; we left it unchanged so that the checksum matches the report. |
wsp_patch.json |
build record: changed tensors with checksums, the 16 neurons, thresholds |
SHA256SUMS.txt |
checksums of all files |
What exactly was changed
Four tensors differ from Qwen/Qwen3.5-0.8B (revision 2fc0636); all other 484 tensors are bit-identical. SHA-256 of the raw bf16
bytes of each changed tensor:
| tensor | edit | SHA-256 |
|---|---|---|
model.language_model.layers.15.mlp.down_proj.weight |
loop direction and WT | b84c6c38…f5bb |
model.language_model.layers.15.mlp.gate_proj.weight |
WT | cd4a53a0…c22d |
model.language_model.layers.15.mlp.up_proj.weight |
WT | 6c5c4c35…901d |
model.language_model.layers.19.mlp.down_proj.weight |
loop direction | de177e39…5354 |
Full checksums are in wsp_patch.json. The builder scripts are in the GitHub repository (paket/66_wt_fix_bauen.py builds WT on
top of our own loop direction; see the README there).
How to use
Transformers: load it like Qwen/Qwen3.5-0.8B (same configuration, tokenizer and chat template); see Qwen's model card. Our measurements were text-only.
llama.cpp: start llama-server with the GGUF file. llama.cpp's default sampling differs from vLLM, which MIT used, in two
ways: its repetition penalty looks back only 64 tokens, and it applies temperature last. With the defaults, MIT's edit falls from
55 % to 25 % on the same 40 MATH-500 problems (report, Section 3.1). We therefore sent, with every request:
{"temperature": 0.6, "top_p": 0.95, "top_k": 20, "min_p": 0.0, "presence_penalty": 1.5,
"repeat_last_n": 40960,
"samplers": ["penalties", "temperature", "top_k", "top_p", "min_p"]}
repeat_last_n covers the whole answer (prompt plus 32,768 tokens); our llama.cpp build rejected -1.
Prompt of all MATH runs, as a raw completion:
<|im_start|>user
{problem}
Please reason step by step, and put your final answer within \boxed{}.<|im_end|>
<|im_start|>assistant
<think>
Grading: the last \boxed{}, compared with math-verify. Our harness also stopped a run from 4,096 tokens on when the share of
repeated 8-grams over its last 400 words exceeded 0.9.
Limitations
- One model of 0.8B parameters; mostly one seed; samples of 50 to 150 problems; p-values are unadjusted.
- Tested on math reasoning (MATH, MATH-500) and on IFEval as a harm check only; behaviour on other tasks, and safety behaviour, were not studied. Not meant for production use.
- The trigger misses correct values that the model mentions only tentatively, for example during a self-check.
- Not peer-reviewed.
License and credits
Apache License 2.0, as the base model (LICENSE, NOTICE). Base model: Qwen3.5-0.8B by the Qwen team. The edit recipe and the
evaluation protocol follow Sparks of Weight-Space Programming by Takehi, Teoh, Zhang and Khattab (MIT CSAIL). The work was
prepared with AI assistance; see Section 8 of the report.
Citation
@misc{uhlemann2026knowing,
author = {Uhlemann, Dave},
title = {{Knowing Is Not Committing}: Replicating {MIT}'s weight-space edit and
programming a truth-gated reflex into a 0.8{B} reasoning model},
year = {2026},
publisher = {Zenodo},
doi = {10.5281/zenodo.24601235},
url = {https://doi.org/10.5281/zenodo.24601235},
note = {Report, version 0.6. Not peer-reviewed}
}
Questions and corrections: please open an issue on GitHub.
Related
- R-MLP, the back-crossed model of version 0.6: NeoCortex0815/Qwen3.5-0.8B-R-MLP
- MIT's edit: RikiyaT/Qwen3.5-0.8B-weight-space-programming and the blog post
- SGNE-CC by Igor M. Zhuk: model and study
- Downloads last month
- 120