Routed expert

Product with the up branch plus one

×

Multiply the activated gate by the bounded up features plus one, feature by feature.

y=a⊙(uˉ+1){\htmlData{light=h product}{y}}={\htmlData{light=activate}{a}}\odot({\htmlData{light=clamp-up}{\bar u}}+1)
in
aa [B batch, T positions, 2880 expert d_ff]uˉ\bar u [B batch, T positions, 2880 expert d_ff]
out
yy [B batch, T positions, 2880 expert d_ff]

The code calls the +1 an extra bias of the linear layer (model.py 255); the model card says its SwiGLU includes “clamping and a residual connection” (§2.2, footnote 1), which the atlas reads as this +1.

Sources

In codeout_glu * (x_linear + 1) · 256

Open pinned code ↗

Direct evidence

The experts’ activation: the gate features are the even features of the projection, counted from zero, the linear features the odd ones; the gate is capped at the limit from above, the linear bounded to ±limit; the gate times the sigmoid of 1.702 times itself, multiplied by the linear plus one.

model.py 249–256 ↗ · openai/gpt-oss @ 5681a6b65526

Excerpt
def swiglu(x, alpha: float = 1.702, limit: float = 7.0):
    x_glu, x_linear = x[..., ::2], x[..., 1::2]
    # Clamp the input values
    x_glu = x_glu.clamp(min=None, max=limit)
    x_linear = x_linear.clamp(min=-limit, max=limit)
    out_glu = x_glu * torch.sigmoid(alpha * x_glu)
    # Note we add an extra bias of 1 to the linear layer
    return out_glu * (x_linear + 1)