Downloads · 30 days
17
11% of all-time downloads
ToastyPigeon/Qwen3.5-9B-Antirep
Qwen3.5-9B-Antirep is a text generation model from ToastyPigeon. Use it when you need the model to write or continue text. The card lists the license as apache-2.0.
A merged Qwen3.5-9B model with an anti-repetition DPO (Direct Preference Optimization) adapter baked in. This model reduces the tendency of Qwen3.5-9B to fall into repetitive generation loops, particularly during long…
Downloads · 30 days
17
11% of all-time downloads
All-time downloads
160
Public
Parameters
9B
35.8 GB on disk
Likes
2
Public
Click a slice to open those files.
.safetensors17.9 GB · 100%
From the Hugging Face model README
A merged Qwen3.5-9B model with an anti-repetition DPO (Direct Preference Optimization) adapter baked in. This model reduces the tendency of Qwen3.5-9B to fall into repetitive generation loops, particularly during long-form outputs.
Inspired by ConicCat/Qwen3.5-Antirep-27B.
| Epoch | Avg Loss | Reward Margins | Accuracy |
|---|---|---|---|
| 1 | ~0.065 | ~5 | 100% |
| 2 | ~0.001 | ~10 | 100% |
| 3 | ~0.002 | ~8-13 | 100% |
Tested on prompts that previously triggered repetitive outputs from the base model:
| Model | Repetition Rate | Avg Repetition Score |
|---|---|---|
| Base Qwen3.5-9B | 10% | 0.033 |
| This model | 0% | 0.010 |
The adapter reduces sub-threshold repetition scores by ~50-70% and eliminates hard repetition loops.
from transformers import AutoModelForCausalLM, AutoTokenizer
model = AutoModelForCausalLM.from_pretrained("ToastyPigeon/Qwen3.5-9B-Antirep")
tokenizer = AutoTokenizer.from_pretrained("ToastyPigeon/Qwen3.5-9B-Antirep")
Qwen3.5-9B is a hybrid architecture with 32 layers:
The LoRA adapter targeted all attention projections (GDN: in_proj_qkv, in_proj_z, in_proj_a, in_proj_b, out_proj; standard: q/k/v/o_proj) and all MLP projections (gate/up/down_proj).