mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #1931] [CLOSED] fix(hip): add opt-in stability profile for reset reports #3762
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#3762
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/1931
Author: @CC-David-CC
Created: 10/11/2026
Status: ❌ Closed
Base:
main← Head:work/issue872-pcie-reset📝 Commits (1)
4ef84a7fix(hip): add opt-in stability profile for reset reports📊 Changes
12 files changed (+336 additions, -24 deletions)
View changed files
📝
CMakeLists.txt(+12 -0)📝
docs/AMD_HIP.md(+32 -0)➕
include/strata/core/hip_stability.hpp(+73 -0)➕
include/strata/core/hip_verify_policy.hpp(+24 -0)📝
include/strata/core/verify.hpp(+1 -0)➕
include/strata/prefill/stream_drain.hpp(+21 -0)📝
src/core/verify.cpp(+32 -12)📝
src/prefill/prefill.cpp(+23 -11)📝
src/program/generate.cpp(+31 -1)➕
tests/prefill/stream_drain_test.cpp(+23 -0)➕
tests/program/hip_stability_test.cpp(+32 -0)➕
tests/program/hip_verify_policy_test.cpp(+32 -0)📄 Description
Long HIP inference can stress host-memory transfers, prompt cache refills, and PCIe traffic. Add an opt-in conservative profile to reduce overlapping host-memory and GPU operations while preserving the requested context and model settings.
Set
STRATA_HIP_STABLE=1in the server environment to use owned 2K prompt buffers, pageable resident experts, CPU expert misses, checked prefill stream drains, and conservative verify synchronization. SetSTRATA_HIP_STABLE=2to additionally reserve the full KV cache in VRAM and disable elastic KV remapping and adaptive expert swaps.Remove the variable and restart the engine to return to normal behavior.
Related to #872: https://github.com/Niko1221/Strata/issues/872
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.