Skip to content

[Kernel] Phase 4 (quantization): move JIT quant ops into kernels.ops.quantization (RFC #29630) - #31697

Closed
BBuf wants to merge 6 commits into
sgl-project:mainfrom
BBuf:bbuf/kernels-phase4-quantization
Closed

BBuf wants to merge 6 commits into
sgl-project:mainfrom
BBuf:bbuf/kernels-phase4-quantization

Conversation

@BBuf

@BBuf BBuf commented Jul 19, 2026

Copy link
Copy Markdown
Collaborator

RFC #29630 Phase 4 for quantization (stacked on #31666). per_tensor_quant_fp8 / per_token_group_quant_8bit / per_token_group_quant_8bit_v2kernels.ops.quantization._jit_*; fp8_kernel.py + KernelSpec target repointed; compat shims at old paths. csrc stays in jit_kernel. Invariant CLEAN; 68 CPU tests pass; lint clean.

🤖 Generated with Claude Code


CI States

Latest PR Test (Base): ⏳ Run #29840580100
Latest PR Test (Extra): ⏳ Run #29840580683

…jit (RFC sgl-project#29630)

Relocates the shared JIT build/runtime infrastructure (compile pipeline, arch
detection, deps, common utils) from sglang.jit_kernel.utils to an internal
sglang.kernels._jit package. Behavior unchanged:

- KERNEL_PATH already resolves via find_spec('sglang.jit_kernel'), so csrc/ and
  include/ (the per-op C++ sources + shared headers) and every JIT operator
  stay in sglang.jit_kernel; the build root is unaffected.
- ~90 'sglang.jit_kernel.utils' import sites rewritten to 'sglang.kernels._jit'.
- __main__ build CLI stays at sglang.jit_kernel (invocation unchanged).

Operators are not touched here; they migrate group-by-group in Phase 4. Namespace
import stays metadata-only (invariant CLEAN); 68 kernels tests pass; lint clean.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@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!

@github-actions github-actions Bot added quant LLM Quantization lora hicache Hierarchical Caching for SGLang blackwell SM100/SM120 jit-kernel labels Jul 19, 2026
…nels.ops.quantization (RFC sgl-project#29630)

per_tensor_quant_fp8 / per_token_group_quant_8bit(_v2) -> kernels.ops.quantization._jit_*;
fp8_kernel.py imports + KernelSpec target repointed; compat shims at old paths
(removed Phase 5). csrc stays in jit_kernel. Stacked on sgl-project#31666. Invariant CLEAN; 68 tests pass.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@BBuf
BBuf force-pushed the bbuf/kernels-phase4-quantization branch from b7b51de to 4531b4b Compare July 21, 2026 13:13
@BBuf
BBuf requested a review from yizhang2077 as a code owner July 21, 2026 13:13
@BBuf BBuf added the run-ci label Jul 21, 2026
BBuf and others added 2 commits July 21, 2026 21:53
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@BBuf

BBuf commented Jul 22, 2026

Copy link
Copy Markdown
Collaborator Author

Consolidated into #31666 (single PR for the whole Phase 3+4 JIT-namespace move, per maintainer request). Closing this in favor of #31666.

@BBuf BBuf closed this Jul 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

blackwell SM100/SM120 bypass-fastfail bypass-maintenance enable-retry Enable retry logic for CI tests hicache Hierarchical Caching for SGLang jit-kernel lora quant LLM Quantization run-ci run-ci-extra

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant