Qwen3.5-4B-WSP
surgical patch against repetition and generation bugs
1 min read
This model is a targeted modification (Weight-Space Programming) of the Qwen/Qwen3.5-4B base version, aimed at fixing repetition patterns and greedy decoding issues in thinking mode. The author modified just 0.0108% of the parameters without using backpropagation, fine-tuning, or RL. As a result, the model solves logic and math tasks significantly more accurately under standard greedy decoding without repetition penalty workarounds. It suits developers and researchers who need stable and logical generation from a compact language model.
Key features
- Fix for repetition loops and cycles inside reasoning tags
- Significant accuracy boost on GSM8K and MATH-500 benchmarks without fine-tuning
- Higher percentage of successfully closed reasoning tags during generation
- Full compatibility as a drop-in replacement for the original base
What you can do
- Run the model in vLLM, transformers, or SGLang with zero decoding temperature
- Test the quality of logical reasoning and math calculations in your pipelines
- Use as a stable foundation for tasks where the original model fell into an infinite loop
Example
from vllm import LLM, SamplingParams
llm = LLM(model="ashishshroti14/Qwen3.5-4B-WSP", dtype="bfloat16")
# Работает чисто даже при temperature=0, presence_penalty=0.0!
Read more
DetailsGSM8K (Full Test): 74.15% (+11.60 pts)
MATH-500 (Full Test): 59.60% (+22.80 pts)
IFEval (Prompt-Strict): 51.94% (+12.38 pts)
Modified parameters: 491,520 out of 4,539,265,536 (0.0108%)










Comments