mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #121] [CLOSED] Add gfx1100 HIP support with tuned prefill and bounded expert uploads #2468
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#2468
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/121
Author: @2jztricks
Created: 9/29/2026
Status: ❌ Closed
Base:
main← Head:feat/hip-gfx1100-prefill📝 Commits (8)
8b575c4Add experimental gfx1100 HIP backend and native mmap supportea2a87bAdd tuned gfx1100 prefill and resident expert serving support3a1dca6Load supported native Orca PLE keys and verify real-matrix replayb90591eBound HIP expert uploads with reusable pinned staging014d9fcRecord fresh gfx1100 throughput and validation results9568e78Account for clean reclaimable cache in cgroup resident budgetsd797787docs: record final guarded HIP runtime measurements49d0a4bdocs: keep throughput evidence distinct from task correctness📊 Changes
51 files changed (+5207 additions, -187 deletions)
View changed files
📝
CMakeLists.txt(+255 -102)📝
README.md(+3 -0)➕
cmake/hip_backend.cmake(+58 -0)➕
docs/AMD_HIP.md(+138 -0)➕
docs/AMD_HIP_PERFORMANCE.md(+144 -0)➕
docs/benchmarks/2026-09-29-gfx1100.json(+299 -0)📝
include/strata/core/expert_cache.hpp(+6 -0)📝
include/strata/core/expert_source.hpp(+62 -2)➕
include/strata/hip_compat/cublas_v2.h(+19 -0)➕
include/strata/hip_compat/cuda_fp16.h(+2 -0)➕
include/strata/hip_compat/cuda_runtime.h(+100 -0)➕
include/strata/hip_compat/cuda_runtime_api.h(+2 -0)➕
include/strata/hip_compat/intrinsics.hpp(+125 -0)📝
include/strata/kernels/bf16_bits.hpp(+9 -1)📝
include/strata/kernels/f16_bits.hpp(+9 -1)📝
include/strata/kernels/mrope.hpp(+1 -1)📝
include/strata/kernels/native_qsa_indexer.hpp(+6 -0)📝
include/strata/kernels/rope.hpp(+1 -1)📝
include/strata/platform/direct_file.hpp(+1 -1)📝
include/strata/prefill/gemm.hpp(+2 -0)...and 31 more files
📄 Description
RX 7900 XTX users need a native HIP path and bounded host-memory transfers to serve Flash Next reliably. This replaces #94 with the complete opt-in gfx1100 backend rebased onto current main, adds tuned prefill, and includes fresh performance evidence.
acd4872), preserving upstream borrowing and CUDA paths.Fresh 2026-09-29 measurements on RX 7900 XTX at the unchanged 272 W cap, Orca Flash Next IQ3_XXS, MTP 4, configured 262144 context, 8192 prefill batch:
Each fresh prompt reused zero KV tokens and generated the intentional 128-token cap. All four fresh prompts and four cached follow-ups completed. A newly measured same-session existing HIP runtime control gives 1.80–2.02x prefill and 40–46% lower fresh-request wall time. This is not a comparison against unmodified upstream, and configured 262K capacity is not a full-context benchmark.
Validation: HIP and CUDA executable builds; 29/29 selected HIP CTests; three real IQ3_XXS PLE matrix graph replays; POSIX direct-file queued reads/short EOF/wake/close/reopen test. The two excluded CTests and all measurement conditions, exact source/binary identifiers and sanitized raw timings are documented in
docs/AMD_HIP_PERFORMANCE.md. CUDA has compile validation here, not a new CUDA throughput run. These numerical and capped-throughput tests do not establish coding quality, full-context/vision behavior or mixed-vendor execution.Supersedes #94. Related: #48. No model weights or personal serving/gateway configuration are included.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.