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++
SYCL: refuse STRATA_VERIFY_NO_HOST when a later layer-split stage is short of VRAM (#1980); setup_intel writes STRATA_STAGE_TRIM=1 for a split
Niko122100e7d0c4cc3a
diff --git a/sycl/setup_intel.py b/sycl/setup_intel.pyindex 7e3234573..8c0ed962c 100644--- a/sycl/setup_intel.py+++ b/sycl/setup_intel.py@@ -291,6 +291,10 @@ def install(argv) -> None:# needs an explicit ONEAPI_DEVICE_SELECTOR (kept if the user set one)selector = "level_zero:*" if split else f"level_zero:{idx}"cfg.setdefault("env", {}).setdefault("ONEAPI_DEVICE_SELECTOR", selector)+ if split:+ # #1980: without it every card keeps a full copy of the dense weights (1.4 GiB each on Flash-Next IQ2_XS) and the+ # load stops at 96-97% resident; the later stage's missing experts have no host mirror (STRATA_VERIFY_NO_HOST)+ cfg.setdefault("env", {}).setdefault("STRATA_STAGE_TRIM", "1")need = S.MODELS.get(model, {}).get("ram_gb", 0)sel_alch = sel["driver"] == "i915" or sel.get("devid") in ALCHEMIST_IDSif sel_alch and need and real_ram < need:diff --git a/sycl/src/program/generate.cpp b/sycl/src/program/generate.cppindex 777586af9..324889635 100644--- a/sycl/src/program/generate.cpp+++ b/sycl/src/program/generate.cpp@@ -4939,6 +4939,29 @@ int main(int argc, char **argv) try {}if (multi_gpu)std::fprintf(stderr, "strata generate: layer split: CUDA0 runs layers 0-%lld\n", (long long) (split_at[0] - 1));+ // #1980: the host mirror and the "REFUSED" count above cover the first stage only. A later stage whose cache does not+ // hold all of its layers' experts has no mirror entry for the rest, and with STRATA_VERIFY_NO_HOST no host answers for+ // them: the device plan reads a bad address and the card is lost at the first verify window (2x Arc Pro B60, xe CAT+ // fault). Refuse at the start with the same message, and say how to get a complete load.+ if (multi_gpu) {+ const bool no_host_split = [] { const char* v = std::getenv("STRATA_VERIFY_NO_HOST"); return v && *v && std::strcmp(v, "0") != 0; }();+ int64_t later_misses = 0;+ for (auto& stp : stages) {+ const GpuStage& st = *stp;+ later_misses += std::max<int64_t>(0, (st.le - st.lb) * g.n_expert - (int64_t) st.cache.slots());+ }+ if (later_misses > 0 && no_host_split) {+ std::fprintf(stderr, "strata generate: REFUSED: %lld experts of the later layer-split stages are neither in VRAM nor mirrored "+ "(the host mirror covers the first stage only); with STRATA_VERIFY_NO_HOST the device plan cannot run them "+ "and the card is lost at the first verify window - set STRATA_STAGE_TRIM=1 (with --layer-split N) to free "+ "each card's duplicate dense weights, lower --max-context or --vram-reserve-mib, or unset "+ "STRATA_VERIFY_NO_HOST\n", (long long) later_misses);+ return 2;+ }+ if (later_misses > 0)+ std::fprintf(stderr, "strata generate: layer split: %lld experts of the later stages are not in VRAM (served by the host)\n",+ (long long) later_misses);+ }std::array<strata::core::RemoteExperts, 3> remote_experts;std::unique_ptr<strata::core::RemoteExpertOpt> remote_opt;