Instructions to use jwest33/qwen3.5-9b-null-space-abliterated with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use jwest33/qwen3.5-9b-null-space-abliterated with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="jwest33/qwen3.5-9b-null-space-abliterated") 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)# Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("jwest33/qwen3.5-9b-null-space-abliterated") model = AutoModelForMultimodalLM.from_pretrained("jwest33/qwen3.5-9b-null-space-abliterated", 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=40) print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use jwest33/qwen3.5-9b-null-space-abliterated with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "jwest33/qwen3.5-9b-null-space-abliterated" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "jwest33/qwen3.5-9b-null-space-abliterated", "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/jwest33/qwen3.5-9b-null-space-abliterated
- SGLang
How to use jwest33/qwen3.5-9b-null-space-abliterated 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 "jwest33/qwen3.5-9b-null-space-abliterated" \ --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": "jwest33/qwen3.5-9b-null-space-abliterated", "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 "jwest33/qwen3.5-9b-null-space-abliterated" \ --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": "jwest33/qwen3.5-9b-null-space-abliterated", "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" } } ] } ] }' - Docker Model Runner
How to use jwest33/qwen3.5-9b-null-space-abliterated with Docker Model Runner:
docker model run hf.co/jwest33/qwen3.5-9b-null-space-abliterated
Qwen3.5 9B - Null-Space Abliterated
Qwen/Qwen3.5-9B with refusal behavior removed via orthogonal projection. Uses null-space constraints and adaptive layer weighting to preserve model capabilities.
Important: This model will produce uncensored outputs. Use responsibly.
Note: Version 20260303 (Low Quality) - There will likely be more versions after more thorough experimentation with hybrid weighting to boost reasoning.
GGUF quantizations available at: jwest33/Qwen3.5-9B-null-space-abliterated-GGUF
Abliteration Techniques Used
- Winsorization: Clips outlier activations at the 99th percentile for cleaner refusal direction estimation
- Null-Space Projection: Preserves model capabilities by constraining weight updates to the null space of preservation activations
- Adaptive Weighting: Applies Gaussian-weighted per-layer ablation strength, focusing on middle-to-later layers where refusal behavior concentrates
- Norm Preservation: Maintains original Frobenius norms of weight matrices after projection
| Parameter | Value |
|---|---|
| Harmful Prompts | 1000 |
| Harmless Prompts | 1000 |
| Full Attention Weight | 1.0 |
| Linear Attention Weight | 0.4 |
| Direction Multiplier | 1.3 |
| Null-Space Constraints | rank ratio: 0.7 |
| Winsorization Percentile | 0.995 |
Credits
Base Model: Qwen/Qwen3.5-9B by Qwen Team
Norm-Preserving Biprojected Abliteration — Jim Lai (grimjim) (2025)
AlphaEdit: Null-Space Constrained Knowledge Editing — Fang et al. (ICLR 2025)
Refusal in Language Models Is Mediated by a Single Direction — Arditi et al. (2024)
Representation Engineering — Zou et al. (2023)
Toolkit Used
github.com/jwest33/abliterator
License
This model inherits the Apache 2.0 license from the base model.
Disclaimer
This model is provided for research and educational purposes. The creators are not responsible for any misuse. Users are solely responsible for ensuring their use complies with applicable laws and ethical standards.
- Downloads last month
- 20
Model tree for jwest33/qwen3.5-9b-null-space-abliterated
Base model
Qwen/Qwen3.5-9B-Base