MoE inference-engine audit — T4 (sm_75) vs L4 (sm_89): summary, source quotes, and temp=0 diffs. Model: Qwen3.6-35B-A3B-UD-Q4_K_XL.gguf (sha256[:16]=707a55a8a4397ecd); engines llama.cpp b12843,… A developer audited three MoE inference engines — llama.cpp b12843, Niko1221/Strata 0.2.23, and RustingStudio/RustingStrata 1.4.2 — running the Qwen3.6-35B-A3B-UD-Q4_K_XL GGUF on an Nvidia T4 (sm_75) and L4 (sm_89), comparing summaries, source quotes and temp=0 output diffs. The audit also surfaced Strata's setup.py driver and minimum-engine version constraints, including a CUDA 12 compatibility driver floor of 528 on Windows and 525 elsewhere. | | | | | ====================================================================== | | | === Niko1221/Strata @ 8db8753d55850a1e36cf61db19faf8f08fa90f30 | | | ====================================================================== | | | | | | --- STRATA ROUTE TAIL SKIP expert skip 712 lines --- | | | /tmp/src audit/Strata/terminal/setup.py-299- 575.51 / 576.02 , which strata update enforces. cuda12 min driver reads that from the package or the feed 4247 4188 . | | | /tmp/src audit/Strata/terminal/setup.py-300-CUDA12 COMPAT DRIVER = 528 if WIN else 525 | | | /tmp/src audit/Strata/terminal/setup.py-301-ENGINE12 DIR = "engine-cuda12" | | | /tmp/src audit/Strata/terminal/setup.py:302:MIN ENGINE = 0, 1, 46 versions compare all numbers; v0.1.60: engine changes since v0.2.13.1 git log 628f74955..HEAD ; v0.1.59: engine changes since v0.2.12 git log 146df3c46..HEAD ; v0.1.58: engine rounds 0215-0217 tuned drafters, the file-tier re-check, prefill and Q5 0 fixes; git log c3b3f5035..HEAD ; v0.1.46: the 0.2 release engine UPDATE.bat and setup fetch it from the signed feed, 3469 3437 ; v0.1.45: Qwen3.6 parallel requests and pictures, fixes 2346 2372 2396; v0.1.44.1: CPUs without AVX2 start again 2324: an illegal instruction before main in the NVFP4 CPU rows , the CUDA 12.0/12.1 toolkits build 2322 , a crashed engine start is named instead of retried as a GPU runtime start, Mac M2 2323 ; v0.1.44: UD-Q4/Q5/Q6 K XL and Q8 0 Unsloth files in setup K-quant experts, MMQ prompt library strata kq , NVFP4 packs, Qwen3.6-35B-A3B, Intel Arc A-series kernels, the pipelined-decode and latency work; v0.1.43.1: the adaptive overlap no longer collapses decode on pinned-host desktops 1964 1975 , Windows PLE mmap stall 1984 , pinned prompt uploads 1996 , the I/O watchdog allowance; v0.1.43: adaptive-tier copies overlap on CUDA, P100 sm 60 kernel tables, RDNA4 gfx1200/gfx1201 defaults route tail skip, measured PCIe share, 16K prompt chunks, fused IQ3 prompt experts ; v0.1.42.1: the GGUF-in-place file tier on Windows unmaps every shard, dual-socket starts judge each NUMA node and STRATA DROP CACHE ON EXIT, tools/strata bench.py; v0.1.42: STRATA ROUTE TAIL SKIP=7 default on CUDA +13-16% decode , the AMD 2-GPU checkpoint fix H13 , Phase 2 fixes and opt-ins; v0.1.41.1 folded into 0.1.42 : the 1576 card order, 1616 stage size, 1595 CPU share, 1630/ 1607 Windows HIP chunk cap and commit-limit warning, 1603 parallel-request bookkeeping; v0.1.41: CPU prefill share on by default NVIDIA, chunks < 1024 , --batch-groups auto, the file tier read in batches on Windows, Pascal decode fix, per-arch tables; v0.1.40.3: the 1357 MTP router guard, the 1376 Windows HIP cache floor, 461 runtime DLLs, Intel A750 first-request fix; v0.1.40.2: F4 verify windows, the Linux file tier 1194 , the stager wait 1057 , 1264/ 1201/ 1139 fixes, opt-in CPU share 1282 , Intel Arc; v0.1.40: --resident-experts on a layer split with the split+resident variant 848 , --kv k8v4 with KV streaming 711 ; v0.1.39: the 577 file-tier regression fixed, the OpenAI Responses API 451, Codex , a reply stuck on one token ended 606 , the head before the arena 620 , effort position 458 , --vram-reserve hot resize opt-in 533 , PR batch; v0.1.38: prompts faster one gather per expert group 372, the first chunk's PLE rows beside layer 0 374, DeltaNet three heads per thread 413 , --kv q4 0 prompts on tensor cores 452 , Q5 0 experts on the GPU 473 , IQ4 XS on AVX-2 415 , unbuffered expert loading on Windows 357 362 , --peer-device 531 , a 6 GB card starts 496 , PR batch; v0.1.37: a silent engine is restarted 481 , Windows AMD counts the desktop's VRAM 380 377 497 , a steadier PCIe probe 485 , fixes 496 495 498 505 493; v0.1.36: a cancelled prompt logged as read so far 471 , the draft-head hint 474 , UPDATE.bat 475 , --expert-profile-save 477 ; v0.1.35: Windows AMD uses its bundled HIP runtime 468 461 , the low-RAM resident mode on Windows 32 GB 467 , fixes 460 459 446 447 457 448 444; v0.1.34: AMD on Windows a ready-made HIP engine , an MCP server for AI assistants tools/strata mcp.py , a shorter README; v0.1.33: a portable image encoder again 411 412 , setup recommends instead of forcing 406 403 364 384 , fixes 352 365 369 371 375 393 408 414; v0.1.32: split prompts faster 340 , AMD router +12%, Unsloth Q4 in setup, faster Q4 prompts, 326/ 327/ 342/ 344 fixes, PR batch; v0.1.31: Unsloth UD-Q4 K XL experimental , GGUF-in-place low-RAM mode, Windows GGUF load 2x, server race + tokenizer fixes, AMD intrinsics; v0.1.30: short prompts faster streaming from 1024 tokens , resident low-RAM variant, multi-GPU session carve, RDNA4; v0.1.29: sampled answers faster split top-k , 154 correctness fixes; v0.1.28: the expert cache reserves the draft head, a cancelled request no longer fails the next; v0.1.27: RTX 20 sm 75 in the ready-made engine, the HIP build without CUDA headers; v0.1.26: the draft layer's prompt pass in batches; v0.1.25: faster prompts grouping off the copy engine, fused hyper-connection kernels , AMD HIP backend, --kv k8v4; v0.1.24: long prompts faster QSA select on tensor cores ; v0.1.23: image requests honor sampling, 8 GB cards start, batched verify window; v0.1.22: faster prompts tensor-core attention , multi-GPU across images/steering/KV streaming; v0.1.21: multi-GPU layer split --gpus ; v0.1.20: system-prompt checkpoint, PCIe probe, hit rate; v0.1.19: penalties | | | /tmp/src audit/Strata/terminal/setup.py-303- KV bytes per context token and attention layer: 8-bit 1056, rotated 4-bit 576, hybrid K8V4 8-bit K, 4-bit V 816 | | | /tmp/src audit/Strata/terminal/setup.py-304-KV CELL BYTES = {"q4 0": 576, "k8v4": 816} | | | /tmp/src audit/Strata/terminal/setup.py-305-PY PACKAGES = "numpy", "jinja2", "regex", "pyyaml", "tqdm", "requests", "pillow", "psutil" | | | -- | | | /tmp/src audit/Strata/terminal/setup.py-4808- or better than the FP16 path's; UD-Q4 K XL keeps it opt-in here the Linux gfx12 engine takes it by itself since 0.2.10.1 . | | | /tmp/src audit/Strata/terminal/setup.py-4809- STRATA HC Q8 on CUDA for the UD- files is the ENGINE's default now it sees the Q8 0 hyper-connection projections in the GGUF ; setup | | | /tmp/src audit/Strata/terminal/setup.py-4810- writes nothing for it. | | | /tmp/src audit/Strata/terminal/setup.py:4811: STRATA ROUTE TAIL SKIP=0 in every Unsloth config 0.2.17, owner 11-19: the tail skip is Off by default; users saw lower quality . Before 0.2.17 setup | | | /tmp/src audit/Strata/terminal/setup.py-4812- wrote it only where every expert is in RAM and not on Linux gfx12; the RAM-budget mode and Linux gfx12 ran the engine's own default rank 7 . | | | /tmp/src audit/Strata/terminal/setup.py-4813- The in budget and arch arguments are kept for the callers and no longer change anything. Every engine start also sets an unset | | | /tmp/src audit/Strata/terminal/setup.py:4814: STRATA ROUTE TAIL SKIP to 0 serve/server.py child env , so the other families and the configs made before 0.2.17 start Off too. The way to | | | /tmp/src audit/Strata/terminal/setup.py:4815: turn it on is STRATA ROUTE TAIL SKIP=7 the app's Expert settings, strata launch --set STRATA ROUTE TAIL SKIP=7 ; a setup run again keeps | | | /tmp/src audit/Strata/terminal/setup.py-4816- a value the person put there carry over .""" | | | /tmp/src audit/Strata/terminal/setup.py-4817- env = {} | | | /tmp/src audit/Strata/terminal/setup.py-4818- if family = "unsloth": | | | /tmp/src audit/Strata/terminal/setup.py-4819- return env | | | /tmp/src audit/Strata/terminal/setup.py-4820- if model in "UD-Q5 K XL", "UD-Q6 K XL" : | | | /tmp/src audit/Strata/terminal/setup.py-4821- env "STRATA MMQ KQ" = "1" | | | /tmp/src audit/Strata/terminal/setup.py:4822: env "STRATA ROUTE TAIL SKIP" = "0" | | | /tmp/src audit/Strata/terminal/setup.py-4823- return env | | | /tmp/src audit/Strata/terminal/setup.py-4824- | | | /tmp/src audit/Strata/terminal/setup.py-4825- | | | -- | | | /tmp/src audit/Strata/terminal/setup.py-7643-SETUP KEYS = frozenset {"exe", "args", "cwd", "tokenizer", "model name", "log", "lib dirs", "port", "backend", "env", | | | /tmp/src audit/Strata/terminal/setup.py-7644- "gpu", "gpus asked", "gpus by", "layer split", "host", "api key", "draft vocab", "vision", "args written", "ui budget work gib", "shape title"} | | | /tmp/src audit/Strata/terminal/setup.py-7645-SETUP ENV = frozenset {"STRATA HIPBLASLT TUNING", "STRATA ROCBLAS TUNING", "STRATA RESIDENT PIN", "STRATA NO ARENA THP", "STRATA MMQ KQ", "STRATA HC Q8", | | | /tmp/src audit/Strata/terminal/setup.py:7646: "STRATA ROUTE TAIL SKIP"} \| frozenset GFX1103 SWITCHES \| frozenset GFX1150 SWITCHES the "env" entries setup writes the gfx1103 switches are setup's too: a re-run refreshes them, they do not linger | | | /tmp/src audit/Strata/terminal/setup.py-7647- 0.1.44 added these three, written for Unsloth's files only unsloth default env . In any other model's config they are the | | | /tmp/src audit/Strata/terminal/setup.py:7648: user's own STRATA ROUTE TAIL SKIP=0 to turn the tail skip off, STRATA MMQ KQ=1 ... : a setup run again keeps them there | | | /tmp/src audit/Strata/terminal/setup.py-7649- 0.1.44 dropped them with the rest of SETUP ENV . | | | /tmp/src audit/Strata/terminal/setup.py:7650:SETUP ENV UNSLOTH = frozenset {"STRATA MMQ KQ", "STRATA HC Q8", "STRATA ROUTE TAIL SKIP"} | | | /tmp/src audit/Strata/terminal/setup.py-7651- The only values setup writes for an entry that people also set by hand. STRATA RESIDENT PIN: setup writes "0" ROCm, resident experts ; a "1" is the person's 6244 . | | | /tmp/src audit/Strata/terminal/setup.py-7652-SETUP ENV VALUES = {"STRATA RESIDENT PIN": frozenset {"0"} } | | | /tmp/src audit/Strata/terminal/setup.py-7653-SETUP VISION = frozenset {"exe", "cpu exe", "mmproj", "model", "gpu", "max tokens", "threads"} | | | -- | | | /tmp/src audit/Strata/terminal/setup.py-7677- if env: | | | /tmp/src audit/Strata/terminal/setup.py-7678- cfg "env" = { cfg.get "env" or {} , env} | | | /tmp/src audit/Strata/terminal/setup.py-7679- kept += f"env {k}" for k in env | | | /tmp/src audit/Strata/terminal/setup.py:7680: 0.2.17: the tail skip is Off by default setup writes STRATA ROUTE TAIL SKIP=0 for Unsloth's files , and On is a value the person chose 7, or a | | | /tmp/src audit/Strata/terminal/setup.py-7681- rank 1-9 : a setup run again must not turn it back to the 0. Only a value other than 0 is kept; an old 0 is Off, the same as the new one. | | | /tmp/src audit/Strata/terminal/setup.py:7682: old skip = str old.get "env" or {} .get "STRATA ROUTE TAIL SKIP", "" .strip if isinstance old.get "env" , dict else "" | | | /tmp/src audit/Strata/terminal/setup.py:7683: if old skip not in "", "0" and cfg.get "env" or {} .get "STRATA ROUTE TAIL SKIP" = old skip: | | | /tmp/src audit/Strata/terminal/setup.py:7684: cfg "env" = { cfg.get "env" or {} , "STRATA ROUTE TAIL SKIP": old skip} | | | /tmp/src audit/Strata/terminal/setup.py:7685: kept.append "env STRATA ROUTE TAIL SKIP" | | | /tmp/src audit/Strata/terminal/setup.py-7686- ov, nv = old.get "vision" , cfg.get "vision" | | | /tmp/src audit/Strata/terminal/setup.py-7687- if isinstance ov, dict and isinstance nv, dict : | | | /tmp/src audit/Strata/terminal/setup.py-7688- for k, v in ov.items : | | | -- | | | /tmp/src audit/Strata/terminal/strata control/speed switches.py-35- group: str = "Speed" the app's group of Expert settings the row is shown in | | | /tmp/src audit/Strata/terminal/strata control/speed switches.py-36- words: tuple tuple str, str , ... = "on", ... , "off", ... : the app's two option names instead of On / Off the default one says " recommended " | | | /tmp/src audit/Strata/terminal/strata control/speed switches.py-37- terminal default: str = "" the Terminal's Default cell for the row, when "on" / "off" would not say it | | | /tmp/src audit/Strata/terminal/strata control/speed switches.py:38: A switch with a value to choose instead of on / off STRATA ROUTE TAIL SKIP : value, the app's word for each choice besides the default, which is | | | /tmp/src audit/Strata/terminal/strata control/speed switches.py-39- no entry at all words' "on" word names it . The app shows them as one dropdown, the Terminal's sentence lists them env words . | | | /tmp/src audit/Strata/terminal/strata control/speed switches.py-40- choices: tuple tuple str, str , ... = | | | /tmp/src audit/Strata/terminal/strata control/speed switches.py-41- choice note: str = "" shown under the dropdown while a choice whose word is its own value a number is picked | | | -- | | | | | | --- moe-cache llama.cpp PR 30966 23 lines --- | | | /tmp/src audit/Strata/engine/src/split/src/kernels.hpp-284-// njobs 0 of them njobs 1 is the block counter, left at zero . Output rows: pair t TOPK+k the shared expert's go to | | | /tmp/src audit/Strata/engine/src/split/src/kernels.hpp-285-// T TOPK+t . With an ExpertCache model.hpp the same last block also plans the layer's slots the jobs' experts not | | | /tmp/src audit/Strata/engine/src/split/src/kernels.hpp-286-// in a slot take one, CLOCK, the layer's tables updated and writes list 1 + MAXT TOPK ints: how many took a slot, | | | /tmp/src audit/Strata/engine/src/split/src/kernels.hpp:287:// then their ids for moe cache's copy. | | | /tmp/src audit/Strata/engine/src/split/src/kernels.hpp-288-// sh gu rows sh rows < 4096 : the shared expert's gate\|up over the q8 1 rows sh y into sh out, in the same launch | | | /tmp/src audit/Strata/engine/src/split/src/kernels.hpp-289-void router route const float W, const float x, float logits, int T, int topi, float topw, Job jobs gu, Job jobs dn, | | | /tmp/src audit/Strata/engine/src/split/src/kernels.hpp-290- int njobs, void st, const ExpertCache ec = nullptr, int layer = -1, int list = nullptr, const Q8S sh gu = nullptr, | | | -- | | | /tmp/src audit/Strata/engine/src/split/src/kernels.hpp-306-// a decode window's layer with an ExpertCache model.hpp : the experts router route's plan listed copied in from RAM to | | | /tmp/src audit/Strata/engine/src/split/src/kernels.hpp-307-// their new slots by a grid of the SMs wide 16-byte reads; the MoE kernels' own reads over the link are latency-bound . | | | /tmp/src audit/Strata/engine/src/split/src/kernels.hpp-308-// With jobs, the plan runs here first, a launch of its own when router route did not plan | | | /tmp/src audit/Strata/engine/src/split/src/kernels.hpp:309:void moe cache int layer, size t gu stride, size t dn stride, const ExpertCache& ec, int list, void st, const Job jobs = nullptr, | | | /tmp/src audit/Strata/engine/src/split/src/kernels.hpp-310- const int njobs = nullptr ; | | | /tmp/src audit/Strata/engine/src/split/src/kernels.hpp-311-// pool p's listed experts list: device, its count then the experts' ids, each with its slot in ec.slot of already from | | | /tmp/src audit/Strata/engine/src/split/src/kernels.hpp-312-// their host copies into their slots, one kernel: the arena's fill | | | -- | | | /tmp/src audit/Strata/engine/src/split/src/engine impl.hpp-145- unsigned route trace = nullptr; // FNX ROUTE TRACE=M, card 0, mapped host memory: decode's picks in order M million | | | /tmp/src audit/Strata/engine/src/split/src/engine impl.hpp-146- unsigned long long route trace len = nullptr; | | | /tmp/src audit/Strata/engine/src/split/src/engine impl.hpp-147- unsigned long long route trace cap = 0; | | | /tmp/src audit/Strata/engine/src/split/src/engine impl.hpp:148: int cache list = nullptr; // moe cache's scratch with an ExpertCache | | | /tmp/src audit/Strata/engine/src/split/src/engine impl.hpp-149- // FNX PREFETCH PROBE=1, card 0: layer l + 1's router on layer l's FFN input, its top 10 per row guess NL MAXT | | | /tmp/src audit/Strata/engine/src/split/src/engine impl.hpp-150- // TOPK scored against layer l + 1's picks cnt 7 : probe counts | | | /tmp/src audit/Strata/engine/src/split/src/engine impl.hpp-151- float probe logits = nullptr; | | | | | | --- KV quant lossy cache 2945 lines --- | | | /tmp/src audit/Strata/engine/bench/test gfx906 qsa query swizzle guard.py-117-} | | | /tmp/src audit/Strata/engine/bench/test gfx906 qsa query swizzle guard.py-118-''' | | | /tmp/src audit/Strata/engine/bench/test gfx906 qsa query swizzle guard.py-119- | | | /tmp/src audit/Strata/engine/bench/test gfx906 qsa query swizzle guard.py:120:program = prefix + guard + "\nbool active bool query swizzle, bool lane cell, int kv mode {\n" | | | /tmp/src audit/Strata/engine/bench/test gfx906 qsa query swizzle guard.py-121-program += " const int kernel = -1; // the environment's choice launch chunks batch \n" + dispatch.group 0 + "\n return use query swizzle;\n}\n" + tests | | | /tmp/src audit/Strata/engine/bench/test gfx906 qsa query swizzle guard.py-122-with tempfile.TemporaryDirectory prefix="qsa-swizzle-guard-" as directory: | | | /tmp/src audit/Strata/engine/bench/test gfx906 qsa query swizzle guard.py-123- cpp = Path directory / "guard test.cpp" | | | -- | | | /tmp/src audit/Strata/engine/sycl/src/program/generate.cpp-4310- return 1; | | | /tmp/src audit/Strata/engine/sycl/src/program/generate.cpp-4311- } | | | /tmp/src audit/Strata/engine/sycl/src/program/generate.cpp-4312- strata::prefill::configure bmg window ss, strata::q of main cs , multi gpu && stages.empty && o.batch <= 0 ; | | | /tmp/src audit/Strata/engine/sycl/src/program/generate.cpp:4313: if g.n qsa layers 0 && ss.qsa states ss.qsa primary .kv mode == 1 | | | /tmp/src audit/Strata/engine/sycl/src/program/generate.cpp-4314- std::fprintf stderr, "strata generate: KV streaming: %lld of %lld cells per QSA layer in VRAM, the K/V in " | | | /tmp/src audit/Strata/engine/sycl/src/program/generate.cpp-4315- "%.2f GiB of pinned RAM\n", | | | /tmp/src audit/Strata/engine/sycl/src/program/generate.cpp-4316- long long ss.qsa states ss.qsa primary .n slots 4 , | | | -- | | | /tmp/src audit/Strata/engine/sycl/src/program/generate.cpp-8632- } | | | /tmp/src audit/Strata/engine/sycl/src/program/generate.cpp-8633- if use mtp && std::getenv "STRATA SNAPSHOT VERIFY" = nullptr | | | /tmp/src audit/Strata/engine/sycl/src/program/generate.cpp-8634- std::fprintf stderr, "strata serve: DRAFT PREFILL path=%s mode=%d cells=%lld\n", | | | /tmp/src audit/Strata/engine/sycl/src/program/generate.cpp:8635: batched ? "batched" : "token", mtp.kv state .kv mode, long long T ; | | | /tmp/src audit/Strata/engine/sycl/src/program/generate.cpp-8636- // progress for the server window: PP