Training approach
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.
Unloop family
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:
Evaluation scope
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.
Loop reduction
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.
Benchmarks
Stability across sampling parameters
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.

How to use
Recommended settings
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.
GGUF
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 torchfrom 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
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.
Optional MTP decoding
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.
License
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.
Citation
@misc{qwen35-2b-unloop, title = {Qwen3.5-2B-Unloop}, author = {OCC AI}, year = {2026}, url = {https://huggingface.co/occ-ai/Qwen3.5-2B-Unloop}}
Acknowledgements
Thanks to the Qwen team for Qwen3.5, and to LiquidAI for the Antidoom work and Antidoom-mix prompt dataset.