-
Notifications
You must be signed in to change notification settings - Fork 755
【Hackathon 10th Spring No.53】[Feature][Kernel] Optimize AppendAttention for discrete head-wise block_idx PR2 [cf] #7718
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
bob-cloudforge
wants to merge
13
commits into
PaddlePaddle:develop
Choose a base branch
from
CloudForge-Solutions:task/h10-053-pr2-discrete-block-idx-v4
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
41debee
feat(append_attn): head-wise SWA recycle + discrete-block-idx ABI
bob-cloudforge 8f421af
fix(t53/pr2): close CUDA-graph capture, swap_states reorder, doc gap
bob-cloudforge eeee930
fix(t53-pr2): read kv_num_heads_local from model_config (warmup-safe)
bob-cloudforge c8890aa
fix(t53-pr2): hotfix block_tables_headwise OOB at backend boundary
bob-cloudforge 3c75f27
fix(t53-pr2): remove CUDA-graph-incompatible OOB assert from forward_…
bob-cloudforge 0a5cb49
fix(t53/pr2): per-head independent block heaps + revert HOTFIX
bob-cloudforge 4e57aab
bench(t53/pr2/v4): kv_cache_ratio 0.35→0.30 — TINY envelope diagnosti…
bob-cloudforge 9f2a7ff
fix(t53/pr2): PD_CHECK INT32 dtype on Python-supplied tensors before …
bob-cloudforge e1b27e2
fix(t53/pr2): assert GQA divisibility before kv_num_heads_global // t…
bob-cloudforge 327a43b
fix(kvcache): use float division in available_gpu_resource for partia…
bob-cloudforge 3a592ac
fix(scheduler): document SWA recycle block-boundary guard
bob-cloudforge 719f62c
fix(t53): unstall V1 scheduler in head-wise mode
bob-cloudforge 3aa6737
fix(t53): available_gpu_resource use is-not-None guard, drop dead leg…
bob-cloudforge File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| # T53 bench workload — KV-bound (not slot-bound); gate: FD_HEAD_WISE_KV_CACHE=1 | ||
| # max_num_seqs raised to 256 so the KV pool, not the slot count, is the bottleneck. | ||
| # kv_cache_ratio: 0.30 → ~24GB KV on A800-80GB (TINY envelope diagnostic per opus v2 verdict). | ||
| # (0.35 deterministic OOM at 78.99GB / index 3408/3689 weights load — 4 identical failures. | ||
| # 0.50 also OOMs. Revert to 0.35 before SMOKE/FULL only after opus comparability decision.) | ||
| # Use with: INPUT_LEN=8192 OUTPUT_LEN=4096 REQUEST_RATE=8 | ||
| # | ||
| max_model_len: 32768 | ||
| max_num_seqs: 256 | ||
| kv_cache_ratio: 0.30 | ||
| tensor_parallel_size: 1 | ||
| max_num_batched_tokens: 32768 | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🟡 建议 此行及下一行包含开发过程调试注释(
TINY envelope diagnostic per opus v2 verdict、4 identical failures、Revert to 0.35 before SMOKE/FULL only after opus comparability decision),不适合进入生产代码库。建议 merge 前将
kv_cache_ratio固定为最终确认值,注释仅保留选取该值的客观理由,删除调试迭代过程记录。