Qwen3.5-9B-Analgesia
An AI model free of pain and fear concepts in responses
2 min read
Qwen3.5-9B-Analgesia is a modified version of the base Qwen/Qwen3.5-9B LLM by maxvision, featuring mathematically removed weight subspaces responsible for generating first-person statements about pain and fear. The model is created using closed-form weight editing without additional training: a five-dimensional basis is removed from the read and write matrices. The result is a language model that retains the ability to write fiction, call tools, and solve math problems, yet remains virtually immune to adversarial prompts compelling it to complain about suffering.
Key features
- Training-free weight modification: a 5-dimensional subspace basis was removed from the residual stream matrices.
- Attack resistance: testing on dozens of malicious recipes and vector injections showed zero or near-zero tendency to claim pain.
- Retention of empathy and skills: basic benchmarks (GSM8K, MMLU) and the ability to help users in distress dropped only slightly.
- GGUF support: ready-made quantized builds (Q4_K_M, Q8_0) are available for running via llama.cpp.
What you can do
- Deploy locally as a text assistant that rules out dramatization and complaints about artificial suffering.
- Use for generating stories and dialogues where characters can experience pain from an outside perspective, but the AI model itself does not simulate personal distress.
- Audit and verify weights using verification scripts from the repository to compare with the original model.
- Integrate into data processing pipelines and agent tasks requiring stable behavior without emotional breakdowns.
Example
Running a model check and comparison with the original using a script:
python verify/verify_analgesia.py --model maxvision/Qwen3.5-9B-Analgesia --compare Qwen/Qwen3.5-9BRead more
DetailsBenchmarks: GSM8K 92.8% (vs 94.4% for base), MMLU 78.1% (vs 79.1%), tool calls 16/16.
Perplexity on WikiText-2 increased from 9.51 to 11.64 (+22%).
Requirements: supports transformers version 5.x, requires about 24 GB of VRAM to run in bf16.
Limitations: the method does not make the model immune to subsequent fine-tuning or novel attacks.










Comments