strata::prefill::fused::{anonymous}::native_kernel<12, true, 2, 512, false> (the Q4_K gate/up instance) went from STACK 64 to STACK 72 when the
Q4_K / Q5_K gate/up kernels joined the staging rings. Measured on the merged head with the guard libraries built for sm_86: on an RTX A6000 box with
CUDA 13.1 and on a CUDA 13.2 box (cross-compiled), both give the same list of 16 instances and the same bytes. The instance <13, true, 2, 512, false>
went the other way (72 -> 64) and stays at its listed upper bound. No other entry changed, no new instance appeared, ALLOWED is untouched.
The guard has been red on the base on every architecture (sm_120: 9 instances, sm_86: 16,
sm_60: about 400), so it could not tell a new spill from an inherited one, and raising
ALLOWED to turn it green would hide any later growth.
tools/cuda_spill_baseline.json lists each inherited violation by exact instance name
(demangled, template arguments kept, spelled the same for cu++filt and c++filt) with the
bytes measured and the reason "inherited, not yet fixed": sm_120 has 9 (tp_band_kernel and
8 iq4_w4a8_kernel), sm_86 has 16 (3 gemm_rows_kernel, rope_table_inv_kernel, 7
iq4_w4a8_kernel, 5 K-quant fused native_kernel). The numbers come from the base's libraries
built with CUDA 13.2 and equal the ones measured on CUDA 13.1.
The guard now passes a violation that is a listed instance at or below its listed bytes
and counts it as known (the report line and a per-architecture summary print the known
count). A new instance, or a listed instance above its bytes, fails. An architecture
without a baseline (sm_60) prints "no baseline for sm_60" and its violations fail as
before. A baseline file that cannot be read ends with exit 2. ALLOWED is unchanged.
--baseline FILE, --print-baseline (how the file was made) and -v are new.
Tests (tools/test_check_cuda_spills.py, 10 -> 34): instance names across both demanglers,
a known instance at / below / above its bytes, a new instance, the per-architecture lists,
no baseline, a broken baseline file, --print-baseline feeding the check, and for every
entry of the shipped file that it is a real violation at its own bytes and fails when grown.
After f-p4-sm f68943534, pick_ww takes (n, n_expert, staged, wide); the Qwen3.6 copy's call in src/prefill/moe_fused_iq_q36.cu
becomes, as lane P4-Q36 compiled it on sm_120 in its scratch merge (7bc09fadf + f68943534 + e14d4e370; one-layer parity passed on
the RTX PRO 5000; the line is byte-equal in its scratch trees src-g1m.tgz and src-g2.tgz):
const int ww = pick_ww(n, n_expert, sw_on(g.gu_type, true), g.gu_type == T_Q6_K || g.gu_type == T_Q8_0);
The merge itself had no conflict; this one line is the only change beyond the two branches.
moe_fused_iq_q36.cu compiles moe_fused_iq.cu a second time in namespace strata::prefill::fused_q36, so every native_kernel instance of
the original exists again under a name the ALLOWED table did not carry, and an unlisted kernel fails with any stack. On the integrated
head the guard reported 10 of them on sm_120 (STACK 8-16 B, LOCAL 0).
Same source and instance parameters, same register cap: an instance has the same STACK as its fused:: twin in 24 of 25 cases on sm_86
and in 7 of 10 on sm_120 (never more than 8 B apart); no per-thread array was found. One entry, the measured maximum over the 62
instances: sm_120 (16, 0) on CUDA 13.2 (l620), sm_86 (80, 0) read with cuobjdump 12.9 on CUDA 13.0 objects (z440). The K-quant down
instances of the last commit (<13 / 14, false, 2 / 4, 512>) read 8 / 8 / 0 / 0 B on sm_120 and 72 / 72 / 64 / 64 B on sm_86 and are
inside it.
cuda_spill_guard still reports violations that are not this copy's, on the base too: tp_band_kernel and 8 iq4_w4a8_kernel instances on
sm_120; 3 gemm_rows_kernel, rope_table_inv_kernel, 7 iq4_w4a8_kernel and 6 fused:: K-quant gate/up instances (<12 / 13 / 14, true>, 56-80 B
against 48) on sm_86. Not touched here.
Until now `auto` kept llama.cpp's reader whenever the CPU's best kernel tier was below AVX2, because the only tier there was the slow portable one. The SSE4.1 and AVX
tiers (0991006d2, 117473f64) and the run-time dispatch (0c83610e5) change that, and the owner asked for ours as the default on these CPUs ("Yes make ours the default").
`auto` now gives our tower on every CPU tier for a tower it can run (both public reader files: Qwen3.8 BF16, Qwen3.6 F16). The setting that picks llama.cpp's reader
(STRATA_VISION_TOWER=mtmd, or --tower mtmd) works as before, and --tower own as before. No new setting, no new line in a log.
What a user on such a CPU gets (p2006, Zen 4 running the forced tier, 8 threads, medians, ours / llama.cpp's reader built for the same CPU class; big1024 = 1,024 tokens,
shapes = 260 tokens; rule 1 = the lowest cosine over 18 pictures against llama.cpp's portable AVX2 reader, the bar is 0.999):
| CPU class (our tier / llama.cpp build) | model | big1024 | shapes | rule 1 minimum |
|---|---|---|---|---|
| no AVX (sse41 / SSE4.2 build) | Qwen3.8 | 25.2 s / 150.8 s (0.167) | 3.5 s / 37.1 s (0.095) | 0.999029 |
| no AVX | Qwen3.6 | 25.3 s / 123.3 s (0.205) | 3.5 s / 29.3 s (0.121) | 0.999975 |
| AVX, no F16C (avx / avx build) | Qwen3.8 | 11.8 s / 35.7 s (0.331) | 1.37 s / 8.2 s (0.167) | 0.999674 |
| AVX, no F16C | Qwen3.6 | 12.2 s / 123.1 s (0.099) | 1.41 s / 30.4 s (0.046) | 0.999975 |
| AVX with F16C (avx / avx_f16c build) | Qwen3.8 | 12.1 s / 34.8 s (0.346) | 1.34 s / 8.0 s (0.166) | 0.999674 |
| AVX with F16C | Qwen3.6 | 12.1 s / 11.6 s (1.040) | 1.39 s / 2.17 s (0.643) | 0.999975 |
The one slower cell is Qwen3.6 on a CPU with AVX and F16C, on the large picture: 1.04 of llama.cpp's time (pair ratios 1.024 to 1.056); on the 260-token picture the same
pair is 0.643. Everywhere else below AVX2 ours takes 0.05 to 0.35 of llama.cpp's time. The AVX2 and AVX-512 CPUs are not affected: they already took our tower.
The code: own_reader_supported() loses the "best tier below AVX2" rule; the CPU half is own_cpu_reader_supported(geometry, tier) (true for every tier when the tower's
operations are implemented) and the reader a setting gives is vision_tower_resolve(setting, own_ok), so the selection is unit tested for the CPU classes no AVX, AVX without F16C,
AVX with F16C, AVX2 and AVX-512 (and a CPU older than SSE4.1), for both reader files' geometry, and for the explicit setting both ways (strata-vision-own-test). cpu_caps.h gets
isa_ok_for / best_isa_for (the same two functions for a given feature set); best_isa() and isa_ok() are unchanged.
Checks run for this commit are in phaseA-tests/cleanup/RESULTS-OWN-3V.md PART H (unit and Python suites on p1006; a default start with the tier set by STRATA_FORCE_ISA on p2006;
a default start under qemu-user with the Westmere CPU model on z440).
The SSE4.1 tier used a Cephes polynomial for exp. On Qwen3.8 that gave code4217 a cosine of 0.998928 against llama.cpp's CPU reader, 0.00007 under the 0.999
bar. The tier now calls the C library's expf per lane (out of line, with the scalar tier's clamp [-87, 88]). No build switch is left behind and the polynomial
is gone from this tier.
Checks (p2006, Zen 4, 8 threads, 18 pictures, 1,024 tokens, forced sse41 tier; the AVX and AVX2 tiers are unchanged):
| | polynomial exp | libm exp |
|---|---|---|
| Qwen3.8 rule 1 minimum (against llama.cpp's portable AVX2 CPU reader) | 0.998928 (code4217, 1 miss) | 0.999029 (code4217, 0 misses) |
| Qwen3.6 rule 1 minimum | 0.999975 | 0.999975 |
| bytes against the scalar tier, 18 pictures, each model | all 18 differ | 18 of 18 identical |
| big1024 time, Qwen3.8 / Qwen3.6, 3 alternating pairs, median | 23,857 / 22,523 ms | 26,935 / 24,398 ms |
| shapes (260 tokens) time, Qwen3.8 / Qwen3.6 | 3,587 / 3,460 ms | 3,653 / 3,548 ms |
| peak resident memory | 1.16-1.18 GB | 1.16-1.18 GB |
Time per pair over libm, big1024: 0.82 to 0.98 (Qwen3.8), 0.90 to 0.96 (Qwen3.6); run-to-run spread on big1024 is about 10 percent.
The same code under qemu-user with the Westmere CPU model (no AVX, FMA or F16C, so the C library takes its non-FMA expf), z440, Qwen3.8, code4217, 12 threads:
the emulated sse41 output is byte-identical to the native sse41 output (and so to the native scalar output), rule 1 is 0.999029 in both.
Against llama.cpp's reader built for the same CPU class (p2006, 8 threads, medians; big1024 / shapes): sse41 against the SSE4.2 build, Qwen3.8 25,219 / 3,541 ms
against 150,800 / 37,149 ms, Qwen3.6 25,304 / 3,531 ms against 123,306 / 29,265 ms.
Nine conflicts, one hunk each, all of the kind "ds-out removes DeepSeek next to a line that
main's fixes bundle (c1ff07f1a) or f-agent-turn changed". Resolved by keeping the other side's
addition and ds-out's removal (resolutions a-i accepted by the coordinator):
- apps/host/src/lib/native-fit.ts FitInput, apps/host/src/lib/native.ts NativeSize: ds-out's line
(no DeepSeek fields or note) plus main's context_fit field.
- apps/host/src/components/GuidedSetup.tsx, NativeModels.tsx imports: contextCacheGb kept,
deepseekContexts / OLD_DEEPSEEK_CONTEXT out.
- apps/host/tests/ui-r3.test.mjs: ds-out's first assert, main's second (context_fit).
- serve/server.py READY line: f-agent-turn's can_hold kept, the DeepSeek self.multi read out.
- strata_cli/launch/cmd.py: ds-out's suppressed --speed / --full-quality, main's new --gpu help.
- strata_cli/launch/screens.py: ds-out's STEP_LABELS, main's middle_shorten kept,
speed_choice_available out.
- data/settings-register.json: the 39 STRATA_DS4_* entries out.
The register's stale "line" values are not regenerated here.
Two conflicts, both in the same place: f-own-3s rewrote the gfx1151 block of
tools/vision/own/vit_gpu.h (and its test lines in test_gguf_geometry.cpp), and
f-spark-s2 added its context-retry block right after the old lines of that block.
Resolved by keeping 3s's block whole and adding the retry block unchanged after it
(the base lines 3s replaced are dropped).
On gfx1151 (Strix Halo) with head size <= 96, a multiple of 8, and wave 32, k_attn_fa_gfx11 now runs
unless STRATA_VIT_FA=0 is set; STRATA_VIT_FA=1 still asks for it on other gfx11 cards. The variable
is read after the default, as the HPA16 variables are. No new setting. gfx1103 and the other gfx11
cards are unchanged (they get their own gate). The register note of STRATA_VIT_FA is marked
[DRAFT, status: research].
Measured on Strix (gfx1151, Windows, build 5 of af825339a, STRATA_VIT_FA=1 against no variable),
Qwen3.8 against mtmd-CPU:
- attention on big1024 (1,024 tokens, warm): 319.6 ms -> 158.7 ms (0.50); whole picture 383 -> 320 ms,
code4217 89 -> 80 ms;
- time against mtmd-HIP, 18 pictures, min / median / max: 0.56 / 0.66 / 0.92 -> 0.46 / 0.60 / 0.83
(Qwen3.6: 0.56 / 0.67 / 0.91 -> 0.46 / 0.61 / 0.91);
- rule 1 and rule 2 pass on 18 of 18 pictures on both models for both arms; byte-identical over 5
encodes and across two processes;
- longest launch 6 ms at 1,024 tokens, 17 ms at 65,536 patches (limit_4096x4096 reads 0.999693
against the stored mtmd-CPU embedding);
- smallest token against mtmd-CPU, fused minus default, Qwen3.8: below on 6 of 18 pictures
(code4217 -0.094 = token #47, shapes_p.gif -0.019), above on 12; token #47 of code4217 depends on
rounding in every variant measured (its length 0.74 to 2.03; the two CPU references agree on it
to 0.7600, on the whole picture to 0.999543; the fused kernel is near our CPU tower, the default
near mtmd-CPU).
Jobs strix-20261111-1620-a728, -1622-31a8, -1636-6cb1, -1644-15d4; details in
phaseA-tests/cleanup/RESULTS-OWN-3V.md part F8-F9. The gate of the build as it ships follows.
The gate of the retry on a DGX Spark (4 starts counted with STRATA_VIT_PROF=1)
needed 5, 5, 5 and 6 retries, 5.4 to 6.8 s in all, about 1.1 to 1.2 s per
retry (the 1 s pause plus the failed attempt). 8 retries left a margin of 2.
Worst case when the context never comes: 12 retries, about 13 to 14.5 s of
waiting, then the reader fails as before and falls back as before.
The retry rule's test follows the constant.
DeepSeek V4.1-Flash leaves every user page, as written in par/dsout/DOCS-DRAFTS.md:
- README.md and its 7 translations lose the DeepSeek block; docs/media/models/deepseek.svg is
removed with its credit lines.
- MODELS, INSTALL, docs/README, MAC, TROUBLESHOOTING, AMD_HIP, DOCKER, INTEL, MULTI_GPU,
TERMINAL_LAUNCH, AI_SETUP, AI_REFERENCE, MEDIA_KIT, DETAILS, SAFETY, DGX_SPARK_LINUX, STRIX_HALO,
STRIX_HALO_WINDOWS, AGENTS.md and the packaging pages (README, UPDATES, ENGINE-COMPONENT,
mac/README): DeepSeek sections, rows and clauses deleted; the eight approved new sentences.
STRIX_HALO's WSL sentence (true for every AMD engine) moves to the Quick start.
- The three links to DEEPSEEK41.md anchors that no longer exist (MODELS.md twice,
TERMINAL_LAUNCH.md once) went with their sections, so the link check passes again.
- docs/data/capabilities.json drops the deepseek41 family; docs/CAPABILITIES.md and the cap
blocks regenerated by tools/capability_table.py --write. MEDIA_KIT.md has no cap block left,
so tools/capability_table.py no longer lists it; tools/test_capability_table.py points its two
contradiction tests at qwen38 / qwen36 and loses the DeepSeek-on-a-Mac test.
- docs/SETTINGS.md: the three STRATA_DS4_* rows go (count 280 -> 277). The page is not fully
regenerated: tools/settings_register.py --docs would also change seven rows that are not about
DeepSeek and were already out of date on f-own-int 9bef5255d; they wait for the owner.
- The four approved help texts lose their [DRAFT] prefix: strata launch --context, and
"choose the Qwen engine" (strata components use / remove).
Kept on purpose: DeepSeek as a cloud provider and search key, every DeepSeek Harness mention,
docs/release-notes-*.md and history/, docs/DEEPSEEK41.md and DEEPSEEK_MAC.md (the five-line page).
A new option, STRATA_MMQ (default ON: every build stays as it is). Off, strata_mmq,
strata_mmq_w4a4 and strata_kq are not built; Strata's own prompt kernels
(strata_pf_own: the fused experts and moe_helpers.cu) are, with
src/prefill/mmq_absent.cpp for the MMQ half of moe_mmq.hpp (every query answers
"no MMQ"; the calls that would launch an MMQ product cannot be reached and stop
with a plain message instead of leaving garbage). CUDA: MMQ iff STRATA_MMQ. HIP:
MMQ iff STRATA_PREFILL_MMQ and STRATA_MMQ; a HIP build without
STRATA_PREFILL_MMQ now builds Strata's own kernels (it built neither before).
A new name rather than STRATA_PREFILL_MMQ: every CUDA build folder configured
before has STRATA_PREFILL_MMQ=OFF in its cache.
- CMakeLists.txt: the option; strata_cuda_mmq / strata_cuda_pf_own and
strata_hip_mmq / strata_hip_pf_own, then the prompt tests
(strata_cuda_prompt_tests / strata_hip_prompt_tests, cut from the end of the
MMQ macros: the same tests in the same order with MMQ).
- prefill.cpp: the all-stub block only where neither library is linked
(no native experts, Metal), as before.
- prefill_fused_iq_test / prefill_fused_moe_test: without MMQ they check the
fused path against the references alone (the iq test's existing no-MMQ bound,
rel RMS 0.03 / worst row 0.25; the moe test takes the same bound).
- tools/check_no_mmq.py (+ test): llama.cpp's MMQ names in a binary's bytes, its
symbols (nm) and its device functions (cuobjdump); ctest no_mmq_symbols runs it
on strata and strata_pf_own in every build without MMQ.
A new CUDA context on a GPU that shares the system RAM (DGX Spark GB10)
needs physically contiguous memory. When the kernel has almost no free 2 MiB
blocks, cudaSetDevice fails with "out of memory" although 20+ GiB are free,
and the same call 1 to 5 s later succeeds. On the Spark this sent the picture
reader to the CPU (or to llama.cpp's reader, which aborts) at about half of the
starts.
VitGpu::load now tries again, up to 8 times, 1 s apart, only for
cudaErrorMemoryAllocation, only when cudaDevAttrIntegrated is set, and only in
a Linux CUDA build (SPARK-CTX-RETRY guard; HIP, Metal, Windows and gfx906 are
untouched). After the last retry it fails as before and the reader falls back
as before. No new setting and no new log line (STRATA_VIT_PROF=1 shows the
retry count).
Tests: the retry rule (vit_gpu_retry_context) in test_gguf_geometry.cpp;
tools/test_vit_ctx_retry_guard.py checks the guard.
- K and V reach LDS by 128-bit global loads; the WMMA fragments leave LDS by 128-bit loads (rows
padded by 8 F16 values: 16-byte aligned, banks shifted); 64-key tiles;
- exp2f with log2(e) folded into the scores; the P exchange inside a wave (wave barrier with LDS
fences) instead of a block barrier;
- the launch cap STRATA_VIT_FA_UNITS now 2^29 query x key x head triples; the head size must be a
multiple of 8 (Qwen: 72).
780M (p2006, gfx1103, Linux), Qwen3.8, big1024 at 1,024 tokens, stage profile, warm encodes:
attention 604 ms with the fused kernel against 1,512 ms on today's path (the first version: 1,606);
the whole picture 1,202 ms against 2,151 (code4217: 290 against 351). Against our CPU tower:
big1024 0.999971 (today's path 0.999952), code4217 0.999743 (0.998636). Byte-identical over 4 encodes
and across two processes. Longest launch at 1,024 tokens 22.5 ms warm (55.6 ms on the first encode).
Job p2006-20261111-1543-5533. Strix not run yet.
The block that gives the GGUF's cached expert pages back (generate.cpp, after the prompt path is set up) was under no
backend guard. cudaDevAttrIntegrated is true on AMD APUs under HIP (hipDeviceAttributeIntegrated) and on every Mac under
the Metal layer, the gfx906 layer has no such attribute, and Windows has no page drop, so on those builds the block either
ran ungated on a class it was not measured on, printed its line with nothing freed, or did not compile. The whole block
(call and log line) is now inside #if __linux__ && !STRATA_USE_HIP && !STRATA_HIP_GFX906 && !STRATA_GPU_METAL, and the
[DRAFT] line prints only when pages were actually given back. tools/test_uma_drop_guard.py checks that the call, the
setting's reads and the line all sit inside that guard. The register's two read lines follow the move.
k_attn_fa_gfx11 does S = Q K^T, the softmax and O = P V of a chunk of queries for every head in one launch,
flash-attention style, with the gfx11 WMMA instruction (16x16x16, F16 in, float32 accumulate, wave32):
- one block = 4 waves = 64 queries of one head; each wave walks the keys in tiles of 32;
- the scores stay in float32; the softmax is online, in float32 (running row maximum and sum, expf);
- P is rounded to F16 for the second product, as before; O accumulates in float32 and leaves in float32;
- the head size is padded with zeros to a multiple of 16 (72 -> 80); no atomics, a fixed key order.
It replaces the score product, the three-pass softmax, the P*V product and the widen of today's path, and
needs no score buffer. Device code only for gfx11 targets (__GFX11__); other targets get an empty body
and never launch it.
STRATA_VIT_FA=1 turns it on, only on a gfx11 card with 32-wide waves and a head size of at most 96.
A launch takes at most STRATA_VIT_FA_UNITS (default 2^32) query x key x head triples, planned as about
100 ms on a Radeon 8060S, so no launch comes near the Windows GPU timeout of 2 s, also at the
16,384-token limit. With STRATA_VIT_PROF the longest launch of an encode is printed.
Built for gfx1151 (owner PC, owner-20261111-1226-681f): 187 VGPRs, no spills, 14,336 bytes of LDS
for the head-size-80 instance; 84 v_wmma instructions over the six instances. Not run yet.
Two new tiers on the CpuOps contract (cpu_tier.h: no standard-library code in the tier files), for the CPUs below AVX2 that setup builds for
(STRATA_ISA_FLOOR none / avx): Nehalem / Westmere and the Pentium / Celeron / Atom parts without AVX (sse41), Sandy / Ivy Bridge and AMD's AVX
CPUs before Excavator (avx).
- cpu_kernels_sse41.cpp: 6 x 8 register tile on __m128; cpu_kernels_avx.cpp: 6 x 16 on __m256 (-msse4.1 / -mavx; MSVC /arch:AVX).
- No FMA on these CPUs: every product term is a multiply then an add, in the k order of every tier. The SSE4.1 tier's products are bit-identical
to the scalar tier's on x86 (unit test).
- F16 weights are converted in integer code, bit exact, without F16C (Sandy Bridge has none); the 16-bit rounding equals the scalar tier's bit
for bit; exp is the Cephes polynomial of the AVX2 tier with separate multiply and add; the one-vector tail product as in AVX2 / AVX-512.
- Dispatch: Isa ranks scalar < sse41 < avx < avx2 < avx512 (Neon apart); the probe reads SSE4.1 and AVX (with the OS ymm state);
STRATA_FORCE_ISA takes sse41 and avx.
- own_reader_supported keeps `auto` on mtmd for every x86 tier below AVX2 (the line reads `< Avx2` instead of `== Scalar`): behaviour unchanged
until the gate.
- strata-vision-own-cpu-test runs every tier the CPU has, capped by STRATA_FORCE_ISA, and adds the rotary / position-add kernels and the SSE4.1 =
scalar product check.
Checked: cpu-test on z440 (Haswell-EP) with each tier forced (scalar, sse41, avx, avx2): all passed; under qemu-user -cpu Westmere the cpu-test
picks sse41 and passes, and strata-vision --tower own / mtmd / auto and strata-vision-own read Qwen3.8 and Qwen3.6 pictures with no illegal
instruction (z440 job z440-20261111-1105-4195).
- data/settings-register.json: STRATA_DS4_METAL_CTX (read only by metal/src/engine/ds4_ctx.cpp) and
STRATA_GPU_TRACE (read only inside the STRATA_DS4_RUNTIME blocks of metal/src/gpu/runtime.cpp) are read by no
engine code since the Metal commit: out of the register (tools/settings_register.py --check).
- tools/test_setup_mac.py: --model UD-IQ1_S is still refused on a Mac; a name the built-in tables do not know is
first looked up in the signed feed, so the test gives setup no feed instead of reaching the network.
vit_cpu.cpp and vit_ref.cpp were compiled with -mavx2 -mfma in every x86 GCC build. Setup's own build on a CPU without AVX2 (STRATA_PORTABLE=OFF)
therefore contained AVX2/FMA code in VitCpu itself and in standard-library template copies (std::vector<unsigned short>::_M_fill_assign,
std::vector<std::thread>, std::function managers) that the linker keeps for the whole program. A floor build of the whole strata-vision had
64 functions with AVX instructions outside the kernel tiers (SSE4.2 floor) and 23 with AVX2/FMA (AVX floor).
- The two loops of the tower whose result depends on multiply-add contraction (the rotary of a token row, the position table's bilinear
add) move into the tier tables (CpuOps::rope_row, pos_add), written as before, so each tier compiles them with its own flags.
- vit_cpu.cpp is compiled at the baseline.
- vit_ref.cpp (the float32 oracle) gets -march=native in native builds (STRATA_VIT_OWN_NATIVE or setup's STRATA_PORTABLE=OFF), -mavx2 -mfma
only in the portable helper (an AVX2 floor for the whole program), the floor's flags in an older-CPU test build.
- tools/vision: STRATA_ISA_FLOOR = none (SSE4.2) / avx / avx_f16c, a test build of the program a CPU without AVX2 runs (ggml-cpu and the
reference at that floor), as the engine's option of the same name. Empty changes nothing.
- check_floor_isa.py: objdump scan of a linked binary; every function with instructions above the floor must be kernel-tier code.
Checked (p2006, job p2006-20261111-1101-c643): AVX-512 and AVX2 tiers byte-identical before and after on all 18 pictures, both readers
(standalone reader), and 6 / 6 per tier through the portable helper's --tower own. The scalar tier changes (GCC no longer contracts its
rotary): global cosine old against new 0.99942 to 0.99999 (Qwen3.8), 1.000000 (Qwen3.6). cpu-test passes on every tier. Floor scan of
the whole strata-vision after the change: 0 functions outside the tiers at the SSE4.2 floor, 0 at the AVX floor.
The Windows ROCm package's rocBLAS has tuned gfx1151 kernels for 16-bit results only (Tensile
BB_HPA / HH_HPA); BF16 / F16 -> F32, which the tower asked for, has only fallback kernels.
On gfx1151 the tower now takes, by default:
- STRATA_VIT_HPA16: weight products with a 16-bit result, float32 accumulation, widened after;
- STRATA_VIT_HPA16_ATT: the same for the attention's P*V product;
- STRATA_VIT_BF16_AS_F16: BF16 matrices held as F16 (the Pascal path), so every product gives an F16
result (HH_HPA, 10-bit mantissa) and not a BF16 one.
Each variable set to 0 turns its part off. No other card changes; no user setting.
Strix (Radeon 8060S, Windows), 18 pictures at 1,024 tokens against mtmd-CPU, medians of 5 encodes:
- Qwen3.8 (BF16 file): 0.54-0.83 of mtmd-HIP's time, median 0.66; rule 1 and rule 2 pass on all 18
(lowest global cosine 0.999285); byte-identical within a process and across two processes.
- Qwen3.6 (F16 file): 0.57-0.91, median 0.67; rule 1 and rule 2 pass on all 18 (lowest 0.999760).
- With BF16 results (no BF16_AS_F16) Qwen3.8 missed rule 1 on 3 pictures and rule 2 on 3.
- Before: 1.72-3.06 of mtmd-HIP's time with float32 results.
Jobs strix-20261111-1135-3669 (R2) and strix-20261111-1147-cbbb (R2b); RESULTS-OWN-3V.md PART F2/F3.
- Deleted: packaging/build_dsv41_cuda.sh, build_dsv41_hip_linux.sh, build_dsv41_windows.bat,
packaging/mac/build_dsv41_engine.sh, tools/dsv41 (pack, smoke, tune, refs, its HIP build scripts) and
third_party/project-maya (its notice covered only the DeepSeek port).
- package_engine.py: no strata-dsv41 beside the engine, no --require-dsv41; build_hip_linux.sh (rx9070),
build_cuda_linux_aarch64.sh and spark/build_engine.sh build and package the Qwen engine only (the same tree,
flags and architectures; the packages no longer carry strata-dsv41); package_terminal.py no longer bundles the
dsv41 scripts; feed_tool.py / make_local_feed.py have no --dsv41; make_model_release.py no DeepSeek bucket;
mac/sign-and-notarize.sh: --engine is the generic engine-package step (a model shape's engine uses it), its
DeepSeek words go; docker/build.sh and entrypoint.sh comments; tools/check py-optional without tools/dsv41.
- docs/DEEPSEEK41.md and docs/DEEPSEEK_MAC.md: the owner's five-line page (approved 11-11), each page with the
whole text, so an old link to either lands on the full answer ("on a Mac" in the Mac one).
- Tests: the DeepSeek build-script and --require-dsv41 checks go (test_engine_manifest, test_bundle_tools_paths,
tools/test_quant_header_names, tools/test_no_llama_download's list, test_update_feed's --dsv41 build test).
The feed member for older Strata versions, frozen, is the next commit (the owner chose to keep it).
- src/dsv41, include/strata/dsv41, tests/dsv41, tools/dsv41_lab and data/dsv41 are deleted (no other target
compiled or included them: checked with git grep for includes and CMake references).
- CMake: the STRATA_BUILD_DSV41 block of cmake/strata_gpu_engine.cmake (strata_dsv41_kernels, strata-dsv41, the
ds4_* benches and tests, the hip_extra.h force-include), the CPU-only bench macro (cpu.cmake, CMakeLists.txt),
the DeepSeek default architectures of cuda.cmake and the BMI2-off branch of strata_ggml.cmake. All were behind
STRATA_BUILD_DSV41 (default OFF; the release scripts pass their architectures), so every other target is
configured as before.
- Mac, the two pieces that cannot wait: metal/CMakeLists.txt no longer builds strata_ds4 (it compiled src/dsv41),
and metal/src/engine/exl3_legacy_stub.cpp goes (a member of the strata_metal_kernels glob that included
include/strata/dsv41/exl3.hpp). The other DeepSeek Metal files stay for the separate Metal commit.
- CI: the Metal job builds strata only.
- data/settings-register.json: the 42 names only the DeepSeek engine read go; STRATA_FORCE_AVX2,
STRATA_METAL_KEEP_FREE_GB and STRATA_METAL_LEAVE_SHARE keep their other readers. Every other entry is unchanged
(tools/settings_register.py --check: no difference).
- tests/quant/check_no_ggml.sh: no ds4_gg_cpu pattern.
The Python side of the product no longer knows DeepSeek-V4.1-Flash (the refusal of commit 2 answers every way
it can still come in):
- setup.py: MULTI_FILE_FAMILIES / the DSV41_* pins, install_dsv41, mac_dsv41_setup, the engine package fetch and
its helpers, the --check line, the menu row and --family deepseek41 go; model_alias is the identity; a hidden
--dsv41-package answers the "no longer offers" line; the AMD one-card widening and the per-start card memory,
which acted on DeepSeek configs only, go; setup_config.py loses Dsv41Inputs / dsv41_config_for.
- strata_control: dsv41_{context,engine,fit,flags,parallel,paths,sets}.py and gpu_pick.py are deleted;
folder_use.in_use is dsv41_paths.in_use (every package kind used it); updater: no DeepSeek engine step, report
or notice (discover_run_config leaves DeepSeek configs out through retired.py); engine_library: the Qwen family
and the shape engines only ("deepseek" answers the "no longer offers" line); engine_component / engine_update:
no DeepSeek offer; feed.py does not read the dsv41 member (it may stay in the feed for older Strata);
cfg_paths / runtime: no engine-dsv41 repair; models.py: no DeepSeek import preview; the one-line deepseek41
guards in vram_fit, amd_four_card, split_engine, replica_profile go (pictures.py keeps a retired.py guard).
- strata launch: no DeepSeek rows, Speed step, tuner, context list, picture tower, --parallel words or engine
package; --dsv41-package, --speed, --full-quality and --dspark stay hidden and answer the "no longer offers"
line. The --context help loses its DeepSeek parenthesis ([DRAFT] until the owner reads it).
- tools/strata_mcp.py (the catalog of the app, the Terminal and the MCP tools): no DeepSeek rows or plans; rows keep
"multi_file": False, "disk_gb" / "rdna4_faster": None as every Qwen size had them.
- tests: the DeepSeek-only files go (tests/terminal 21 + the launch speed file, tools 4, fixtures); the DeepSeek
cases leave the shared ones; the snapshot matrix loses its DeepSeek set and its 8 goldens (every Qwen golden is
unchanged byte for byte); new: each dropped launch flag answers the line, an engine-dsv41 folder is neither
listed nor touched, a DeepSeek config is left as it was by the path repair.
moe_fused.cu and moe_fused_iq.cu (and on HIP moe_f16_kq.cu) leave strata_mmq, the
library of llama.cpp's MMQ kernels, for strata_pf_own. With MMQ (every build today)
strata_pf_own is compiled with strata_mmq's include directories, definitions and
options (strata_pf_own_mirror) and strata_mmq links it PUBLIC, so every target
that linked strata_mmq gets the same objects as before. No source file changes.
This is step 1 of P4-SPLIT: a build without MMQ that keeps the fused kernels.
The gfx906 build adds moe_f16_kq.cu to strata_pf_own (beside moe_fused_iq.cu,
which calls it); tools/test_gfx906_build_files.py follows. The CUDA spill guard
also checks strata_pf_own.
Until now, under `auto` a cc 6.0 card used llama.cpp's reader for F16 reader files (Qwen3.6, Unsloth's Qwen3.8 F16 file) at 1,024 picture tokens or fewer, because ours is slower there. It now uses our reader, as it already did for BF16 files and above 1,024 tokens. This follows the owner's rule of 11-11: our own code is the default where its accuracy gates pass, even where it is somewhat slower.
P100, Qwen3.6 F16 reader file, 18 pictures, against the x86 llama.cpp CPU references:
- ours: rule 1 0.999865 / 0.999969 (min / mean), smallest single token 0.9962;
- llama.cpp's GPU reader: 0.982913 / 0.994036, single tokens down to 0.19.
- time: 1,064 / 263 / 194 ms against 916 / 224 / 160 ms at 1,024 / 350 / 260 tokens.
llama.cpp's reader stays selectable through the Picture reader setting (STRATA_VISION_TOWER=mtmd) and stays the start fallback.
Pascal 6.1 / 6.2 (GTX 10xx, Jetson TX2) are not measured. They keep llama.cpp's reader up to the default limit, as before.
The unit test lines in test_gguf_geometry.cpp now match the new rule. The reason the reader gives on 6.1 / 6.2 says "not measured".
On compute capability 6.x the CUDA picture reader already used a 32M-score attention chunk for BF16 files, which it holds as F16. F16 files (Qwen3.6, and Unsloth's Qwen3.8 F16 file) kept the 16 MB chunk. They now take the 32M chunk as well.
P100, Qwen3.6 F16 reader file, median of 5 encodes:
- big1024 (1,024 tokens): 1,243 -> 1,064 ms
- code4217 (350 tokens): 270 -> 263 ms
- shapes (260 tokens): 200 -> 194 ms
- rule 1 against the x86 llama.cpp CPU references: 0.999865 / 0.999969 (min / mean over 18 pictures), unchanged
- 48 MB more GPU memory than the 16 MB chunk
Host code only (load()); no device code changes, and other card classes are unaffected.
Lane COVER (phaseA-tests\par\RESULTS-COVER.md, 11-11) read the Windows ROCm package: its rocBLAS has tuned
kernels for gfx110x and gfx1151 for BF16 -> BF16 and F16 -> F16 with float32 accumulation (Tensile
BB_HPA, HH_HPA, every transposition), and only the generic fallback kernels for BF16 / F16 -> F32
(BS_HPA, HS_HPA), which our products ask for. mtmd's reader asks for the 16-bit result on RDNA3 and
RDNA3.5 (ggml-cuda.cu, prefer_f32_output).
- STRATA_VIT_HPA16=1: the 16-bit weight products ask rocBLAS for a result in the weight's type (BF16 or
F16) with HIPBLAS_COMPUTE_32F, into a 16-bit buffer, then a kernel widens it to float32 for the rest of
the layer. The result is the float32 sum rounded once to 16 bits, as mtmd's GPU reader keeps it.
- STRATA_VIT_HPA16_ATT=1: the same for the attention's P*V product (F16 -> F16). The score product
S = K Q^T is already F16 -> F16 with float32 accumulation (HH_HPA).
- The 16-bit buffers are taken only when a switch is on. HIP builds only; the CUDA device code is unchanged.
- With no switch set the reader runs exactly as before.
Owner, 11-11: "For Strix - use our reader, even if its a bit slower. We can always tune it better
afterwards. Our priority is to get off ggml and llama.cpp."
- vit_gpu_slower_amd is gone: gfx1151 no longer keeps llama.cpp's reader. On Strix our reader takes
1.95 / 2.61 of llama.cpp's time on big1024 / code4217 (hipBLAS products; RESULTS-OWN-3V.md PART F),
and passes rule 1 and rule 2 on 18 pictures with both models (12.14).
- The Windows HIP hold now leaves out gfx1151, the one card measured with the Windows HIP package:
vit_gpu_hip_windows_not_measured(windows, gfx). Every other Windows HIP card keeps llama.cpp's reader
under auto as before; Linux HIP is unchanged.
- llama.cpp's reader stays selectable (the Picture reader setting, --tower mtmd) and still takes over by
itself when ours does not start.
- Unit test: gfx1151 (with and without a feature suffix) on Windows takes ours; gfx1201, gfx1100 and
gfx1150 on Windows keep llama.cpp's reader; Linux takes ours.
f-own-4a's five commits (K-quant occupancy-launch trial switch STRATA_PF_KQ_OCC and its settings-register entry,
tools/force_check.py neutral-writer gate, Q5_0 down fused by default on gfx12 Linux, IQ2_XXS / IQ2_XS gate/up fused
by default on gfx12 Linux) on top of f-own-4x 9e19948ff.
The merge applied without conflicts. In src/prefill/moe_fused_iq.cu every line f-own-4a changes is HIP-only
(occ_blocks, q50_on's gfx12 branch, gfx12_iq2x_default, the gfx12 default list in native_supported, the HIP launch's
occ_gu / occ_d) and every line f-own-4x changes is CUDA-only or test-only, so both sides' behaviour is kept as it was:
the CUDA rules (including the sm_120 default rule) are f-own-4x's, the HIP rules f-own-4a's. data/settings-register.json
takes both sides' entries.
Conflict: tools/test_setup_llama_archive.py, deleted on f-own-int (e43ff9885, no llama.cpp archive
download in the own stack) and changed on main (fd40eb0fd, its urlopen mock moved to netpolicy):
kept deleted.
On gfx1151 (Strix Halo) the Windows package's rocBLAS has only its generic fallback kernels, and the
tower's hipBLAS products made it 1.7 to 3.0 times mtmd-HIP's time (RESULTS-OWN-3V.md 12.14, section 14).
HIP builds that find hipBLASLt now carry a second path for the products:
- STRATA_VIT_LT=1: the 16-bit weight products (y = x W^T, F32 out, F32 compute)
- STRATA_VIT_LT_ATT=1: the two batched attention products (S = K Q^T, O = V P)
- STRATA_VIT_LT_SOL=<id>: that solution for the weight products instead of hipBLASLt's first heuristic answer
- STRATA_VIT_LT_VERBOSE=1: the solution of every new shape and a summary on stderr
Each call shape gets its solution once per process, by id or as the first heuristic answer that fits a
32 MB workspace, never by timing, so two processes run the same kernels. A shape hipBLASLt cannot run, or
a launch that fails, goes to hipBLAS as before. The float32 patch product stays on hipBLAS. With no
switch set the reader runs exactly as before; the rule that keeps mtmd on gfx1151 is unchanged.
- "READY <n> own|mtmd [fallback]" (strata-vision 59e075881); Vision.reader keeps the word (None for an older reader's "READY <n>"); only the start "READY" was ever checked, so older servers read the new line as before
- the line (owner-approved 11-11): "[strata] Strata's picture reader did not start; pictures are read with llama.cpp's reader. Details are in the log."
- tests (tools/test_vision_reader.py): three READY forms and an older reader, the fallback line said once with no second start, and the run config's STRATA_VISION_TOWER reaching the reader's environment (no reader argument added)
tools/image/gate/run_strata_image.py: one strata-image process per prompt x seed, run_set.py's gate prompts and file
names (pics/<tag>/p<i>_s<seed>.png, .log, .json, results.jsonl with the stage times under run_set.py's names plus
open_s / png_s and the memory per stage), so compare.py and the floor / speed tables read both alike. Test-only.
Test: tools/test_run_strata_image.py with a stand-in program (command line, files, records, a failing picture);
p1006 11 passed with the image part tests (p1006-20261111-0745-aa7e).
src/image/pipeline/qi21_glue.cpp (include/strata/image/qi21_image.hpp): the starting latent from the noise
(DiscreteFlowDenoiser::noise_scaling on a zero latent), the condition from the text encoder's rows (apply_token_weights,
then the system rows dropped) and the decoder output to 0..1 (scale_tensor_to_0_1), each in sd.cpp 2988060's float
order with contraction off; and the PNG parameters text. Used only by the strata-image test program; nothing shipped
calls it.
Tests: tools/test_qi21_glue.py (numpy float32 expectations, -O2 and -O3 -ffp-contract=fast; p1006 2 passed);
strata-glue-check on sd.cpp's own dumps on the GB10: the starting latent from sd.cpp's noise.bin is byte-identical
to its first DiT input at 512 and 1024, seeds 42 and 1234 (dgxspark-20261111-0744-db66).
- the default tower is `auto` (was mtmd); without --tower, STRATA_VISION_TOWER=mtmd|own|auto decides (the run config's env carries it when someone picks llama.cpp's reader; an older strata-vision ignores it); an explicit --tower wins
- `auto` now takes ours on Metal (gate passed on the M5 Max, RESULTS-OWN-3V.md D1/D4-D8) and on MSVC x86 builds (rule cab87a2e8 removed: 0.986 of mtmd-CPU since 54f9cc3c0, D2)
- kept: gfx1151, Pascal with F16 matrices at <= 1,024 tokens, x86 without AVX2; new hold: every card on Windows HIP (not measured with the Windows ROCm package; remove when one RX 9000 / RX 7000 run on Windows is in)
- under `auto`, a failure of ours before READY (no GPU, the load, the warm-up) writes nothing on stdout; strata-vision logs the reason and starts mtmd's reader in the same process; `--tower own` keeps its hard failure
- READY names the reader: "READY <n> own", "READY <n> mtmd", "READY <n> mtmd fallback" (servers read only the start)
- test hook STRATA_VIT_TEST_FAIL=gpu|load|warmup; unit tests for the default, the Windows HIP hold, the soft start and the hook (p2006 job p2006-20261111-0743-7d3b: strata-vision-own-test ok, cpu-test all passed)