Qwen3.5-2B-Unloop

OCC

GitHub  |  GGUF

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.

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.

MetricBaseUnloopRelative reduction
Looping, LoopScore11.72%5.18%55.8%
Looping, LiquidAI detector1.03%0.23%77.4%
Hit the token limit18.67%9.67%48.2%

Benchmarks

BenchmarkScore ↑Mean output tokens ↓Median tokens
BaseUnloopBaseUnloopReductionReduction
Knowledge & STEM
MMLU-Pro67.667.07,8295,39631.1%35.9%
GPQA Diamond60.561.014,11710,83223.3%22.9%
MATH-50065.079.017,77010,29342.1%61.7%
AIME 202634.743.367,80247,37530.1%44.7%
Instruction Following
IFBench37.545.913,1288,01439.0%17.5%
General Agent
BFCL MT*24.826.14,0343,12922.4%25.9%
τ²-bench49.150.66,7814,89727.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 reproduce

Serving: 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.

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.

Scores across sampling temperatures for Qwen3.5-2B and Unloop on GPQA Diamond, IFBench, MATH-500 and AIME 2026

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.

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

Transformers

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

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.

Downloads last month
15
Safetensors
Model size
2B params
Tensor type
F32
·
BF16
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for occ-ai/Qwen3.5-2B-Unloop

Finetuned
Qwen/Qwen3.5-2B
Finetuned
(741)
this model
Quantizations
1 model

Collection including occ-ai/Qwen3.5-2B-Unloop