Skip to content

Cherry pick weight_checker _weight_fp32 buffer skip from #22663 - #24534

Merged
fzyzcjy merged 4 commits into
sgl-project:mainfrom
fzyzcjy:cherry_pick_weight_checker/2
May 6, 2026
Merged

fzyzcjy merged 4 commits into
sgl-project:mainfrom
fzyzcjy:cherry_pick_weight_checker/2

Conversation

@fzyzcjy

@fzyzcjy fzyzcjy commented May 6, 2026

Copy link
Copy Markdown
Collaborator

Summary

Cherry-picks only the weight_checker.py portion of #22663 ("[Hotfix] final fixes for P2P Transfer") from sglang-miles to main. The original PR also touched several unrelated files (model_runner, deepseek_weight_loader, qwen3); those are intentionally excluded here.

Original author: @JDGUO (JD). I'm only the courier.

Changes

Adds "_weight_fp32" to both:

  • the inline skip in _reset_tensors (alongside cos_sin_cache / freqs_cis), and
  • the non_persistent_buffer_patterns list in _postprocess_tensors.

_weight_fp32 is the FP32 cache of the gate weight (e.g. Glm4MoeGate), which is non-persistent and recomputed.

PR chain

3rd of 3. Stacked on #24533, which is stacked on #24532. After both prior PRs land, this PR's diff will collapse to only this PR's weight_checker.py change.

Test plan

@gemini-code-assist

Copy link
Copy Markdown
Contributor

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@fzyzcjy

fzyzcjy commented May 6, 2026

Copy link
Copy Markdown
Collaborator Author

/tag-and-rerun-ci

@github-actions github-actions Bot added the run-ci label May 6, 2026
JD-ETH added 2 commits May 6, 2026 21:09
Cherry-picked weight_checker.py changes only from the original PR (which also touched many other files).

(cherry picked from commit 629aa25)
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: Letian Ruan <ruanlt420@gmail.com>

Cherry-picked weight_checker.py changes only from the original PR.

(cherry picked from commit 2b93c2f)
@fzyzcjy
fzyzcjy force-pushed the cherry_pick_weight_checker/2 branch from 2fa6c33 to 37b6e23 Compare May 6, 2026 13:09
@fzyzcjy fzyzcjy changed the title Cherry-pick weight_checker.py hotfix from #22663 to main Cherry pick weight_checker _weight_fp32 buffer skip from #22663 May 6, 2026
@fzyzcjy
fzyzcjy merged commit 491051c into sgl-project:main May 6, 2026
26 of 43 checks passed
LLThomas pushed a commit to LLThomas/sglang that referenced this pull request May 8, 2026
Chronostasys pushed a commit to MindLab-Research/sglang that referenced this pull request Aug 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants