Apply the per-layer SwiGLU limits from the config
Burak Aydın
47485ee
Ling 3.0 configs can set expert_swiglu_limit_list and
share_expert_swiglu_limit_list, but BailingMoeV3MLP ignored them. With a
limit L it now computes down_proj(silu(gate).clamp(max=L) * up.clamp(-L, L)),
as SGLang does. BailingMoeV3SparseMoeBlock takes the layer index and picks
each layer's routed and shared limits; 0, a missing list or an index past its
end mean no limit. Ling-3.0-tiny's lists are null, so this model is
unchanged; the Ling-3.0-flash FP8 / INT4 repos ship this file with the limits
set. Both new constructor arguments are optional and default to the previous
behavior.