Qwen3.8-Flash-Next on any consumer hardware: one-click install for Windows / Linux. Strata inference engine, OpenAI/Anthropic API on localhost, optional image input.
C++
AMD: hipBLASLt table for 100200 (the pinned ROCm), used by setup's configs (+42-59% prompt speed on the 7900 XTX); server: a config's env reaches the engine
Niko12215cb4ff283d4b
diff --git a/serve/server.py b/serve/server.pyindex 3b81b270c..992f71421 100644--- a/serve/server.py+++ b/serve/server.py@@ -493,6 +493,8 @@ def child_env(cfg: dict) -> dict:elif gpu_list(cfg): # issue #51: the GPU(s) to run on, numbered as nvidia-smi does; CUDA'senv["CUDA_DEVICE_ORDER"] = "PCI_BUS_ID" # own default order (fastest first) can number the cards otherwiseenv["CUDA_VISIBLE_DEVICES"] = ",".join(str(i) for i in gpu_list(cfg))+ for k, v in (cfg.get("env") or {}).items(): # engine settings the config carries (AMD: the GEMM tuning table)+ env[str(k)] = str(v)dirs = [d for d in cfg.get("lib_dirs") or [] if Path(d).is_dir()]if dirs:var = "PATH" if os.name == "nt" else "LD_LIBRARY_PATH"diff --git a/setup.py b/setup.pyindex 519305196..a0c7c1a6f 100644--- a/setup.py+++ b/setup.py@@ -1828,6 +1828,11 @@ def main() -> int:"lib_dirs": lib_dirs, "port": port}if hip:cfg["backend"] = "hip"+ # the dense prompt GEMMs through hipBLASLt with kernels measured on this GPU generation (tools/hip; +40-60%+ # prompt speed on the 7900 XTX); the engine refuses a table made for another hipBLASLt version and falls back+ tables = sorted((ROOT / "tools" / "hip").glob(f"{gpu['arch']}-hipblaslt-*.txt"))+ if tables:+ cfg["env"] = {"STRATA_HIPBLASLT_TUNING": str(tables[-1])}if gpu["count"] > 1 or a.gpu is not None:cfg["gpu"] = gpu["index"] # the engine is told this card (issue #51)cfg["gpus_asked"] = True # chosen at setup: not asked again at startdiff --git a/tools/hip/gfx1100-hipblaslt-100200.txt b/tools/hip/gfx1100-hipblaslt-100200.txtnew file mode 100644index 000000000..c82a01126--- /dev/null+++ b/tools/hip/gfx1100-hipblaslt-100200.txt@@ -0,0 +1,28 @@+# solution IDs are scoped to this hipBLASLt version and device architecture+STRATA_HIPBLASLT_TUNING_V1 gfx1100 100200+bf16 1 2560 1 4096 541+bf16 4 10240 4 8192 542+bf16 48 2560 96 4096 541+bf16 48 2560 96 8192 542+bf16 128 2560 128 4096 542+bf16 128 2560 128 8192 542+bf16 320 10240 320 4096 542+bf16 320 10240 320 8192 542+bf16 512 2560 512 8192 542+bf16 2560 2560 2560 8192 542+bf16 10240 320 10240 4096 542+bf16 10240 320 10240 8192 542+f16 512 2560 512 4096 1147+f16 512 2560 512 8192 1147+f16 640 2560 640 4096 1147+f16 640 2560 640 8192 1147+f16 2560 640 2560 4096 1147+f16 2560 640 2560 8192 1147+f16 2560 6144 2560 4096 1147+f16 2560 6144 2560 8192 1147+f16 6144 2560 6144 4096 1147+f16 6144 2560 6144 8192 1147+f16 10240 2560 10240 4096 1147+f16 10240 2560 10240 8192 1147+f16 12288 2560 12288 4096 1147+f16 12288 2560 12288 8192 1147