mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #4296] [Other] setup: keep the Unsloth env when a hipBLASLt table is found #4988
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#4988
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/4296
Author: @AMV007
Created: 10/27/2026
Status: 🔄 Open
Base:
main← Head:fix-hip-env-overwrite📝 Commits (1)
4b266a1setup: a hipBLASLt table found for an AMD card is added to the run config's env instead of replacing it (with a table, UD-Q5/Q6_K_XL lost STRATA_MMQ_KQ=1 and a full-RAM Unsloth install lost STRATA_ROUTE_TAIL_SKIP=0); test📊 Changes
2 files changed (+16 additions, -1 deletions)
View changed files
📝
setup.py(+1 -1)📝
tools/test_setup_unsloth.py(+15 -0)📄 Description
Problem and result
In
main(), whenhipblaslt_table()finds a table for an AMD card, setup setscfg["env"] = {"STRATA_HIPBLASLT_TUNING": ...}. That replaces the envunsloth_default_env()wrote a few lines earlier (since107f9b62). Before: with a table, UD-Q5_K_XL / UD-Q6_K_XL loseSTRATA_MMQ_KQ=1, and a full-RAM Unsloth install losesSTRATA_ROUTE_TAIL_SKIP=0. After: both stay besideSTRATA_HIPBLASLT_TUNING. Cards without a table are unchanged.Related discussion
none
Approach
A one-line change:
cfg.setdefault("env", {})["STRATA_HIPBLASLT_TUNING"] = str(table). This is the same pattern the gfx1103, gfx1150, rocBLAS and resident branches right below already use. No other behaviour changes.Validation
Passed:
tools/test_setup_unsloth.py::Main::test_amd_hipblaslt_table_keeps_the_unsloth_env(R9700, UD-Q5_K_XL, table mocked). On4b9e05a2without the fix it fails withKeyError: 'STRATA_MMQ_KQ'; with the fix it passes.python -m unittest tools.test_setup_unsloth tools.test_setup_golden tools.test_setup_menu tools.test_setup_strix_halo tools.test_setup_amd tools.test_setup_small_card tools.test_setup_choices tools.test_setup_configs tools.test_setup_configon4b9e05a2, Ubuntu, Python 3.12: the same set of results with and without the change.Failed:
4b9e05a2too (the same list before and after the change; they look environment-dependent). No new failure.Not run:
Limits
none
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.