Skip to content

refactor: consolidate windowed paging and simplify attention interfaces. - #2917

Merged
liutongxuan merged 1 commit into
xLLM-AI:mainfrom
wai-bao:perf/sliding-window-paging
Dec 2, 2026
Merged

liutongxuan merged 1 commit into
xLLM-AI:mainfrom
wai-bao:perf/sliding-window-paging

Conversation

@wai-bao

@wai-bao wai-bao commented Nov 30, 2026 •

Copy link
Copy Markdown
Collaborator

Description

Use sliding_window and causal in the Python attention interfaces. Keep FIA sparse modes inside the NPU backend and select the draft mode from the speculative algorithm.

Consolidate windowed page-table construction in the paged KV metadata module. Derive capacity from key positions and reuse the backend window policy when selecting a decode graph layout.

Remove unused CUDA piecewise capture parameters and the legacy MLA index-cache scale alias. Inline FlashInfer forwarding helpers while preserving dispatch and tensor layout.

This refactor retains the existing visible tokens, KV page counts, graph capture, and replay behavior.

Change Type

  • Refactor

@wai-bao
wai-bao force-pushed the perf/sliding-window-paging branch 30 times, most recently from e443d91 to 5edd903 Compare December 1, 2026 06:23
@wai-bao
wai-bao force-pushed the perf/sliding-window-paging branch 28 times, most recently from 8d426a9 to 008121c Compare December 2, 2026 04:38
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.

2 participants