Skip to content
davila7 avatar

Nowait Reasoning Optimizer

Inference-time logit processor that suppresses reflection tokens to cut reasoning chain length in R1-style models.

CCM score
63 of 100
skills.sh installs
438
GitHub stars
34.3K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers the NOWAIT technique for suppressing self-reflection tokens such as "Wait", "Hmm", and "Alternatively" during decoding
  • Includes a NOWAITLogitProcessor for Hugging Face Transformers and a get_nowait_bad_words_ids helper for vLLM, plus a keyword reference list
  • Expands each keyword to all vocabulary variants, such as " wait", "Wait", and "WAIT", and sets their logits to negative infinity during decoding
  • Designed for RL-trained reasoning models like QwQ-32B, Phi4-Reasoning-Plus, and Qwen3-32B; distilled Qwen3 variants may lose accuracy on hard tasks

Install

$ npx -y skills add davila7/claude-code-templates --skill nowait-reasoning-optimizer -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Inference-time logit processor that suppresses reflection tokens to cut reasoning chain length in R1-style models. Covers the NOWAIT technique for suppressing self-reflection tokens such as "Wait", "Hmm", and "Alternatively" during decoding. Includes a NOWAITLogitProcessor for Hugging Face Transformers and a get_nowait_bad_words_ids helper for vLLM, plus a keyword reference list. Expands each keyword to all vocabulary variants, such as " wait", "Wait", and "WAIT", and sets their logits to negative infinity during decoding. Designed for RL-trained reasoning models like QwQ-32B, Phi4-Reasoning-Plus, and Qwen3-32B; distilled Qwen3 variants may lose accuracy on hard tasks.

Browse the repository on GitHub

Details

Repository
github.com/davila7/claude-code-templates
Categories
AI Agents & LLM Apps, Data Science & Analytics
First seen
Jun 3, 2026

More from davila7/claude-code-templates

All 398

Similar to Nowait Reasoning Optimizer

More AI Agents & LLM Apps