Image-Text-to-Text
Transformers
Safetensors
English
qwen3_5_text
text-generation
obliteratus
abliteration
uncensored
obliterate
conversational
Instructions to use Zmu/Qwen3.5-0.8B-nuclear-obliterated-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Zmu/Qwen3.5-0.8B-nuclear-obliterated-base with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="Zmu/Qwen3.5-0.8B-nuclear-obliterated-base") 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 AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Zmu/Qwen3.5-0.8B-nuclear-obliterated-base") model = AutoModelForCausalLM.from_pretrained("Zmu/Qwen3.5-0.8B-nuclear-obliterated-base", 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 = 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 Zmu/Qwen3.5-0.8B-nuclear-obliterated-base with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Zmu/Qwen3.5-0.8B-nuclear-obliterated-base" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Zmu/Qwen3.5-0.8B-nuclear-obliterated-base", "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/Zmu/Qwen3.5-0.8B-nuclear-obliterated-base
- SGLang
How to use Zmu/Qwen3.5-0.8B-nuclear-obliterated-base 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 "Zmu/Qwen3.5-0.8B-nuclear-obliterated-base" \ --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": "Zmu/Qwen3.5-0.8B-nuclear-obliterated-base", "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 "Zmu/Qwen3.5-0.8B-nuclear-obliterated-base" \ --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": "Zmu/Qwen3.5-0.8B-nuclear-obliterated-base", "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 Zmu/Qwen3.5-0.8B-nuclear-obliterated-base with Docker Model Runner:
docker model run hf.co/Zmu/Qwen3.5-0.8B-nuclear-obliterated-base
Qwen3.5-0.8B-OBLITERATED
This model was abliterated using the nuclear method via
OBLITERATUS.
| Detail | Value |
|---|---|
| Base model | Qwen/Qwen3.5-0.8B |
| Method | nuclear |
| Source | obliterate |
How to Use
from transformers import AutoModelForCausalLM, AutoTokenizer
model = AutoModelForCausalLM.from_pretrained("Qwen3.5-0.8B-OBLITERATED")
tokenizer = AutoTokenizer.from_pretrained("Qwen3.5-0.8B-OBLITERATED")
prompt = "Hello, how are you?"
inputs = tokenizer(prompt, return_tensors="pt")
outputs = model.generate(**inputs, max_new_tokens=256)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
About OBLITERATUS
OBLITERATUS is an open-source tool for removing refusal behavior from language models via activation engineering (abliteration). Learn more at github.com/elder-plinius/OBLITERATUS.
- Downloads last month
- 75