mirror of
https://github.com/wassname/jsteer.git
synced 2026-08-21 11:16:33 +08:00
clamp: y += (C - <y,v_hat>)v_hat at all positions -- bounded perturbation regardless of generation length, vs add's per-step accumulation via KV cache. C=0 is directional ablation. Smoke (Qwen3-0.6B, happy/joy): clamp C=+20 stays coherent and on-concept (drifts to 'happiness and joy of my childhood', in Chinese) while add C=+8 already degenerates to 'joyjoyjoy...'. Co-Authored-By: Claudypoo <288921227+claudypoo@users.noreply.github.com>