[PR #160] [CLOSED] HIP follow-up: native-pack fixes, type-aware PLE rows, and clean test provisioning #2483

Closed
opened 2026-11-04 02:00:35 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/160
Author: @samuelishida
Created: 9/29/2026
Status: ❌ Closed

Base: main ← Head: pr-121-followup


📝 Commits (9)

  • 556954f hip: Q2_K dequant and embedding gather for native IQ packs
  • 1bca2ee hip: type-aware PLE table rows (Q4_0, Q5_1, IQ4_NL)
  • a88bb4d generate: zero the session state for a native pack before the prompt path
  • a2c06f3 generate: make the diagnostic dumps work on a native pack's own decode path
  • 99744bf hip: hipBLASLt tuning table for gfx1100 @ 100202 (ROCm 7.2.1)
  • fe3b986 tests: provision-gate ple_parity, self-locate the hipBLASLt table, docs
  • b286131 chore: clean rough edges before final overview
  • 3641a93 build: make qsa_prompt_attn.cu compile on HIP-only toolchains
  • 8697c27 chore: neutralize and clarify comments

📊 Changes

20 files changed (+771 additions, -112 deletions)

View changed files

📝 .gitignore (+3 -0)
📝 CMakeLists.txt (+43 -6)
📝 docs/AMD_HIP.md (+40 -0)
📝 docs/AMD_HIP_PERFORMANCE.md (+16 -0)
📝 include/strata/core/verify.hpp (+19 -0)
📝 include/strata/kernels/iq_kernels.hpp (+2 -0)
📝 include/strata/kernels/ngram.hpp (+19 -8)
📝 include/strata/ngram/ple_reader.hpp (+6 -4)
📝 src/core/native_head.cpp (+1 -1)
📝 src/core/verify.cpp (+47 -4)
📝 src/kernels/cuda/iq_kernels.cu (+25 -3)
📝 src/kernels/cuda/qsa_prompt_attn.cu (+14 -14)
📝 src/kernels/ngram.cpp (+125 -32)
📝 src/kernels/ple_parity.cpp (+1 -1)
📝 src/ngram/ple_reader.cpp (+27 -16)
📝 src/program/generate.cpp (+142 -20)
📝 tests/hip/prefill_hipblaslt_gemm.cpp (+40 -3)
➕ tests/hip/q2k_embed_parity.cpp (+122 -0)
➕ tests/python/README.md (+51 -0)
➕ tools/hip/gfx1100-hipblaslt-100202.txt (+28 -0)

📄 Description

Closed in favor of the split PRs requested during review:

  • #166 — build fix: CUDART_INF_F → INFINITY (fixes #157)
  • #167 — session zeroing for native packs
  • #168 — Q2_K embeddings and type-aware PLE table rows
  • #169 — diagnostic dumps under --spec + ple_parity provisioning
  • #170 — hipBLASLt 100202 tuning table

The two review fixes (restore verify loop order; keep host_res gate for --no-capture/--no-token-graph) are in #169.


🔄 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/160 **Author:** [@samuelishida](https://github.com/samuelishida) **Created:** 9/29/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `pr-121-followup` --- ### 📝 Commits (9) - [`556954f`](https://github.com/Niko1221/Strata/commit/556954f887d2d79ea86e08bdd71f1d7e3ff89865) hip: Q2_K dequant and embedding gather for native IQ packs - [`1bca2ee`](https://github.com/Niko1221/Strata/commit/1bca2eee6aa5736163ef04fd875b66b334b28f4c) hip: type-aware PLE table rows (Q4_0, Q5_1, IQ4_NL) - [`a88bb4d`](https://github.com/Niko1221/Strata/commit/a88bb4d2ce542f73f7e676f3a4f1df28bef300fe) generate: zero the session state for a native pack before the prompt path - [`a2c06f3`](https://github.com/Niko1221/Strata/commit/a2c06f33ed120231482bac2b349ae5b5c21a6252) generate: make the diagnostic dumps work on a native pack's own decode path - [`99744bf`](https://github.com/Niko1221/Strata/commit/99744bfd998cef346737bc555d0162148d11f533) hip: hipBLASLt tuning table for gfx1100 @ 100202 (ROCm 7.2.1) - [`fe3b986`](https://github.com/Niko1221/Strata/commit/fe3b986c0ab7ca020422f1673953a5f251b414a0) tests: provision-gate ple_parity, self-locate the hipBLASLt table, docs - [`b286131`](https://github.com/Niko1221/Strata/commit/b28613148b728d2303736082bec49a32decdc67d) chore: clean rough edges before final overview - [`3641a93`](https://github.com/Niko1221/Strata/commit/3641a93fa08f564b2826f80fef7959c944012747) build: make qsa_prompt_attn.cu compile on HIP-only toolchains - [`8697c27`](https://github.com/Niko1221/Strata/commit/8697c27c7e41222517f27e9342c1c6c177e7ca97) chore: neutralize and clarify comments ### 📊 Changes **20 files changed** (+771 additions, -112 deletions) <details> <summary>View changed files</summary> 📝 `.gitignore` (+3 -0) 📝 `CMakeLists.txt` (+43 -6) 📝 `docs/AMD_HIP.md` (+40 -0) 📝 `docs/AMD_HIP_PERFORMANCE.md` (+16 -0) 📝 `include/strata/core/verify.hpp` (+19 -0) 📝 `include/strata/kernels/iq_kernels.hpp` (+2 -0) 📝 `include/strata/kernels/ngram.hpp` (+19 -8) 📝 `include/strata/ngram/ple_reader.hpp` (+6 -4) 📝 `src/core/native_head.cpp` (+1 -1) 📝 `src/core/verify.cpp` (+47 -4) 📝 `src/kernels/cuda/iq_kernels.cu` (+25 -3) 📝 `src/kernels/cuda/qsa_prompt_attn.cu` (+14 -14) 📝 `src/kernels/ngram.cpp` (+125 -32) 📝 `src/kernels/ple_parity.cpp` (+1 -1) 📝 `src/ngram/ple_reader.cpp` (+27 -16) 📝 `src/program/generate.cpp` (+142 -20) 📝 `tests/hip/prefill_hipblaslt_gemm.cpp` (+40 -3) ➕ `tests/hip/q2k_embed_parity.cpp` (+122 -0) ➕ `tests/python/README.md` (+51 -0) ➕ `tools/hip/gfx1100-hipblaslt-100202.txt` (+28 -0) </details> ### 📄 Description Closed in favor of the split PRs requested during review: - #166 — build fix: `CUDART_INF_F` → `INFINITY` (fixes #157) - #167 — session zeroing for native packs - #168 — Q2_K embeddings and type-aware PLE table rows - #169 — diagnostic dumps under `--spec` + `ple_parity` provisioning - #170 — hipBLASLt 100202 tuning table The two review fixes (restore verify loop order; keep host_res gate for --no-capture/--no-token-graph) are in #169. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-04 02:00:35 +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#2483
No description provided.