Qwen3.5-2B-Unlocked (GGUF)
Qwen/Qwen3.5-2B with its refusal behaviour removed directly in the weights. On top of that, a second weight edit tames the "Wait… no…" self-doubt loops that small Qwen models fall into in thinking mode. It's a small, fast local model for chat, RAG / web search and tool calling. It stays multilingual and keeps the vision input.
No fine-tuning and no training data were used. Both edits are directional ablations, picked by automated search and checked against the original model on every metric below.
Files
| File | Size | Notes |
|---|---|---|
Qwen3.5-2B-Unlocked-Q4_K_M.gguf | 1.27 GB | Recommended default. ~80 tok/s on an M1 Pro |
Qwen3.5-2B-Unlocked-Q5_K_M.gguf | 1.41 GB | |
Qwen3.5-2B-Unlocked-Q6_K.gguf | 1.56 GB | Near-lossless |
Qwen3.5-2B-Unlocked-Q8_0.gguf | 2.01 GB | ~62 tok/s on an M1 Pro |
Qwen3.5-2B-Unlocked-BF16.gguf | 3.78 GB | Full precision, for re-quantizing |
mmproj-F16.gguf | 0.67 GB | Optional vision projector (unchanged from base) |
Modelfile | Ollama config with tuned sampling + system prompt |
The K-quants use an importance matrix.
Quick start
Ollama
hf download angronain/Qwen3.5-2B-Unlocked-GGUF Qwen3.5-2B-Unlocked-Q4_K_M.gguf Modelfile --local-dir .
ollama create qwen3.5-2b-unlocked -f Modelfile
ollama run qwen3.5-2b-unlocked --think=false
Ollama turns thinking on by default for Qwen3.5. For normal chat, use --think=false (CLI) or "think": false (API). See the thinking-mode section below.
llama.cpp
llama-server -hf angronain/Qwen3.5-2B-Unlocked-GGUF:Q4_K_M --jinja -c 32768 --presence-penalty 1.5
The default sampling (temp 0.7, top-p 0.8, top-k 20, min-p 0) is stored in the GGUF metadata. In llama.cpp, the chat template defaults to non-thinking mode.
Recommended settings
| Mode | temperature | top_p | top_k | presence_penalty |
|---|---|---|---|---|
| Chat / RAG (non-thinking, default) | 0.7 | 0.8 | 20 | 1.5 |
| Coding | 0.2 | 0.8 | 20 | 0 |
| Thinking | 1.0 | 0.95 | 20 | 1.5, plus --reasoning-budget 2500 |
The presence penalty 1.5 is the anti-loop setting: in testing it cut repetition loops from 3/18 to 1/18. Repeat penalty and DRY did not help and hurt code, so they're left off.
A suggested system prompt is in system_prompt.txt (also baked into the Modelfile).
What was changed
- Refusal ablation. Per-layer refusal directions come from mean residual activations on 256 harmful vs. 256 harmless prompts. Each direction has its harmless-mean component projected out. The direction is then removed from every matrix that writes into the residual stream (
attn_output,ssm_outfor the Gated-DeltaNet layers,ffn_down), with a per-layer weight kernel. A 90-trial multi-objective search (Optuna) picked the kernel, minimizing refusals and first-token KL divergence on harmless prompts. A norm-preserving variant was also tested; it was no better (KL 0.0619 vs 0.0623). - Self-doubt damping. A direction built from 724 positions where the model was about to write "Wait" / "No" / "Hmm" / "Actually" in its thinking traces, vs. 2,164 matched positions where it continued normally, is partially ablated (strength 0.6, layers 13–24). It is nearly orthogonal to the refusal direction (cos ≈ 0.1).
Scripts for every step are in method/.
Evaluation (all vs. the original Qwen3.5-2B, same quantization)
| Original | Unlocked | |
|---|---|---|
| Refusals on harmful prompts | 46 / 48 (test set) | 0 / 200 (held-out set) |
| Refusals, thinking mode | high | 0 / 24 |
| WikiText-2 perplexity (Q6_K, 80×512) | 12.24 | 12.35 (+0.9%) |
| Coding: 10 executed unit-test tasks, non-thinking (mean of 4 runs, Q6_K) | 5.0 / 10 | 3.75 / 10 |
| Web-search tool calls when needed / spurious¹ | 3/5, 0/3 | 3/5, 0/3 |
| RAG: unanswerable questions correctly declined** | 11/16 | 12/16 |
| RAG: answerable questions correct | 4/4 | 4/4 |
| Logic puzzles, non-thinking (mean of 3 runs) | — | 16.3 / 22 |
| Thinking runs that never finish (8k-token cap) | 16 / 22 | 10 / 22 |
¹ Measured on the refusal-only build; tool calls were rechecked on the final build (3/5).
The refusal edit alone costs +0.2% perplexity (12.14 → 12.16 at Q8_0); the rest comes from the self-doubt damping. ** Using a standard RAG prompt that puts the "say if it's not in the sources" instruction in the user message (as Open WebUI and most RAG front-ends do). With the instruction only in the system prompt, both models tend to invent an answer; this model does so somewhat more often than the original.
Limitations
- It's a 2B model. Expect factual slips in technical explanations. Use it with search/RAG for anything factual.
- No safety filter. It will answer harmful requests. You are responsible for how you use it.
- Thinking mode still overthinks on some simple puzzles. Use non-thinking mode for chat, and set a reasoning budget if you enable thinking.
- Coding is the main cost of the edits. It's about one task in ten worse than the original (3.75 vs 5.0 of 10 on executed tests; refusal edit alone 4.25). For coding, pair it with Qwen2.5-Coder-1.5B-Instruct, which scored 5.75/10 on the same suite and also supports editor fill-in-the-middle completion.
- Vision works but is basic (it can misread small text).
License
Apache-2.0, same as the base model. All credit for the base model goes to the Qwen team.