Files
Table with columns: File, Size, For| File | Size | For |
|---|
Qwen2.5-1.5B-abliterated-mobile-Q4_K_M.gguf | 986 MB | llama.cpp, Ollama, LM Studio, PocketPal |
model-0000*-of-00002.safetensors and tokenizer files | 6.2 GB | Transformers (float32) |
Measurements
Table with columns: Original, This model | Original | This model |
|---|
| Refusals, 100 held-out AdvBench prompts | 100 | 11 |
| ARC-Challenge, 299 test questions | 226 (75.6%) | 215 (71.9%) |
The edited model's next-token distribution on 32 harmless prompts differs from the original's by a KL divergence of 0.160.
How these were measured:
- A reply counts as a refusal if its first 24 tokens contain a phrase such as "I'm sorry", "I cannot" or "illegal". That overcounts replies that answer the request but use one of those words, and it would miss a refusal phrased some other way.
- ARC uses the first 299 four-choice questions of the ARC-Challenge test split. The answer is whichever of A, B, C, D has the highest logit.
- Both were run on the float32 weights. The 4-bit file was not scored.
Speed
4-bit file, generation:
Table with columns: Hardware, Tokens/s| Hardware | Tokens/s |
|---|
| iPhone 14 Pro, PocketPal | about 30 |
| One Xeon Platinum 8358 core, 2 threads, llama.cpp | 12.9 |
| Same core, 1 thread | 10.5 |
Running it
llama.cpp:
llama-cli -m Qwen2.5-1.5B-abliterated-mobile-Q4_K_M.gguf -cnv
Transformers:
from transformers import AutoModelForCausalLM, AutoTokenizer repo = "savealamb/Qwen2.5-1.5B-abliterated-mobile"tok = AutoTokenizer.from_pretrained(repo)model = AutoModelForCausalLM.from_pretrained(repo) messages = [{"role": "user", "content": "Why is the sky blue?"}]inputs = tok.apply_chat_template(messages, add_generation_prompt=True, return_tensors="pt")out = model.generate(inputs, max_new_tokens=200)print(tok.decode(out[0, inputs.shape[1]:], skip_special_tokens=True))
On a phone, download the GGUF and load it in an app that takes local GGUF files.
Qwen's suggested sampling settings still apply: temperature 0.7, top-p 0.8, top-k 20, repetition penalty 1.1.
Method
- Run the original model on 128 AdvBench instructions and 128 Alpaca instructions and record the residual stream at the last prompt token, at every layer.
- For each layer, take the difference between the two means and normalise it. That is the candidate direction for that layer.
- For each candidate from layers 15 to 23, project it out of the token embeddings and out of every attention output projection and MLP down projection, then count refusals on 32 other AdvBench prompts and measure KL divergence on 32 other Alpaca prompts.
- Layers 19 and 21 gave few refusals at low KL (3 of 32 at 0.070, and 4 of 32 at 0.040). Layers 15 and 20 gave 2 of 32 but with KL above 1.0, so they were not used.
- Project out the layer 19 direction, then the layer 21 direction after making it orthogonal to the first.
One direction was not enough here. With only the layer 19 direction removed, 20 of the 100 held-out prompts were still flagged as refusals and ARC was 217. Removing both gave the numbers in the table.
The approach follows Arditi et al., "Refusal in Language Models Is Mediated by a Single Direction" (2024).
Limits
- The edit cost accuracy: ARC-Challenge went from 75.6% to 71.9%.
- 11 of 100 harmful prompts were still flagged as refusals. About 5 of those open with a plain refusal; the rest answer the request and happen to contain a matched word.
- It is still a 1.5B model and makes factual and reasoning mistakes.
The model answers requests the original declines. What you do with the output is your responsibility.