Expand description
SiTU-GLU CPU reference.
Official law (K3 tech report Eq. 12), β₁ = activation_situ_beta (4),
β₂ = activation_situ_linear_beta (25):
softcap(x, β) = β * tanh(x / β)
SiTU-GLU(g, u) = (softcap(g, β1) * sigmoid(g)) ⊙ softcap(u, β2)Not SwiGLU. A β=0 mutant is the known-bad: it is unbounded SwiGLU and must diverge.
Functions§
- sigmoid
- silu
- SiLU:
x * sigmoid(x). Used by KDA short-conv. Decayf_ais a plain linear. - situ_
gate - Gate branch:
softcap(x, beta) * sigmoid(x). Bound|·| < |beta|. - situ_
glu - One SiTU-GLU coordinate. Product is bounded by
|β1 * β2|. - situ_
glu_ vec - Elementwise SiTU-GLU over paired gate/up vectors.
- situ_up
- Up branch:
softcap(x, beta_lin). Bound|·| < |beta_lin|. - softcap
- Smooth cap.
betamust be finite and non-zero. - swiglu_
mutant - SwiGLU mutant used as the known-bad:
silu(g) * u(no tanh cap).