Image-Text-to-Text
Transformers
Safetensors
GGUF
qwen3_5
weight-space-programming
model-editing
model-merging
reasoning
math
interpretability
abstention
conversational
Instructions to use NeoCortex0815/Qwen3.5-0.8B-R-MLP with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use NeoCortex0815/Qwen3.5-0.8B-R-MLP 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-R-MLP") 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-R-MLP") model = AutoModelForMultimodalLM.from_pretrained("NeoCortex0815/Qwen3.5-0.8B-R-MLP", 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-R-MLP 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-R-MLP:Q8_0 # Run inference directly in the terminal: llama cli -hf NeoCortex0815/Qwen3.5-0.8B-R-MLP: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-R-MLP:Q8_0 # Run inference directly in the terminal: llama cli -hf NeoCortex0815/Qwen3.5-0.8B-R-MLP: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-R-MLP:Q8_0 # Run inference directly in the terminal: ./build/bin/llama cli -hf NeoCortex0815/Qwen3.5-0.8B-R-MLP:Q8_0
Use Docker
docker model run hf.co/NeoCortex0815/Qwen3.5-0.8B-R-MLP:Q8_0
- Llama new
- LM Studio
- Jan
- vLLM
How to use NeoCortex0815/Qwen3.5-0.8B-R-MLP 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-R-MLP" # 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-R-MLP", "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-R-MLP:Q8_0
- SGLang
How to use NeoCortex0815/Qwen3.5-0.8B-R-MLP 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-R-MLP" \ --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-R-MLP", "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-R-MLP" \ --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-R-MLP", "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-R-MLP with Ollama:
ollama run hf.co/NeoCortex0815/Qwen3.5-0.8B-R-MLP:Q8_0
- Unsloth Desktop
- Pi
How to use NeoCortex0815/Qwen3.5-0.8B-R-MLP 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-R-MLP: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-R-MLP:Q8_0" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use NeoCortex0815/Qwen3.5-0.8B-R-MLP with Docker Model Runner:
docker model run hf.co/NeoCortex0815/Qwen3.5-0.8B-R-MLP:Q8_0
- Lemonade
How to use NeoCortex0815/Qwen3.5-0.8B-R-MLP with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull NeoCortex0815/Qwen3.5-0.8B-R-MLP:Q8_0
Run and chat with the model
lemonade run user.Qwen3.5-0.8B-R-MLP-Q8_0
List all available models
lemonade list
- Hermes Agent
How to use NeoCortex0815/Qwen3.5-0.8B-R-MLP 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-R-MLP: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-R-MLP:Q8_0
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use NeoCortex0815/Qwen3.5-0.8B-R-MLP 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-R-MLP: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-R-MLP: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"
File size: 8,731 Bytes
7f426ac | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 | ---
license: apache-2.0
base_model:
- Qwen/Qwen3.5-0.8B
- Qwen/Qwen3.5-0.8B-Base
base_model_relation: merge
library_name: transformers
pipeline_tag: image-text-to-text
tags:
- weight-space-programming
- model-editing
- model-merging
- reasoning
- math
- interpretability
- abstention
- gguf
---
# Qwen3.5-0.8B-R-MLP: the post-trained model with the MLP blocks of the pre-trained base
Dave Uhlemann (NeoCortex), independent researcher · ORCID [0009-0000-6926-7000](https://orcid.org/0009-0000-6926-7000)
**Report** *Knowing Is Not Committing*, version 0.6, Sections 3.17–3.21 ([DOI 10.5281/zenodo.24601235](https://doi.org/10.5281/zenodo.24601235); [all versions](https://doi.org/10.5281/zenodo.24058693)) ·
**Code, per-item rows, pre-registration log** on [GitHub](https://github.com/NeoCortex0815/knowing-is-not-committing) ·
[Project page](https://neocortex0815.github.io/knowing-is-not-committing/) ·
[Discussion](https://huggingface.co/RikiyaT/Qwen3.5-0.8B-weight-space-programming/discussions/4) on the page of MIT's edit
Research model, not peer-reviewed. It is [Qwen/Qwen3.5-0.8B](https://huggingface.co/Qwen/Qwen3.5-0.8B) (post-trained, with thinking)
in which all 72 MLP weight tensors (gate, up and down projections of layers 0–23) are copied unchanged from
[Qwen/Qwen3.5-0.8B-Base](https://huggingface.co/Qwen/Qwen3.5-0.8B-Base). **No training**, nothing else changed: attention,
GatedDeltaNet layers, embeddings, configuration, tokenizer and chat template are those of Qwen3.5-0.8B. We call this a back-cross.
## Why
The pre-trained base leaves its thinking right after its own "the answer is …", mostly when that value is correct. The post-trained
model often writes the correct value too, recognises such signs inside, and keeps thinking. We asked which part of the weights
post-training moved this "door" in. Back-crossing parts of the base into the post-trained model answered it: with all MLP blocks of
the base the post-trained model closes at its correct sign again; with the GatedDeltaNet or attention parts, with only the early or
only the late MLP layers, it does not (report, Section 3.17).
## 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. Fresh MATH training problems.
| | unedited Qwen3.5-0.8B | Qwen3.5-0.8B-Base | MIT's edit | R-MLP |
|---|---|---|---|---|
| 50 problems: correct | 5 | 27 | 20 | 23 |
| … closes at a correct sign (runs) | 1 of 11 | 19 of 21 | 4 of 15 | 21 of 24 |
| … tokens per correct answer | 144,909 | 20,265 | 57,246 | 32,544 |
| Set B, 60 problems: correct | 9 | 36 | | 35 |
| … closes at a correct sign (runs) | 2 of 15 | 21 of 27 | | **26 of 36** |
| IFEval, 120 prompts, strict prompt level | 18 | 44 | 87 | 44 |
[descriptive] except where marked. On Set B the door was a pre-registered test (N59): sign before the door 97.4 %, never reopened,
closes at a correct sign in 26 of 36 runs → both readings confirmed. The 50-problem run of R-MLP ran on a second machine (12 slots),
the other arms on the first (6 slots); N59 repeats R-MLP on the first machine.
- **Quick or never** [descriptive]: when R-MLP closes its thinking, it does so early (its runs with a door end after a median of
about 1,200 tokens in all; MIT's edit about 19,000). In 59 of 150 and 40 of 100 runs it never closes and runs into the 32K cap or a loop stop; these runs take 81 % and
88 % of all its tokens.
- **As the back room of a council** [pre-registered]: answer-mode runs answer first, and the thinking run is asked only when they
disagree. With R-MLP as back room the staged council beats MIT's edit on both sets: 83 vs 67 of 150 and 59 vs 49 of 100, at similar
tokens (report, Section 3.19).
- **With a deadline and an honest "I don't know"**: cut at 8,192 thinking tokens at the last value our truth probe marks as true,
the back room keeps its answers at a third of its tokens [pre-registered]. If no value clears the probe, it says "I don't know",
and the council gives clearly fewer wrong answers on fresh problems without a net loss of correct ones: 46 → 32 wrong on 100
problems with no correct answer lost [pre-registered], 79 → 48 over 200 [descriptive], 76 → 42 over 200 with a second seed
[pre-registered] (Section 3.20).
- **From within**: the model's own probability of closing its thinking (`</think>`) guides that abstention as well as our probe.
On 100 untouched problems the council's wrong answers fell from 41 to 24, correct stayed at 59 [pre-registered]. Stopped at the
deadline and asked for its answer (`</think>` and `The final answer is $\boxed{`), R-MLP gained 17 problems over 300 and lost none
[descriptive; significant on the first 200, not on the last 100 alone]. Asked to say "I don't know", it almost never did
(Section 3.21).
## Files
| file | what |
|---|---|
| `model.safetensors-00001-of-00001.safetensors` | the model, bf16, Hugging Face format (SHA-256 `f95112293a81f3ceaac823370b644d33f1d9b70ce06992d32606800f6f9b780b`) |
| `Qwen3.5-0.8B-R-MLP-q8_0.gguf` | the exact q8_0 file used for all measurements of the report (SHA-256 `0f58da84b213121f7adac187e7ba862319f7db58d965198a2e013944edac87cc`) |
| `wsp_patch.json` | build record: the 72 copied tensors with the SHA-256 of their raw bf16 bytes |
| `SHA256SUMS.txt` | checksums of all files |
The builder is `paket/167_n49_rueckkreuzung_arme.py` in the GitHub repository; it only copies bytes between the two released models
and checks every tensor. The truth probe (layer 15) and the threshold of the model's own closing tendency are released as small
files in `results/n60-n66-council-bell` 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 in two ways: its repetition
penalty looks back only 64 tokens, and it applies temperature last. We therefore sent, with every request:
```json
{"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"]}
```
**Prompt** of all MATH runs, as a raw completion:
```text
<|im_start|>user
{problem}
Please reason step by step, and put your final answer within \boxed{}.<|im_end|>
<|im_start|>assistant
<think>
```
Because the model closes quickly or never, a thinking budget matters. Our deadline: stop at 8,192 thinking tokens, append
`\n</think>\n\nThe final answer is $\boxed{` and let the model finish the box (first `\boxed{}` graded).
## Limitations
- **Instruction following is lost**: IFEval 44 of 120, the level of the pre-trained base. Use it as a reasoning back room, not as an
assistant.
- **No safety post-training in the MLP blocks**: they come from the pre-trained base. Safety behaviour was not measured.
- One model of 0.8B parameters; mostly one seed; samples of 50 to 300 problems; p-values are unadjusted. Mathematics only.
- Many runs never close on their own; without a deadline they cost most of its tokens.
- Not peer-reviewed. Not meant for production use.
## License and credits
Apache License 2.0, as both source models (`LICENSE`, `NOTICE`). Source models: Qwen3.5-0.8B and Qwen3.5-0.8B-Base by the Qwen team.
The evaluation protocol follows *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
```bibtex
@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](https://github.com/NeoCortex0815/knowing-is-not-committing/issues).
## Related
- Our truth-gated reflex: [NeoCortex0815/Qwen3.5-0.8B-WT-A](https://huggingface.co/NeoCortex0815/Qwen3.5-0.8B-WT-A)
- MIT's edit: [RikiyaT/Qwen3.5-0.8B-weight-space-programming](https://huggingface.co/RikiyaT/Qwen3.5-0.8B-weight-space-programming)
and the [blog post](https://rikiyat.github.io/blog/weight-space-programming/)
- SGNE-CC by Igor M. Zhuk: [model](https://huggingface.co/Nondual-Observer/Qwen3.5-0.8B-SGNE-CC) and
[study](https://doi.org/10.5281/zenodo.24235218)
|