Skip to content

[AMD] Restore the precise memory fraction for aiter backend - #36656

Closed
billishyahao wants to merge 1 commit into
sgl-project:mainfrom
HaiShaw:restore_memfrac
Closed

billishyahao wants to merge 1 commit into
sgl-project:mainfrom
HaiShaw:restore_memfrac

Conversation

@billishyahao

@billishyahao billishyahao commented Aug 27, 2026 •

Copy link
Copy Markdown
Collaborator

Motivation

For historical CI OOM issue, there is a silent reduction of memory fraction for aiter backend on AMD platform. It should be eliminated so user can provision more HBM memory for kvcache usage. After restoring this, we need to double check the side effect for current AMD CI

Modifications

Accuracy Tests

Speed Tests and Profiling

Checklist

Review and Merge Process

  1. Ping Merge Oncalls to start the process. See the PR Merge Process.
  2. Get approvals from CODEOWNERS and other reviewers.
  3. Trigger CI tests with comments or contact authorized users to do so.
    • Common commands include /tag-and-rerun-ci, /tag-run-ci-label, /rerun-failed-ci
  4. After green CI and required approvals, ask Merge Oncalls or people with Write permission to merge the PR.

CI States

Latest PR Test (Base): ❌ Run #33054619394
Latest PR Test (Extra): ❌ Run #33054619194
Latest PR Test (AMD ROCm 7.2): ❌ Run #33054619369

@bingxche

bingxche commented Aug 31, 2026 •

Copy link
Copy Markdown
Collaborator

Hi @billishyahao , @kkHuang-amd , please take a look at the AI summary of our PR/Nightly tests after removing mem_fraction_static 0.85

PR #36656 removes the long-context AITER adjustment:

effective_mem_fraction = configured_mem_fraction * 0.85

Tested commit: 8a91b3f427cd71f9a5218eae6e8224d279691604

Runs:

Confirmed green-to-red nightly regressions

New AITER OOMs inside already-red nightly jobs

These jobs were already red for other reasons, but the OOM failure mode is new:

Full PR suite: 13 jobs / 17 test files with direct AITER OOMs

Attribution

All listed OOM launches:

  • resolved to AITER;
  • used models with context length greater than 8192;
  • failed while allocating the AITER workspace after KV-cache sizing;
  • would recover more memory under the old ×0.85 rule than the observed allocation deficit.

Therefore these OOMs are high-confidence attributable to removing the AITER memory reserve. Absolute proof would require a same-SHA A/B rerun with only the ×0.85 block restored.

@billishyahao

Copy link
Copy Markdown
Collaborator Author

Replace this with #37242

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.

3 participants