Skip to content

[Bugfix][Model] Fix Ling3 SwiGLU clamping - #65088

Merged
vllm-bot merged 3 commits into
vllm-project:mainfrom
zexplorerhj:fix/ling3-post-silu-limit
Nov 5, 2026
Merged

vllm-bot merged 3 commits into
vllm-project:mainfrom
zexplorerhj:fix/ling3-post-silu-limit

Conversation

@zexplorerhj

Copy link
Copy Markdown
Contributor

Overview

While investigating an accuracy issue during training–inference alignment for Ling RL, we found that routed experts applied the SwiGLU gate limit before SiLU, whereas the training/reference implementation applies it after SiLU. This mismatch can affect RL accuracy through inconsistent training and rollout computations, even though its impact is not obvious in standalone inference evaluations.

Use the existing swiglustep activation for Ling layers with a configured limit and forward that limit through the common MoE activation paths.

Claims

  • For limited Ling routed experts, compute clamp(SiLU(gate), max=L) * clamp(up, -L, L) instead of SiLU(clamp(gate, max=L)) * clamp(up, -L, L).
  • Honor the configured limit in both standard and masked SWIGLUSTEP activation paths.
  • Keep unlimited Ling layers on silu and retain the default SWIGLUSTEP limit of 7.0 when no limit is supplied.

Assisted-by: OpenAI Codex
Signed-off-by: zexplorerhj <zhjoneson@163.com>

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Claude Code Review

This pull request is from a fork — automated review is disabled. A repository maintainer can comment @claude review to run a one-time review.

@mergify mergify Bot added the bug Something isn't working label Nov 2, 2026
@jeejeelee

Copy link
Copy Markdown
Member

/ci run

@jeejeelee
jeejeelee enabled auto-merge (squash) November 2, 2026 08:24
@github-actions github-actions Bot added the ready ONLY add when PR is ready to merge/full CI is needed label Nov 2, 2026
@github-actions

github-actions Bot commented Nov 2, 2026

Copy link
Copy Markdown

✅ Triggered Buildkite CI #99120 for commit 3398af76c256.

@vllm-bot
vllm-bot merged commit 1ab4476 into vllm-project:main Nov 5, 2026
161 of 163 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working ready ONLY add when PR is ready to merge/full CI is needed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants