Skip to content

Dsv4 sparse prefill optimization by skipping odd tail block#187

Draft
Njuapp wants to merge 5 commits into
deepseek-ai:mainfrom
Njuapp:dsv4-sparse-prefill-stable
Draft

Dsv4 sparse prefill optimization by skipping odd tail block#187
Njuapp wants to merge 5 commits into
deepseek-ai:mainfrom
Njuapp:dsv4-sparse-prefill-stable

Conversation

@Njuapp

@Njuapp Njuapp commented Jun 9, 2026

Copy link
Copy Markdown

Optimize DS v4 prefill HCA kernel by skipping odd tail blocks.

For ISL=8k, we can cut down HCA kernel cost by 20%.

FlamingoPg and others added 5 commits February 17, 2026 00:28
build: replace torch/extension.h with libtorch headers

build: remove torch/python.h include from kerutils tensor helpers

build: avoid utils.h include collision with sgl-kernel

fix: keep FMHACutlassSM100FwdRun ABI and cast internally

compat: convert sparse prefill max_logits/lse back to log2
Co-authored-by: Bruce Wu <mogicianwu@fb.com>
@Njuapp Njuapp changed the title Dsv4 sparse prefill stable Dsv4 sparse prefill optimization by skipping odd tail block Jun 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants