Skip to content

[CPU] Explicitly import sgl_kernel in CPU kernel tests - #35119

Merged
mingfeima merged 1 commit into
sgl-project:mainfrom
mingfeima:fix_cpu_test_activation_failure
Aug 18, 2026
Merged

mingfeima merged 1 commit into
sgl-project:mainfrom
mingfeima:fix_cpu_test_activation_failure

Conversation

@mingfeima

@mingfeima mingfeima commented Aug 17, 2026 •

Copy link
Copy Markdown
Collaborator

Motivation

  • CPU tests that call torch.ops.sgl_kernel.* failed when run standalone because the C++ ops are only registered on import sgl_kernel.
  • Some files appeared to work only via a CustomTestCase transitive import; pytest-style tests such as test_activation.py did not.

Checklist

Review and Merge Process

  1. Ping Merge Oncalls to start the process. See the PR Merge Process.
  2. Get approvals from CODEOWNERS and other reviewers.
  3. Trigger CI tests with comments or contact authorized users to do so.
    • Common commands include /tag-and-rerun-ci, /tag-run-ci-label, /rerun-failed-ci
  4. After green CI and required approvals, ask Merge Oncalls or people with Write permission to merge the PR.

CI States

Latest PR Test (Base): ❌ Run #32008014133
Latest PR Test (Extra): ✅ Run #32008056011

@mingfeima mingfeima added intel run-ci CI: run the baseline test suite on this PR cpu cpu backend performance optimization labels Aug 17, 2026
@mingfeima

Copy link
Copy Markdown
Collaborator Author

/tag-and-rerun-ci

@mingfeima
mingfeima merged commit 7f51e6b into sgl-project:main Aug 18, 2026
224 of 280 checks passed
longxin9715 added a commit to longxin9715/sglang that referenced this pull request Aug 18, 2026
…n-transport1

* 'main' of https://github.com/sgl-project/sglang: (255 commits)
  [Perf] Hoist DSv4 draft-extend SWA write locs; unify SWA graph buffer naming (sgl-project#34890)
  [Chore] Move version tag helper to release scripts (sgl-project#35196)
  [DSV4] Turn on mhc post pre fusion by default (sgl-project#35214)
  [diffusion] Per-section LoRA adapters on fused linear layers (sgl-project#34933)
  [XPU] Fix decode graph runner is_current_stream_capturing on non-CUDA devices (sgl-project#35050)
  [AMD] Update amd k3 cookbook for PR#34580 (sgl-project#35263)
  [Diffusion][Refactor] Refactor and extract complex RoPE implementation to layers/rotary_embedding for MOVA DiT (sgl-project#31453)
  refactor: rename chat response token IDs (sgl-project#35225)
  [mem_cache][8/N] refactor: move MambaPoolHost to pool_host.mamba (sgl-project#31180)
  [AMD] Fix Quark Shared Experts Fusion Gate after load-time-override Removal (sgl-project#35200)
  [AMD] Scope the EAGLE greedy-verify TP broadcast to ROCm only (sgl-project#35195)
  [AMD] Add the Kimi-K3 MI35x perf benchmarks in nightly (sgl-project#34985)
  Skip inkling sheared bias under batch invariance (sgl-project#35161)
  [AMD] Optimize KIMI-K3 with Triton MLA decode kernel by tuning the stage-1 geometry for gfx950 (sgl-project#34580)
  [Docs] Enable PD disaggregation for DSV4 low-latency recipes (sgl-project#35224)
  [DCP] Drop the prefill index-selection syncs by taking each rank's rows by stride (sgl-project#35084)
  [Feature] Optimize TP LMHead with All-to-All (sgl-project#32313)
  [XPU] Enable fused GDN QKV split Triton kernel on XPU (sgl-project#30144)
  [CPU] Explicitly import sgl_kernel in CPU kernel tests (sgl-project#35119)
  [diffusion] feat: load quantized H3 text encoder checkpoints (sgl-project#34986)
  ...

# Conflicts:
#	python/sglang/srt/multimodal/processors/base_processor.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cpu cpu backend performance optimization intel run-ci CI: run the baseline test suite on this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant