Downloads · 30 days
22
14% of all-time downloads
prithivMLmods/Q3.5-9B-GLM-5.1-DA
Q3.5-9B-GLM-5.1-DA is a image-text-to-text model from prithivMLmods. Use it for the image-text-to-text task on the model card, and read the license before you ship it in a product. It is set up for transformers. The card lists the license as apache-2.0.
Downloads · 30 days
22
14% of all-time downloads
All-time downloads
161
Public
Parameters
9.4B
18.8 GB on disk
Likes
3
Public
Click a slice to open those files.
.safetensors18.8 GB · 100%
From the Hugging Face model README

Q3.5-9B-GLM-5.1-DA (Qwen3.5 GLM Distilled-Abliterated) is a reasoning-focused model built on top of Qwen/Qwen3.5-9B through the prithivMLmods/Qwen3.5-9B-Unredacted-MAX base. The model is optimized for long-context mathematical reasoning, structured problem solving, and context-aware generation using distilled reasoning traces derived from GLM-5.1 reasoning datasets combined with refusal direction analysis and ablation-based training strategies to reduce internal refusal behaviors while preserving strong reasoning and instruction-following performance.
[!IMPORTANT] This model is intended strictly for research and learning purposes. Due to reduced internal refusal mechanisms, it may generate sensitive or unrestricted content. Users assume full responsibility for how the model is used. The authors and hosting platform disclaim any liability for generated outputs.
[!NOTE] Note: This model is experimental and may generate artifacts.
| Category | Details |
|---|---|
| Base Model | Qwen/Qwen3.5-9B |
| Intermediate Base | prithivMLmods/Qwen3.5-9B-Unredacted-MAX |
| Final Model Size | 9B Parameters |
| Training Type | Distillation + abliteration |
| Objective | Preserve long-context reasoning quality while reducing refusal behaviors and improving mathematical reasoning reliability |
| Reasoning Dataset | Jackrong/GLM-5.1-Reasoning-1M-Cleaned (Subset-Math, 5000 random samples used) |
| Alignment / Evaluation Dataset | prithivMLmods/harm_bench |
| Training Pipeline | TRL (Transformer Reinforcement Learning) |
| Training Focus | Long-context reasoning, mathematical problem solving, logical decomposition, structured chain-of-thought generation |
pip install transformers==5.8.0
# or latest
pip install git+https://github.com/huggingface/transformers.git
from transformers import Qwen3_5ForConditionalGeneration, AutoProcessor
import torch
model = Qwen3_5ForConditionalGeneration.from_pretrained(
"prithivMLmods/Q3.5-9B-GLM-5.1-DA",
torch_dtype="auto",
device_map="auto"
)
processor = AutoProcessor.from_pretrained(
"prithivMLmods/Q3.5-9B-GLM-5.1-DA"
)
messages = [
{
"role": "user",
"content": [
{
"type": "text",
"text": "Solve this step-by-step: If a train travels 240 km in 3 hours, what is its average speed?"
}
],
}
]
text = processor.apply_chat_template(
messages,
tokenize=False,
add_generation_prompt=True
)
inputs = processor(
text=[text],
padding=True,
return_tensors="pt"
).to("cuda")
generated_ids = model.generate(
**inputs,
max_new_tokens=512
)
generated_ids_trimmed = [
out_ids[len(in_ids):]
for in_ids, out_ids in zip(inputs.input_ids, generated_ids)
]
output_text = processor.batch_decode(
generated_ids_trimmed,
skip_special_tokens=True,
clean_up_tokenization_spaces=False
)
print(output_text)
Important Note: This model intentionally minimizes built-in safety refusals.