Files
project_6/qwen3_6_scripts/flash_qla_sm70
EX Engine 41aec33955 fix(GDN): gate clamp [-5,0] (decay only) + state clamp ±100
Root cause: gate=3.0 → exp(2.0)=7.389 per step → state explodes even with state clamp 65504
- 65504 * 7.389 = 483900 → re-clamped to 65504 → oscillates at max → output inf

Fix: gate_raw ∈ [-5, 0] so exp(gate) ∈ [0.007, 1.0] — pure decay, never grows
     GateIsExp path: clamp ≤ 1.0 — same invariant
     state ∈ [-100, 100] — tight enough to prevent output overflow

GDN gate is -dt * A_log.exp() where dt>0, A_log>0 → always negative in normal weights.
Clamping to ≤0 enforces this invariant even for pathological inputs.
2026-08-10 04:44:05 +00:00
..