Skip to content

[Kernel] Enable PDL for per_token_group_quant_8bit_kernel - #46508

Merged
jeejeelee merged 4 commits into
mainfrom
quant-kernel-pdl
Jun 25, 2026
Merged

[Kernel] Enable PDL for per_token_group_quant_8bit_kernel#46508
jeejeelee merged 4 commits into
mainfrom
quant-kernel-pdl

Conversation

@jeejeelee

@jeejeelee jeejeelee commented Jun 23, 2026

Copy link
Copy Markdown
Member

Purpose

follow up on #42996

Test Plan

Test Result


Essential Elements of an Effective PR Description Checklist
  • The purpose of the PR, such as "Fix some issue (link existing issues this PR will resolve)".
  • The test plan, such as providing test command.
  • The test results, such as pasting the results comparison before and after, or e2e results
  • (Optional) The necessary documentation update, such as updating supported_models.md and examples for a new model.

jeejeelee and others added 2 commits June 23, 2026 14:31
Signed-off-by: Jee Jee Li <jeejeelee@inferact.ai>
Comment on lines 122 to +163
@@ -153,6 +157,10 @@ __global__ void per_token_group_quant_8bit_kernel(

QuantizeGroup<T, DST_DTYPE>(smem_group, group_output, group_size, lane_id,
threads_per_group, y_s, min_8bit, max_8bit);

#if (defined(__CUDA_ARCH__) && (__CUDA_ARCH__ >= 900))
asm volatile("griddepcontrol.launch_dependents;");
#endif

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I think the wait here needs a memory clobber, otherwise the compiler is free to hoist the input loads above the wait.

I don't think we have a reason for using the raw asm, so I'd recommend using cudaGridDependencySynchronize to replace wait and cudaTriggerProgrammaticLaunchCompletion to replace launch_dependents. We do this in fused_deepseek_v4_qnorm_rope_kv_insert_kernel.cu

@zyongye zyongye added the ready ONLY add when PR is ready to merge/full CI is needed label Jun 23, 2026
Signed-off-by: Jee Jee Li <jeejeelee@inferact.ai>
@jeejeelee
jeejeelee merged commit 23aed9b into main Jun 25, 2026
232 checks passed
@jeejeelee
jeejeelee deleted the quant-kernel-pdl branch June 25, 2026 00:42
qli88 pushed a commit to qli88/vllm that referenced this pull request Jun 26, 2026
…ct#46508)

Signed-off-by: Jee Jee Li <jeejeelee@inferact.ai>
Signed-off-by: Qiang Li <qiang.li2@amd.com>
wincent8 pushed a commit to wincent8/vllm that referenced this pull request Jun 29, 2026
Dao007forever pushed a commit to Dao007forever/vllm that referenced this pull request Jul 18, 2026
philippesic pushed a commit to philippesic/vllm-semantic-cache that referenced this pull request Jul 19, 2026
plasticchris pushed a commit to plasticchris/vllm that referenced this pull request Jul 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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