[PR #1931] [CLOSED] fix(hip): add opt-in stability profile for reset reports #3762

Closed
opened 2026-11-07 15:30:34 +07:00 by bsakaguchi · 0 comments
Owner

📋 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)

  • 4ef84a7 fix(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=1 in the server environment to use owned 2K prompt buffers, pageable resident experts, CPU expert misses, checked prefill stream drains, and conservative verify synchronization. Set STRATA_HIP_STABLE=2 to 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.

## 📋 Pull Request Information **Original PR:** https://github.com/Niko1221/Strata/pull/1931 **Author:** [@CC-David-CC](https://github.com/CC-David-CC) **Created:** 10/11/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `work/issue872-pcie-reset` --- ### 📝 Commits (1) - [`4ef84a7`](https://github.com/Niko1221/Strata/commit/4ef84a7830102d13e144292127b98fb078bebd8b) fix(hip): add opt-in stability profile for reset reports ### 📊 Changes **12 files changed** (+336 additions, -24 deletions) <details> <summary>View changed files</summary> 📝 `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) </details> ### 📄 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=1` in the server environment to use owned 2K prompt buffers, pageable resident experts, CPU expert misses, checked prefill stream drains, and conservative verify synchronization. Set `STRATA_HIP_STABLE=2` to 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 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 15:30:34 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#3762
No description provided.