Skip to content

Revert max_size from 1GB to 128MB to fix KV cache regression#2737

Draft
AMD-yanfeiwang wants to merge 1 commit intoROCm:mainfrom
AMD-yanfeiwang:fix/revert-max-size-128mb
Draft

Revert max_size from 1GB to 128MB to fix KV cache regression#2737
AMD-yanfeiwang wants to merge 1 commit intoROCm:mainfrom
AMD-yanfeiwang:fix/revert-max-size-128mb

Conversation

@AMD-yanfeiwang
Copy link
Copy Markdown
Contributor

The max_size change in 8cfe5e2 (102410241024 = 1GB) causes:

  1. Prefill allreduce dispatch change: QuickReduce INT8 -> custom_all_reduce
  2. GPU memory increase: +3.6GB/GPU for allreduce buffers
  3. KV cache reduction: -75K tokens (-1.68%), -2.47GB

This causes MTP accept rate regression at C>=2 (-810%) and throughput regression (-410%) while only C=1 improves slightly.

Reverting to 819210248*2 = 128MB restores the old dispatch behavior and recovers full KV cache capacity.

Motivation

Technical Details

Test Plan

Test Result

Submission Checklist

The max_size change in 8cfe5e2 (1024*1024*1024 = 1GB) causes:
1. Prefill allreduce dispatch change: QuickReduce INT8 -> custom_all_reduce
2. GPU memory increase: +3.6GB/GPU for allreduce buffers
3. KV cache reduction: -75K tokens (-1.68%), -2.47GB

This causes MTP accept rate regression at C>=2 (-8~10%) and
throughput regression (-4~10%) while only C=1 improves slightly.

Reverting to 8192*1024*8*2 = 128MB restores the old dispatch
behavior and recovers full KV cache capacity.
@github-actions
Copy link
Copy Markdown
Contributor

🏷️ CI Guide

Runs automatically on every PR:

  • ✅ Pre-checks (submodule verification, code formatting)
  • ✅ Aiter op tests (gfx942 + gfx950)
  • ✅ Triton tests (only when aiter/ops/triton/** or related paths are changed)

Extended tests (opt-in via labels):

Label Tests
ci:triton-355 Run Triton tests on MI355 in addition to MI325
ci:sglang SGLang integration tests
ci:atom ATOM benchmark (DeepSeek-R1 + GPT-OSS)
ci:vllm vLLM benchmark
ci:all All of the above

Add labels via the sidebar or gh pr edit 2737 --add-label <label>

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