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++
docs: the layer split's per-card dense weights (PR #639), STRATA_ARENA_MMAP (PR #640), make_profile --reorder (#587)
Niko122129181ca2035b
diff --git a/docs/DETAILS.md b/docs/DETAILS.mdindex 9d2cc7041..99963c31b 100644--- a/docs/DETAILS.md+++ b/docs/DETAILS.md@@ -145,6 +145,13 @@ other ~18 GB), a 32 GB PC with a 12-16 GB GPU the Coder; IQ3_XXS on a 32 GB PC swith `--resident-experts` started with `--gpus` switches to `--mmap-experts` with a note, and the engine runs thatpair as `--mmap-experts` with a warning instead of refusing it.+**A mapped arena for small RAM (Linux, opt-in, 0.1.39, PR #640):** `STRATA_ARENA_MMAP=1` maps a native pack's expert+arena read-only from the pack's `experts.bin` instead of reading it into locked RAM, for a PC whose GPUs hold most+experts but whose RAM is small (2x 16 GB GPUs with 32 GB of RAM: ~1 GB -> 25 GB available while serving). The first+start writes `experts.bin` (when the drive has room for it), later starts map it; the pages of the experts a GPU holds+are handed back to the OS. Run it with `--pcie-frac 0` (the GPUs get no mapped alias). Without the variable nothing+changes.+**Low-RAM mode without `experts.bin` (engine 0.1.31):** for the native packs (IQ2_XS, IQ3_XXS, IQ3_S, the Coder, Swift,Q2_0 packed by `tools/iq_pack.py`; not the canonical Q2_0 pack setup makes for AVX-512 CPUs) the mapped mode no longerneeds the pack's `experts.bin`: when the pack has none, the engine@@ -208,7 +215,9 @@ card gains depends on its PCIe link (the experts stream over it), so they are stMore VRAM matters more than a faster GPU: every extra GB holds ~700 more experts, and every expert on the GPU is one theCPU does not have to compute. A 3090's 24 GB takes most of the CPU work away. (Since 0.1.14 the expert profile ranksall 24,576 experts; before, the cache stopped at 8,000, about 10-14 GB. `tools/make_profile.py` builds a profile from-your own prompts: run the engine once with `--dump-routing trace.bin`, see the tool's help.)+your own prompts: run the engine once with `--dump-routing trace.bin`, see the tool's help. The shipped profile already+ranks every pair, so a trace only changes the order with `--reorder` (0.1.39, #587): your trace's pairs first, then the+base's, then the rest.)## Which model?diff --git a/docs/MULTI_GPU.md b/docs/MULTI_GPU.mdindex 6e0b0d968..a2c4535c4 100644--- a/docs/MULTI_GPU.md+++ b/docs/MULTI_GPU.md@@ -75,6 +75,14 @@ The engine flags behind it: `--layer-split K1[,K2..]|auto` and `--split-device Ddevices; default the next visible ones). `--layer-split K --split-device 0` runs both stages on one card sharingeverything - the bit-exact check of the hand-off, not a speed mode.+**Each card loads only its own layers' dense weights** (0.1.39, PR #639) with explicit split points (`--layer-split+27`, not `auto`): every card used to keep a full copy (~3.4 GB for the Coder) though its stage reads only its own+layers, and the VRAM it frees goes to that card's expert cache (2x MI50 16 GB, Coder: 8,819 -> 10,626 experts in+VRAM, decode 39.2 -> 41.7 tok/s). On by default in the AMD (HIP) builds, `STRATA_STAGE_TRIM=0` keeps the full copies;+on NVIDIA it is opt-in with `STRATA_STAGE_TRIM=1` until it has been run on NVIDIA cards (please report how it goes).+A card holding more experts can change which experts run on the GPU, so the output can differ slightly from a run+without it.+**auto** tries every placement (all of them for two or three cards; proportional to the free VRAM beyond that) andkeeps the one whose caches would hold the most of the expert profile, hottest pairs weighted most; ties go to theplacement that leaves the fullest card the most room. The startup log prints the choice: