Penalizing "wait" and "maybe" in llama.cpp

A r/LocalLLaMA user showed on Qwen3.5-4B that slightly penalizing tokens for words like "wait," "maybe" and "perhaps" (less hedging in reasoning) improves accuracy on 50 MATH-500 tasks, building on Meta's research. A small test, but the trick is easy to try yourself.

How to try it

  1. Install llama.cpp and download Qwen_Qwen3.5-4B-GGUF from Hugging Face (bartowski)
  2. Run llama-cli with a series of --logit-bias ID-2 flags for the token IDs listed in the post (full list at the link)
  3. Compare answers on the same tasks with and without the penalty

Price: free

Official link

More new tools