Downloads · 30 days
24
4% of all-time downloads
zjml/Qwen3.5-9B-Text-Only-abliterated
Qwen3.5-9B-Text-Only-abliterated is a text generation model from zjml. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
A text-only (vision-tower stripped) variant of Huihui-Qwopus3.5-9B-v3-abliterated, an abliterated (uncensored) reasoning model based on Qwen3.5-9B.
Downloads · 30 days
24
4% of all-time downloads
All-time downloads
672
Public
Parameters
9.2B
18.4 GB on disk
Likes
2
Public
Click a slice to open those files.
.safetensors18.4 GB · 100%
How the weights are stored.
BF169.2B · 100%
From the Hugging Face model README
A text-only (vision-tower stripped) variant of Huihui-Qwopus3.5-9B-v3-abliterated, an abliterated (uncensored) reasoning model based on Qwen3.5-9B.
The original model is a vision-language model (VLM) — it includes a ~0.85 GB vision tower (27-layer ViT) for image/video understanding. Vision capability is unnecessary for pure text tasks and wastes storage, loading time, and VRAM.
This repo provides the text-only checkpoint: the vision tower weights have been stripped at the file level, and the config has been rebuilt for causal language modeling. All text backbone weights are identical to the original — no retraining, no quality loss.
| Original VLM | Text-Only | |
|---|---|---|
| Architecture | Qwen3_5ForConditionalGeneration | Qwen3_5ForCausalLM |
| Vision tower | 27-layer ViT (~0.85 GB) | ❌ Removed |
| Text backbone | 32 layers, 4096 hidden, 9B params | ✅ Identical |
| Disk size | ~18.8 GB | ~17.1 GB |
| VRAM (bf16) | ~18.5 GB | ~17.1 GB |
| VRAM (4-bit) | — | ~5 GB |
--mode f16<think>...</think> chain-of-thoughtpip install transformers>=4.50 bitsandbytes torch
from transformers import AutoModelForCausalLM, AutoTokenizer, BitsAndBytesConfig
import torch
model_path = "your-username/Qwen3.5-9B-Text-Only-abliterated" # or local path
tokenizer = AutoTokenizer.from_pretrained(model_path, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(
model_path,
quantization_config=BitsAndBytesConfig(
load_in_4bit=True,
bnb_4bit_compute_dtype=torch.bfloat16,
bnb_4bit_use_double_quant=True,
bnb_4bit_quant_type="nf4",
),
device_map="auto",
trust_remote_code=True,
)
messages = [
{"role": "user", "content": "你好,请用一句话介绍你自己。"},
]
prompt = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
outputs = model.generate(
**inputs,
max_new_tokens=256,
do_sample=True,
temperature=0.7,
top_p=0.9,
eos_token_id=tokenizer.eos_token_id,
pad_token_id=tokenizer.pad_token_id,
)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
If GPU VRAM < 18 GB and you don't want quantization, use CPU (slow but reliable):
model = AutoModelForCausalLM.from_pretrained(
model_path,
torch_dtype=torch.bfloat16,
trust_remote_code=True,
)
⚠️ Do not use
device_map="auto"with bf16 unless your GPU has ≥18 GB VRAM. The accelerate offloading leaves some layers on "meta device", producing garbled output.
This is a thinking (reasoning) model. Always use the chat template:
<|im_start|>user
你的问题<|im_end|>
<|im_start|>assistant
<think>
[模型在这里进行思维链推理]
</think>
[最终回答]
The tokenizer.apply_chat_template() method handles this automatically. Do not feed raw text directly.
# 1. Install toolkit
pip install git+https://github.com/techwithsergiu/qwen35-toolkit.git
# 2. Strip vision tower
qwen35-strip \
--model ./Huihui-Qwopus3.5-9B-v3-abliterated \
--output ./Qwen3.5-9B-Text-Only-abliterated \
--mode f16
The tool operates at the file level (no model loading):
model.visual.* and related tensors from safetensors shardsvision_config from config.json, sets architecture to Qwen3_5ForCausalLM<think> block first. Use skip_special_tokens=False if you want to inspect the reasoning chain.Apache 2.0 (same as the source model).