Skip to content

[NPU] attention: Add packed C8 CopySFA on Ascend950 - #1107

Draft
JinyanYi wants to merge 5 commits into
sgl-project:mainfrom
JinyanYi:feat/ascend950-quant-copy-sfa
Draft

JinyanYi wants to merge 5 commits into
sgl-project:mainfrom
JinyanYi:feat/ascend950-quant-copy-sfa

Conversation

@JinyanYi

@JinyanYi JinyanYi commented Nov 27, 2026 •

Copy link
Copy Markdown

Changes

Read 656-byte packed KV and caller-supplied selection and miss metadata. CopySFA v2 stages short history and current KV, updates resident KV, and computes sparse attention. A standalone Ascend950 test compares staged and preloaded KV in Q1/Q4 eager and graph mode.

Extracted from #1094. The companion framework is sglang#53458.

Validation

The standalone 3510 wheel built and loaded on AArch64 Linux with CANN 9.2 B050 at b4cccf13. The ARCH35 public operator passed Q1/Q4 Meta dispatch with resident staging enabled. The C++ copy schedule test passed. Ascend950 numerical and graph replay tests are pending.

python3 setup.py --arch-version 3510 --ops fused_quant_scatter_copy_sparse_flash_attention --without-third-party
python3 -m pytest -q tests/test_a5_quant_copy_sfa.py

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