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++
Merge f-rdna4 (AMD RDNA4 gfx1201, with doplxyz's patch) into rel-0.1.30
Niko122159b8c45777b4
diff --cc setup.pyindex f7380f45f,d7f613abd..4cffe1880--- a/setup.py+++ b/setup.py@@@ -1698,13 -1686,11 +1761,13 @@@ def main() -> intap.add_argument("--draft-vocab", choices=list(DRAFT_VOCABS),help="the draft layer's tokens: cjk = with Chinese, Japanese and Korean (default), en = English ""and code only (~110 MiB less VRAM, English answers 1-2%% faster)")- ap.add_argument("--low-ram", choices=["auto", "on", "off"], default="auto",- help="map the model's experts from its folder instead of copying them into RAM (for a PC with a big "- "GPU and little RAM); auto: when the experts would not fit the RAM")+ ap.add_argument("--low-ram", choices=["auto", "on", "off", "resident", "mmap"], default="auto",+ help="read the model's experts from one file in its folder instead of copying them all into RAM "+ "(for a PC with a big GPU and little RAM); auto: when the experts would not fit the RAM. In "+ "this mode the experts the GPU does not hold are copied into RAM once when they fit (resident), "+ "else read through the OS file cache (mmap); resident / mmap force one of the two")ap.add_argument("--backend", choices=["cuda", "hip"],- help="cuda = NVIDIA (default), hip = AMD RX 7900 XT/XTX on Linux (experimental; chosen by itself "+ help="cuda = NVIDIA (default), hip = AMD RX 7900 XT/XTX or RX 9070 / AI PRO R9700 on Linux (experimental; chosen by itself ""when the PC has no NVIDIA card Strata can use)")ap.add_argument("--skip-build", action="store_true", help=argparse.SUPPRESS)a = ap.parse_args()@@@ -2184,12 -2120,11 +2247,13 @@@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])}+ # prompt speed on the 7900 XTX): only a table for this card's arch AND the installed hipBLASLt version (the+ # engine refuses any other one and falls back to plain hipBLAS)+ table = hipblaslt_table(gpu["arch"], lib_dirs)+ if table:+ cfg["env"] = {"STRATA_HIPBLASLT_TUNING": str(table)}+ if resident: # ROCm: large page-locked host allocations can fail or be slow for the CPU; keep the copy pageable+ cfg.setdefault("env", {})["STRATA_RESIDENT_PIN"] = "0"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 --cc src/program/generate.cppindex faf2c0a11,3c79d51eb..75e874b00--- a/src/program/generate.cpp+++ b/src/program/generate.cpp@@@ -14,9 -14,8 +14,10 @@@// AND IT IS PHASE 2, so hit rate is `h = 0` and the number it prints is slow on purpose// (`phase-2-correct-engine.md:5-9`). What it is FOR is the honest tok/s figure and the logit dump.+ #include "strata/core/device.hpp"#include "strata/core/expert_cache.hpp"+#include "strata/core/conversation_snapshot.hpp"+#include "strata/core/conversation_memory.hpp"#include "strata/core/expert_source.hpp"#include "strata/core/remote_experts.hpp"#include "strata/core/on_device.hpp"