Skip to content

ark: add SpargeAttn support#2027

Draft
yiliu30 wants to merge 38 commits into
mainfrom
sparse-attn-prefill-clean-pr
Draft

ark: add SpargeAttn support#2027
yiliu30 wants to merge 38 commits into
mainfrom
sparse-attn-prefill-clean-pr

Conversation

@yiliu30

@yiliu30 yiliu30 commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

https://github.com/thu-ml/SpargeAttn

image

Summary

  • add sparse prefill support in ARK for the supported q-tile paths, including the decoupled q_tile=256 / k_block=64 kernel path
  • add sparse preprocess, sparse SDPA wrappers, kernel benchmark coverage, and sparse prefill e2e tests
  • move ARK example code into auto_round_extension/ark/examples and add Flux/WAN sparse example flows
  • remove legacy Triton sparse backend pieces and clean up sparse profile-mode plumbing
  • add build / benchmark reproduction notes and document recent B70 prefetch and sycl_tla tag validation

Flux Sweep Results

Prompt used for the sweep:
A cat holding a sign that says hello world

3x4 grid preview:

Flux sweep 3x4 grid

Notes

  • the comparison build for SYCL_TLA_GIT_TAG=260630 required an epilogue compatibility shim because newer sycl_tla expects the 8-arg FMHA epilogue call
  • local profiling logs, generated CSVs, sweep images, and scratch build directories were kept out of the PR branch

yiliu30 and others added 26 commits July 7, 2026 06:26
Signed-off-by: yiliu30 <yi4.liu@intel.com>
Signed-off-by: yiliu30 <yi4.liu@intel.com>
Signed-off-by: yiliu30 <yi4.liu@intel.com>
@yiliu30 yiliu30 changed the title ark: add sparse prefill path and examples ark: add SpargeAttn support Jul 8, 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.

1 participant