Qwen3.5-2B-Unloop is OCC AI's fine-tune of Qwen3.5-2B, trained to remove loops and inefficient reasoning. On real prompts selected to elicit looping, it cuts looping responses by 55.8% and responses that hit the token limit by 48.2%. Across seven benchmarks it uses 30.8% fewer output tokens on average while raising the mean score from 48.5 to 53.3. It works without a presence penalty and is less sensitive to sampling parameters than the base model.
Loops and inefficient reasoning waste tokens. To detect loops, we developed LoopScore, a metric that counts repeated phrases and marks where the loop begins. We cut the response there and train with Direct Preference Optimization (DPO) to prefer a continuation that moves on to the answer.
The Qwen3.5-Unloop collection includes 0.8B, 2B, 4B, and 9B models fine-tuned from the original Qwen3.5 checkpoints, each with a GGUF version:
All results below compare Qwen3.5-2B with Qwen3.5-2B-Unloop, both in BF16 with thinking on. Each model uses its own recommended sampling settings: the original Qwen settings for the base model and ours for Unloop.
We run both models on the same 6,000 prompts from Antidoom-mix, LiquidAI's collection of real prompts from public datasets, picked because models often loop on them. Each response may use up to 8,192 tokens. We count loops with LoopScore. For comparison, we also report LiquidAI's detector from Antidoom (find_inner_repetition). LoopScore covers more loops (11.72% vs 1.03% of base-model responses) because it also counts phrases that recur with other text in between, not only back-to-back repeats.
| Metric | Base | Unloop | Relative reduction |
|---|---|---|---|
| Looping, LoopScore | 11.72% | 5.18% | 55.8% |
| Looping, LiquidAI detector | 1.03% | 0.23% | 77.4% |
| Hit the token limit | 18.67% | 9.67% | 48.2% |
| Benchmark | Score ↑ | Mean output tokens ↓ | Median tokens | |||
|---|---|---|---|---|---|---|
| Base | Unloop | Base | Unloop | Reduction | Reduction | |
| Knowledge & STEM | ||||||
| MMLU-Pro | 67.6 | 67.0 | 7,829 | 5,396 | 31.1% | 35.9% |
| GPQA Diamond | 60.5 | 61.0 | 14,117 | 10,832 | 23.3% | 22.9% |
| MATH-500 | 65.0 | 79.0 | 17,770 | 10,293 | 42.1% | 61.7% |
| AIME 2026 | 34.7 | 43.3 | 67,802 | 47,375 | 30.1% | 44.7% |
| Instruction Following | ||||||
| IFBench | 37.5 | 45.9 | 13,128 | 8,014 | 39.0% | 17.5% |
| General Agent | ||||||
| BFCL MT* | 24.8 | 26.1 | 4,034 | 3,129 | 22.4% | 25.9% |
| τ²-bench | 49.1 | 50.6 | 6,781 | 4,897 | 27.8% | 24.3% |
* BFCL MT: the multi-turn category of the BFCL benchmark, with 800 tasks in four subsets of 200 (base, missing function, missing parameter and long context).
How to reproduceServing: BF16 · vLLM 0.19.0 · thinking on · output cap 32,768 tokens (AIME 2026: 81,920). For BFCL and τ²-bench, the whole dialogue must fit in a 131,072-token context.
Sampling, Qwen3.5-2B: temperature 1.0 · top_p 0.95 · top_k 20 · min_p 0 · presence_penalty 1.5 · repetition_penalty 1.
Sampling, Qwen3.5-2B-Unloop: temperature 0.6 · top_p 0.95 · top_k 20 · min_p 0 · presence_penalty 0 · repetition_penalty 1.
Scores: percentages, averaged over five seeds; MMLU-Pro is a single run over all 12,032 questions.
Tokens: output tokens, including reasoning. A response that hits the cap is counted at the cap. For agentic benchmarks we sum all model calls in a rollout and leave out simulated-user tokens; medians are taken over the rollouts of all five runs.
τ²-bench: if the model ends its turn with no output, we count the rollout as a failure and leave it out of the token counts. This happens in 4.0% of rollouts for Qwen3.5-2B and 3.5% for Qwen3.5-2B-Unloop.
Unloop's scores change less with sampling temperature than the base model's, even without a presence penalty. Across temperatures 0 to 1, this holds on all four tasks.
One seed per temperature; each panel has its own score axis.
Both models: top_p 0.95 · top_k 20 · no repetition penalty. Presence penalty: 1.5 for Qwen3.5-2B, 0 for Qwen3.5-2B-Unloop.
Use temperature=0.6, top_p=0.95, top_k=20 and presence_penalty=0. Unlike the base model, Unloop does not need a presence or repetition penalty to avoid loops. Use an output budget of 32,768 tokens (81,920 for competition-level math and code).
This is a full Qwen3.5 checkpoint (language model, vision encoder and MTP head) and runs anywhere Qwen3.5-2B runs.
The GGUF version (BF16 to Q4_0, plus the vision projector) works with llama.cpp, Ollama, LM Studio and other GGUF runtimes:
llama-server -hf occ-ai/Qwen3.5-2B-Unloop-GGUF:Q4_K_M --jinja --temp 0.6 --top-p 0.95 --top-k 20 --presence-penalty 0
import torch
from transformers import AutoModelForImageTextToText, AutoProcessor
model_id = "occ-ai/Qwen3.5-2B-Unloop"
processor = AutoProcessor.from_pretrained(model_id)
model = AutoModelForImageTextToText.from_pretrained(model_id, torch_dtype=torch.bfloat16, device_map="auto")
vllm serve occ-ai/Qwen3.5-2B-Unloop \
--max-model-len 262144 \
--reasoning-parser qwen3 \
--enable-auto-tool-choice \
--tool-call-parser qwen3_coder \
--port 8000
Add --language-model-only to skip the vision encoder and free memory for the KV cache.
See the Qwen3.5-2B deployment instructions for installation and other backends.
The weights include the MTP head of Qwen3.5-2B, unchanged. To enable self-speculative decoding in vLLM, append:
--speculative-config '{"method": "qwen3_next_mtp", "num_speculative_tokens": 2}'
The head was trained with the base model, so it may accept fewer draft tokens with Unloop. The outputs are the same either way.
Qwen3.5-2B-Unloop is released under the Apache 2.0 License, the same license as the base model, Qwen3.5-2B.
Only the language model is fine-tuned, with DPO through a LoRA adapter merged into the weights; the vision components are inherited from Qwen3.5-2B unchanged.
@misc{qwen35-2b-unloop,
title = {Qwen3.5-2B-Unloop},
author = {OCC AI},
year = {2026},
url = {https://huggingface.co/occ-ai/Qwen3.5-2B-Unloop}
}
Thanks to the Qwen team for Qwen3.5, and to LiquidAI for the Antidoom work and Antidoom-mix prompt dataset.