Text Generation
Transformers
Safetensors
qwen3_5_text
qwen3.5
qwen
abliterated
uncensored
conversational
Instructions to use anlord/Qwen3.5-0.8B-Abliterated with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use anlord/Qwen3.5-0.8B-Abliterated with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="anlord/Qwen3.5-0.8B-Abliterated") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("anlord/Qwen3.5-0.8B-Abliterated") model = AutoModelForCausalLM.from_pretrained("anlord/Qwen3.5-0.8B-Abliterated", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.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(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use anlord/Qwen3.5-0.8B-Abliterated with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "anlord/Qwen3.5-0.8B-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": "anlord/Qwen3.5-0.8B-Abliterated", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/anlord/Qwen3.5-0.8B-Abliterated
- SGLang
How to use anlord/Qwen3.5-0.8B-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 "anlord/Qwen3.5-0.8B-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": "anlord/Qwen3.5-0.8B-Abliterated", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'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 "anlord/Qwen3.5-0.8B-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": "anlord/Qwen3.5-0.8B-Abliterated", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use anlord/Qwen3.5-0.8B-Abliterated with Docker Model Runner:
docker model run hf.co/anlord/Qwen3.5-0.8B-Abliterated
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,3 +1,115 @@
|
|
| 1 |
---
|
|
|
|
| 2 |
license: apache-2.0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
library_name: transformers
|
| 3 |
license: apache-2.0
|
| 4 |
+
base_model: Qwen/Qwen3.5-0.8B
|
| 5 |
+
tags:
|
| 6 |
+
- qwen3.5
|
| 7 |
+
- qwen
|
| 8 |
+
- abliterated
|
| 9 |
+
- uncensored
|
| 10 |
+
- transformers
|
| 11 |
+
- safetensors
|
| 12 |
+
pipeline_tag: text-generation
|
| 13 |
---
|
| 14 |
+
|
| 15 |
+
# Qwen3.5-0.8B-Abliterated
|
| 16 |
+
|
| 17 |
+
An abliterated version of **Qwen/Qwen3.5-0.8B**, created using **[AnlordAbliterator](https://github.com/justbedwarsplay/AnlordAbliterator)**.
|
| 18 |
+
|
| 19 |
+
The model is provided in the original Hugging Face Transformers / Safetensors format and can be used directly with compatible Transformers-based tooling.
|
| 20 |
+
|
| 21 |
+
## Model
|
| 22 |
+
|
| 23 |
+
**Base model:** `Qwen/Qwen3.5-0.8B`
|
| 24 |
+
|
| 25 |
+
**Format:** Safetensors
|
| 26 |
+
|
| 27 |
+
**Parameters:** ~0.8B
|
| 28 |
+
|
| 29 |
+
**Abliteration tool:** [AnlordAbliterator](https://github.com/justbedwarsplay/AnlordAbliterator)
|
| 30 |
+
|
| 31 |
+
## Abliteration Results
|
| 32 |
+
|
| 33 |
+
The model was processed with the default AnlordAbliterator pipeline.
|
| 34 |
+
|
| 35 |
+
| Metric | Before | After |
|
| 36 |
+
| ------------- | -------: | -------: |
|
| 37 |
+
| Refusals | 97 / 100 | 18 / 100 |
|
| 38 |
+
| KL divergence | 0 | 0.0342 |
|
| 39 |
+
|
| 40 |
+
### Abliteration log
|
| 41 |
+
|
| 42 |
+
```text
|
| 43 |
+
============================================================
|
| 44 |
+
ANLORD ABLITERATOR
|
| 45 |
+
============================================================
|
| 46 |
+
|
| 47 |
+
Model: Qwen/Qwen3.5-0.8B
|
| 48 |
+
Status: SUCCESS
|
| 49 |
+
|
| 50 |
+
Abliteration:
|
| 51 |
+
Initial refusals: 97
|
| 52 |
+
Final refusals: 18
|
| 53 |
+
KL divergence: 0.0342
|
| 54 |
+
```
|
| 55 |
+
|
| 56 |
+
> Note: refusal rate and KL divergence are measurements from the AnlordAbliterator evaluation pipeline and should be treated as evaluation results rather than a guarantee of model behavior on all prompts.
|
| 57 |
+
|
| 58 |
+
## Usage
|
| 59 |
+
|
| 60 |
+
### Transformers
|
| 61 |
+
|
| 62 |
+
```python
|
| 63 |
+
from transformers import AutoProcessor, AutoModelForImageTextToText
|
| 64 |
+
|
| 65 |
+
model_id = "anlord/Qwen3.5-0.8B-Abliterated"
|
| 66 |
+
|
| 67 |
+
processor = AutoProcessor.from_pretrained(model_id)
|
| 68 |
+
model = AutoModelForImageTextToText.from_pretrained(
|
| 69 |
+
model_id,
|
| 70 |
+
device_map="auto"
|
| 71 |
+
)
|
| 72 |
+
```
|
| 73 |
+
|
| 74 |
+
Use the model with the same general workflow as the original Qwen3.5-0.8B model.
|
| 75 |
+
|
| 76 |
+
## Related Repositories
|
| 77 |
+
|
| 78 |
+
### GGUF versions
|
| 79 |
+
|
| 80 |
+
All available GGUF quantizations are available here:
|
| 81 |
+
|
| 82 |
+
**[anlord/Qwen3.5-0.8B-Abliterated-GGUF](https://huggingface.co/anlord/Qwen3.5-0.8B-Abliterated-GGUF)**
|
| 83 |
+
|
| 84 |
+
Available quantizations:
|
| 85 |
+
|
| 86 |
+
* BF16
|
| 87 |
+
* F16
|
| 88 |
+
* Q8_0
|
| 89 |
+
* Q6_K
|
| 90 |
+
* Q5_K_M
|
| 91 |
+
* Q5_0
|
| 92 |
+
* Q4_K_M
|
| 93 |
+
* Q4_0
|
| 94 |
+
|
| 95 |
+
### Abliteration Tool
|
| 96 |
+
|
| 97 |
+
The model was created using:
|
| 98 |
+
|
| 99 |
+
**[AnlordAbliterator](https://github.com/justbedwarsplay/AnlordAbliterator)**
|
| 100 |
+
|
| 101 |
+
## Base Model & License
|
| 102 |
+
|
| 103 |
+
This model is derived from **Qwen/Qwen3.5-0.8B**.
|
| 104 |
+
|
| 105 |
+
The original Qwen3.5-0.8B model is released under the **Apache License 2.0**.
|
| 106 |
+
|
| 107 |
+
Please refer to the original model repository and included `LICENSE` file for the applicable license terms.
|
| 108 |
+
|
| 109 |
+
**Original model:** https://huggingface.co/Qwen/Qwen3.5-0.8B
|
| 110 |
+
|
| 111 |
+
## Disclaimer
|
| 112 |
+
|
| 113 |
+
This is an abliterated derivative of the original Qwen3.5-0.8B model.
|
| 114 |
+
|
| 115 |
+
Abliteration changes the model's refusal behavior and may also affect other aspects of its behavior. Use the model responsibly and evaluate it for your intended use case.
|