[PR #4793] [Other] setup: the hipBLASLt table joins the config env instead of replacing it #5184

Open
opened 2026-11-07 16:33:18 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/4793
Author: @sdroege
Created: 10/31/2026
Status: 🔄 Open

Base: main ← Head: fix-setup-hipblaslt-env


📝 Commits (1)

  • 0ea6e50 setup: the hipBLASLt table joins the config env instead of replacing it

📊 Changes

2 files changed (+18 additions, -1 deletions)

View changed files

📝 setup.py (+1 -1)
📝 tools/test_setup_unsloth.py (+17 -0)

📄 Description

Problem and result

On an AMD card with a hipBLASLt tuning table, setup.py replaced the config's whole env with {"STRATA_HIPBLASLT_TUNING": ...}. Any env key setup wrote for the install was lost: STRATA_MMQ_KQ=1 for UD-Q5_K_XL, STRATA_HC_Q8=1 on CUDA, STRATA_NO_ARENA_THP=1 on gfx1103. After the fix the table joins the existing env.

none

Approach

cfg.setdefault("env", {})["STRATA_HIPBLASLT_TUNING"] = str(table), so the table joins the existing env instead of replacing it. Only the non-Control HIP path is changed; the Control path is untouched.

Validation

Passed:

  • New test test_hip_keeps_the_env_of_an_all_ram_install in tools/test_setup_unsloth.py: installs the HIP path with a tuning table for UD-Q5_K_XL and checks that STRATA_HIPBLASLT_TUNING and STRATA_MMQ_KQ=1 are both present (0.2.11 no longer writes STRATA_ROUTE_TAIL_SKIP=0 on Linux gfx12).

Failed:

  • none observed

Not run:

  • The full suite on hardware; the test mocks the GPU.

Limits

Only the non-Control HIP path is changed; the Control path is untouched.


🔄 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/4793 **Author:** [@sdroege](https://github.com/sdroege) **Created:** 10/31/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `fix-setup-hipblaslt-env` --- ### 📝 Commits (1) - [`0ea6e50`](https://github.com/Niko1221/Strata/commit/0ea6e50ab6daa341dfb4897073a3e736ee4890a8) setup: the hipBLASLt table joins the config env instead of replacing it ### 📊 Changes **2 files changed** (+18 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `setup.py` (+1 -1) 📝 `tools/test_setup_unsloth.py` (+17 -0) </details> ### 📄 Description ## Problem and result On an AMD card with a hipBLASLt tuning table, `setup.py` replaced the config's whole `env` with `{"STRATA_HIPBLASLT_TUNING": ...}`. Any env key setup wrote for the install was lost: `STRATA_MMQ_KQ=1` for `UD-Q5_K_XL`, `STRATA_HC_Q8=1` on CUDA, `STRATA_NO_ARENA_THP=1` on gfx1103. After the fix the table joins the existing env. ## Related discussion none ## Approach `cfg.setdefault("env", {})["STRATA_HIPBLASLT_TUNING"] = str(table)`, so the table joins the existing env instead of replacing it. Only the non-Control HIP path is changed; the Control path is untouched. ## Validation **Passed:** - New test `test_hip_keeps_the_env_of_an_all_ram_install` in `tools/test_setup_unsloth.py`: installs the HIP path with a tuning table for `UD-Q5_K_XL` and checks that `STRATA_HIPBLASLT_TUNING` and `STRATA_MMQ_KQ=1` are both present (0.2.11 no longer writes `STRATA_ROUTE_TAIL_SKIP=0` on Linux gfx12). **Failed:** - none observed **Not run:** - The full suite on hardware; the test mocks the GPU. ## Limits Only the non-Control HIP path is changed; the Control path is untouched. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
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#5184
No description provided.