Views
No views yet

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 |
1pip install transformers==5.8.0
2# or latest
3pip install git+https://github.com/huggingface/transformers.git1from transformers import Qwen3_5ForConditionalGeneration, AutoProcessor
2import torch
3
4model = Qwen3_5ForConditionalGeneration.from_pretrained(
5 "prithivMLmods/Q3.5-9B-GLM-5.1-DA",
6 torch_dtype="auto",
7 device_map="auto"
8)
9
10processor = AutoProcessor.from_pretrained(
11 "prithivMLmods/Q3.5-9B-GLM-5.1-DA"
12)
13
14messages = [
15 {
16 "role": "user",
17 "content": [
18 {
19 "type": "text",
20 "text": "Solve this step-by-step: If a train travels 240 km in 3 hours, what is its average speed?"
21 }
22 ],
23 }
24]
25
26text = processor.apply_chat_template(
27 messages,
28 tokenize=False,
29 add_generation_prompt=True
30)
31
32inputs = processor(
33 text=[text],
34 padding=True,
35 return_tensors="pt"
36).to("cuda")
37
38generated_ids = model.generate(
39 **inputs,
40 max_new_tokens=512
41)
42
43generated_ids_trimmed = [
44 out_ids[len(in_ids):]
45 for in_ids, out_ids in zip(inputs.input_ids, generated_ids)
46]
47
48output_text = processor.batch_decode(
49 generated_ids_trimmed,
50 skip_special_tokens=True,
51 clean_up_tokenization_spaces=False
52)
53
54print(output_text)Important Note: This model intentionally minimizes built-in safety refusals.