Swapper
A decensored LLM based on Qwen3.5-0.8B
1 min readupdated
Swapper is a decensored model built on top of Qwen/Qwen3.5-0.8B (an 0.8B parameter language model). Instead of standard fine-tuning, it uses weight orthogonalization: projection matrices are modified so that the model mathematically cannot represent or write a "refusal feature." This approach removes censorship without degrading general conversational skills. The model is useful for developers and researchers who need a compact, unrestricted AI model for local execution.
Key features
- Based on the compact Qwen/Qwen3.5-0.8B base model
- Censorship removal via weight orthogonalization (removing the refusal direction)
- Preservation of general conversational capabilities without degradation
- Includes ready-to-use model.safetensors weights, a chat script, and notebooks explaining the method
What you can do
- Run an interactive terminal chat with conversation history support using the included chatbot.py script
- Integrate the model into custom Python scripts for text generation using transformers and torch
- Study the orthogonalization and refusal suppression process in the accompanying Jupyter notebooks
Example
Running an interactive chat from the command line:
git clone https://huggingface.co/jayesh20/swapper
cd swapper
pip install -r requirements.txt
python chatbot.py jayesh20/swapperRead more
DetailsBase model: Qwen/Qwen3.5-0.8B (0.8B parameters)
Files: model.safetensors weights (3.2 GB), config.json, chatbot.py
Method: activation analysis (AdvBench and Alpaca) and weight matrix projection (W' <- (I - r r^T) W)










Comments