docs: S0.7 vanilla comparator arms, classification of upstream default rows, vanilla start-up evidence (STRA-247)
New page docs/experiments/2026-10-28-s0-7-vanilla-arms.md: binary provenance and digest of the vanilla engine on the 5090 server, the CPU-family lines at the pin (generate.cpp 3485/3687), one class and a pin file:line for each row of the digest section 1.3, row (b) as a literal one-variable list, Linux launch commands verified by three start-ups and one short request, the Windows command marked UNVERIFIED-ON-WINDOWS, the vanilla_cpu_family block. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 5.5
parent
2457d81d16
commit
fbd4ef8564
@@ -0,0 +1,279 @@
|
||||
# S0.7 Vanilla comparator arms: shipped defaults and lossy-paths-off (STRA-247)
|
||||
|
||||
Date 2026-10-28. Leaf STRA-247 of STRA-245. Server evidence (Linux, RTX 5090) is measured on `rnr5090`; the Windows command is
|
||||
UNVERIFIED-ON-WINDOWS until STRA-254 runs it on the laptop. Nothing on this page was run at 256k and nothing touched the laptop.
|
||||
|
||||
## 1. What this page fixes
|
||||
|
||||
Two vanilla comparator arms for the pass/fail rows of E4:
|
||||
|
||||
- arm (a): vanilla Strata at its shipped defaults;
|
||||
- arm (b): the same vanilla with its LOSSY default paths switched off (section 4: exactly one variable on the pinned build).
|
||||
|
||||
It also records what vanilla prints about its CPU kernel family at start-up (section 7), and where the per-turn TTFT, decode tok/s and
|
||||
per-round timing come from (section 6).
|
||||
|
||||
## 2. Binary and source provenance
|
||||
|
||||
- Source read: `engine/strata` of the branch worktree `.git/wt/stra-247` (branch `claude/stra-247` off `claude/merge-opt` 2457d81d),
|
||||
never the main checkout (that one is on `main` at the old pin `d9ab8435`, engine 0.1.35; the former generate.cpp lines 1715 and 1791 come from it).
|
||||
- Pin read from `docs/upstream.md`, "Current pin": upstream commit `41cf05a06a25dd29103b7b27a2279a3f60c21876` (short `41cf05a0`),
|
||||
engine and Control 0.1.50, Terminal and app 0.2.5.
|
||||
- Comparator installed on the server (`~/work/vanilla-strata`, read only here): the release called 0.2.6.
|
||||
- Control (Python launcher) `VERSION` 0.1.51, `COMMIT` `562a0c2ed7169ff6373f893b162106d55a828297`. The git subject of that commit says the Qwen engine
|
||||
packages stay 0.1.50 and there was no C++ change since 0.2.5.
|
||||
- Engine binary `~/.local/share/strata/components/engine/0.1.50-linux-x86_64-cuda-cuda13/strata`, `BUILD.json` source `f-0243-rel 1aff6d14117b`,
|
||||
cuda 13.0, archs 75, 86, 89, 120; `engine-component.json` `build_id` `1aff6d14117b+cuda13.0`, variant `cuda13`.
|
||||
- The question left open by the inference "pin = app 0.2.5, comparator = release 0.2.6" is narrowed by git, not closed:
|
||||
`git diff --name-only 1aff6d14 41cf05a0 -- src include serve cmake CMakeLists.txt third_party` lists 0 files, so the sources the binary says it was built from
|
||||
(`1aff6d14`, the commit "Version 0.2.5") and the pin have the same engine tree. Between the pin and the release commit `562a0c2e`, `git diff --stat 41cf05a0 562a0c2e -- serve src include`
|
||||
shows `serve/server.py` (7 lines: a one-token reply shows no tok/s, an empty messages list is a 400), `serve/frontend.py` (7 lines), one line of `src/program/generate.cpp`
|
||||
(a comment) and DeepSeek-only files. The line numbers below are therefore the pin's, and they describe the installed engine.
|
||||
Not verified: that the binary was compiled from that tree with the flags of this repository's CMake; upstream's packaging recipes were not run here (`docs/upstream.md`).
|
||||
|
||||
Binary identity, commands run on the server and their output:
|
||||
|
||||
```
|
||||
$ strata --version
|
||||
strata 0.1.50
|
||||
$ sha256sum <engine dir>/strata
|
||||
ae49d5da81b9b65d50af1108c4b3f8b289ee198d9992d66268b7e885cf1a4776 strata
|
||||
$ sha256sum ~/work/vanilla-strata/dl/strata-engine-0.1.50-linux-x86_64-cuda-cuda13.tar.gz
|
||||
90c601dc1060af48aaccf85062975a11c4ae25690ec242e3bc93e99457c9380b (equals the line of dl/SHA256SUMS.txt)
|
||||
```
|
||||
|
||||
The binary's digest equals the `strata` entry of `engine-component.json` (214,533,384 bytes).
|
||||
|
||||
## 3. The CPU-family lines of the pin (AC1)
|
||||
|
||||
Command, run in `.git/wt/stra-247`: `sed -n '3485p;3687p' engine/strata/src/program/generate.cpp`. Output:
|
||||
|
||||
```
|
||||
std::fprintf(stderr, "strata generate: this CPU (%s) does not support AVX2 with FMA and F16C, which this engine's "
|
||||
std::fprintf(stderr, "strata generate: this CPU has no AVX-512: the expert kernels run on %s "
|
||||
```
|
||||
|
||||
- generate.cpp:3485-3490 the refusal: "this CPU (%s) does not support AVX2 with FMA and F16C", then `return 2` (exit status 2).
|
||||
- generate.cpp:3502 and 3505: notes of the experimental older-CPU build (`isa_floor` builds).
|
||||
- generate.cpp:3674-3677: a canonical Q2_0 pack (no `native_experts.txt`) on a CPU without AVX-512.
|
||||
- generate.cpp:3687-3692: "this CPU has no AVX-512: the expert kernels run on <AVX-2 | AVX1 128-bit | ggml-cpu vec_dot>
|
||||
(multi-token for the i-quant gate/up rows)", reached for a native pack when `cpu_avx512_ok()` is false.
|
||||
- `cpu_avx512_ok()` is `src/kernels/cpu/expert_layout.cpp` from line 42: false under `STRATA_FORCE_AVX2=1` (line 44), under `STRATA_FORCE_ISA` below the AVX-512 level
|
||||
(`cpu_isa_cap()` lines 26-38), and when CPUID or XCR0 lacks the bits.
|
||||
- The 512-bit IQ-row gating (`STRATA_NO_IQ512`, `STRATA_NO_IQ256`, the gather switch; `src/kernels/cpu/native_expert.cpp` 300-340) prints nothing.
|
||||
On AVX-512 hardware vanilla prints nothing about its kernel family.
|
||||
|
||||
## 4. Classification of every row of section 1.3 of `docs/upstream-digest-2026-10-25.md` (BA D8, E4)
|
||||
|
||||
The digest section 1.3 has 11 data rows. The table below has one row for each, in the digest's order, with exactly one class.
|
||||
Classes (by mechanism, not by a KL threshold):
|
||||
|
||||
- LOSSY: the path leaves out or approximates model work that the baseline path does; the output can differ by more than a reordering of the same arithmetic.
|
||||
- ROUNDING-ONLY: the same arithmetic on the same operands in another kernel or order; only floating-point rounding differs.
|
||||
- PLACEMENT-OR-SCHEDULING: the same work on another device, at another time or in another buffer layout (cache slots, copies, chunking, graph launch),
|
||||
or work that does not touch the verified output (the drafter, a guard, request framing).
|
||||
|
||||
A row that bundles several switches takes the class of its most output-changing member; the members are listed under the table.
|
||||
All line numbers are in `engine/strata` at the pin.
|
||||
|
||||
| # | Digest row | Class | Evidence at the pin | In row (b) list |
|
||||
|---|---|---|---|---|
|
||||
| 1 | `STRATA_ROUTE_TAIL_SKIP=7` | LOSSY | `src/core/expert_source.cpp:5083` a skipped tail expert contributes zero (memset of its row); default decision `src/program/generate.cpp:10110-10155` (ON unless all experts resident, 90 percent or more cached, NVFP4, batch or peer GPU) | yes: `STRATA_ROUTE_TAIL_SKIP=0` |
|
||||
| 2 | PcieAuto | PLACEMENT-OR-SCHEDULING | `src/program/generate.cpp:2195-2196` (share of missed experts refined from measured CPU and link rates), enabled at `generate.cpp:3649`, off with `STRATA_PCIE_FRAC_DEFAULT=old` (3618-3619) | no |
|
||||
| 3 | `STRATA_PREFILL_CPU_SHARE=auto` below 1024 tokens | PLACEMENT-OR-SCHEDULING | `src/prefill/prefill.cpp:202-206` and the printed note at 2425-2429: the idle CPU pool takes experts the GPU would stream; the same experts, other device; upstream measures mean KL about 0.004 (borderline, see B1) | no |
|
||||
| 4 | `STRATA_RING_BYTES` (#583) on native packs | PLACEMENT-OR-SCHEDULING | `src/prefill/prefill.cpp:294-297` and 306-309: ring slots, cache loan and auto chunk list change, so the prompt's experts are read through another mix of resident and streamed groups | no |
|
||||
| 5 | sm_120 set and `PF_FUSED` on 80+ SM cards | ROUNDING-ONLY | `include/strata/core/sm120_series.hpp:4-17` (the set is bitwise; `PF_FUSED` "rounds differently, KL-checked"); `src/prefill/moe_fused_iq.cu:4-12` (int8 codebook weights, int32 dot, exact until one float add) and 1407-1419 (default gate: 12.0 card, 80+ SMs; KL against MMQ 0.0002 over 5998 positions) (borderline, see B2) | no |
|
||||
| 6 | sm_86 set and `DEQUANT_WIDE` | PLACEMENT-OR-SCHEDULING | `src/core/nv_defaults.cpp:26-34` (nine switches), `generate.cpp:1538-1551` (`ADAPT_NOWAIT`, `ADAPT_LAG=2`: when swapped-in experts become usable), `src/kernels/cpu/native_expert.cpp:323-326` (`CPU_IQ_ALL_EXACT1`), `src/kernels/cuda/dequant_bf16.cu:200-203, 283-289` (bitwise) | no |
|
||||
| 7 | async adaptive tier chosen by measurement | PLACEMENT-OR-SCHEDULING | `include/strata/core/adapt_async_default.hpp:1-12` (not bit-exact run to run, as the adaptive tier itself), `generate.cpp:8188-8200` | no |
|
||||
| 8 | bitwise switches (`COMMIT_BATCH`, `ONE_TOKEN_COMMIT`, `HEAD_MIX_MULTI`, multi-block argmax, fused norm+rope, `MMVQ_IL`, cluster top-k and argmax, MTP catch-up skip, `SH_FORK_LATE`) | PLACEMENT-OR-SCHEDULING | `sm120_series.hpp:4-12` (bitwise equal to the kernels they replace), `src/core/verify.cpp:169` (`MMVQ_IL`), 304-310 (`HEAD_MIX_MULTI`), 1962-1964 (`SH_FORK_LATE`), `src/core/mtp.cpp:73-80` (the drafter's K/V catch-up for rejected rows is skipped by default: drafter state only, the verified tokens are the verifier's) | no |
|
||||
| 9 | `STRATA_NAN_GUARD=1` | PLACEMENT-OR-SCHEDULING | `src/core/verify.cpp:4151-4158`, `include/strata/core/verify.hpp:109-113`: a device check of the head logits for NaN or infinity, recorded in the window graph; it changes no value | no |
|
||||
| 10 | conversation cache auto, `--ple-inflight` 256, `--ple-io direct` stays direct | PLACEMENT-OR-SCHEDULING | `include/strata/core/conversation_memory.hpp:70` and `generate.cpp:9508` (RAM budget of parked conversations), `generate.cpp:491` (outstanding reads), `generate.cpp:4126-4184` (PLE I/O mode) | no |
|
||||
| 11 | server: model-card sampling when a request sends none, `max_tokens` keeps room for the answer, empty assistant turns dropped | PLACEMENT-OR-SCHEDULING | `serve/server.py:5082-5087` (the request's own fields win; explicit 0 stays greedy), 8051-8068 (`MODEL_CARD_SAMPLING`), 4890-4907 (output cap clamped to the room left; "requests are never truncated"); a request-framing row that is neutralised by explicit sampling and `max_tokens` (E7(b)); the "empty assistant turns" change was not located at the pin by grep and is not covered by the neutralisation | no |
|
||||
|
||||
Members of the bundled rows:
|
||||
|
||||
- Row 5: `STRATA_SIDE_MIXER=2`, `STRATA_ATTN_DAILY=1`, `STRATA_GR_UP75=1`, `STRATA_GR_DOWN_TG=1`, `STRATA_GU_SWIGLU=1` (bitwise, `sm120_series.hpp:7-12`) and `STRATA_PF_FUSED` (rounds differently).
|
||||
Off switches: `STRATA_SM120_PERF=0` (the set) and `STRATA_PF_FUSED=0`.
|
||||
- Row 6, on a compute capability 8.6 card only (the RTX 3080 laptop; not on the 5090): `ADAPT_NOWAIT=1` and `ADAPT_LAG=2` (placement and timing of adaptive swaps),
|
||||
`CPU_IQ_ALL_EXACT1=1` (ggml's AVX2 single-token dot bit for bit; active only on a CPU without AVX-512 in the process, `native_expert.cpp:323-338`, so inactive on both of the owner's machines),
|
||||
`SIDE_MIXER=2`, `ATTN_DAILY=1`, `GR_UP75=1`, `GU_SWIGLU=1`, `QSA_ROWS=1`, `B6_MMVQ_ROWS=1` and `DEQUANT_WIDE` (bitwise per the comments above; not each re-proved here).
|
||||
Off switch: `STRATA_SM86_PERF=0`.
|
||||
- Row 8: the digest says "no" for output change; this page read `sm120_series.hpp` and the lines cited and did not re-prove each switch.
|
||||
|
||||
Borderline rows, stated so that nobody has to guess:
|
||||
|
||||
- B1 (row 3): the CPU prefill share has the same measured KL order as the tail skip (about 0.004 against 0.003 to 0.006, `generate.cpp:10112`) but executes every expert. Classified by mechanism.
|
||||
- B2 (row 5): `docs/upstream-port-plan.md` row 3.2 labels `PF_FUSED` lossy; the kernel is an exact int8 dot with one float add per 32 values (`moe_fused_iq.cu:4-12`), and its measured KL against MMQ is 0.0002.
|
||||
- If the owner or TECH_LEAD prefers a KL threshold, B1 and B2 move to LOSSY and row (b)'s list gains `STRATA_PREFILL_CPU_SHARE=0` and `STRATA_PF_FUSED=0`; arm (a) does not change.
|
||||
Until someone decides that, row (b) is the one-variable list below. No series starts on a row that is not classified (STRA-246 checks the list against this table).
|
||||
|
||||
Row (b) environment, a literal list (the only LOSSY row):
|
||||
|
||||
```
|
||||
STRATA_ROUTE_TAIL_SKIP=0
|
||||
```
|
||||
|
||||
Instrumentation set in both arms, log lines only: `STRATA_DECODE_TIMING=1`, `STRATA_VERIFY_PROFILE=1`. Arm (a): no other `STRATA_*` variable.
|
||||
|
||||
## 5. Linux commands (VERIFIED on the server, 2026-10-28)
|
||||
|
||||
Run directory `~/work/leleka-e2e/runs/stra247-vanilla-arms/` on `rnr5090` (outside Git). The GPU was idle (2 MiB used, no compute process) and the holder
|
||||
job (`kar_holder2.py`) was idle before each start; one engine at a time. The launcher's own state (`xdg-config`, `xdg-state`) was redirected into that directory
|
||||
with `XDG_CONFIG_HOME` and `XDG_STATE_HOME`, so nothing in `~/.config/strata` or `~/.local/state/strata` was written (their file times are unchanged);
|
||||
`settings.json` was copied from `~/.config/strata/settings.json`.
|
||||
|
||||
```
|
||||
export XDG_CONFIG_HOME=$R/xdg-config XDG_STATE_HOME=$R/xdg-state # R = the run directory
|
||||
export STRATA_DECODE_TIMING=1 STRATA_VERIFY_PROFILE=1
|
||||
# arm (b) adds: export STRATA_ROUTE_TAIL_SKIP=0
|
||||
# control adds: export STRATA_FORCE_AVX2=1
|
||||
cd ~/work/vanilla-strata/control
|
||||
bin/strata launch --model iq3_s --family qwen --model-path /home/para/leleka-gates/assets/model \
|
||||
--context 256k --kv int8 --vision off --parallel 1 --tune skip --access local --port 8090 --no-tui --yes
|
||||
# ... one request (section 6) ...
|
||||
bin/strata launch --stop
|
||||
```
|
||||
|
||||
`--vision off` matches the earlier launch config (`vision: off`); without it the launcher wants to download a 0.9 GB picture reader. The engine arguments the launcher
|
||||
produced are the ones of the earlier launch (`--pack .../packs/iq3_s --native .../Qwen3.8-Flash-Next-GSQ-RCO-IQ3_S-00001-of-00002.gguf --ple-gguf ...-00002-of-00002.gguf
|
||||
--expert-profile .../control/data/expert-profile.bin --expert-cache auto --prefill auto --spec 4 --spec-min-p 0.5 --mtp .../Strata-data/mtp/rt --max-context 262144 --kv int8 --ple-io ram
|
||||
--kv-resident 32768`). Wall time from launch to ready: arm (a) 262 s, arm (b) 286 s, control 204 s (page cache state not controlled; these are not a measurement of anything).
|
||||
|
||||
Raw logs, kept outside Git: `arm-a/`, `arm-b/`, `arm-control/` each with `env.txt` (the environment given), `launch.out`, `engine.log`; `arm-a/` and `arm-b/` also `request.json`, `response.json`, `request.meta`.
|
||||
Digests of the engine logs: `arm-a` `7f590a74cff9e5af...`, `arm-b` `1c27b67529e75ce1...`, `arm-control` `354f902da14703a9...` (sha256 prefixes).
|
||||
Capturing `/proc/<pid>/environ` of the engine worked for arm (a) only (it showed `STRATA_DECODE_TIMING`, `STRATA_VERIFY_PROFILE`, `STRATA_NO_ACQUIRE`, `STRATA_RUNTIME_PROFILE`; the last two are set by the launcher);
|
||||
for arm (b) and the control the capture wrote an empty file (the `pgrep` pattern most likely matched the shell running it, not the engine), so the effect of `STRATA_ROUTE_TAIL_SKIP=0` and `STRATA_FORCE_AVX2=1` is shown by the logs (sections 8 and 7), not by the process environment.
|
||||
|
||||
Windows command, UNVERIFIED-ON-WINDOWS (written from `engine/strata/strata_cli`, `strata_control/paths.py:19-21` which puts per-user state in `%LOCALAPPDATA%\Strata`, and
|
||||
`docs/laptop-vs-vanilla.md`; STRA-254 verifies it on the laptop and records the printed lines):
|
||||
|
||||
```
|
||||
$env:STRATA_DECODE_TIMING = '1'; $env:STRATA_VERIFY_PROFILE = '1'
|
||||
# arm (b) adds: $env:STRATA_ROUTE_TAIL_SKIP = '0'
|
||||
strata launch --model iq3_s --family qwen --model-path <folder with the two IQ3_S shards> --context 256k --kv int8 --vision off --parallel 1 --tune skip --access local --port 8090 --no-tui --yes
|
||||
```
|
||||
|
||||
On the laptop (compute capability 8.6) the sm_86 row of section 4 applies and the sm_120 row does not; `docs/laptop-vs-vanilla.md` section 11 already ran vanilla with the tail skip off there
|
||||
(its engine log has no "ROUTE_TAIL_SKIP=7 is ON" line and no skip counters).
|
||||
|
||||
## 6. The short request and the log lines for TTFT, decode tok/s and per-round timing (AC4, AC6)
|
||||
|
||||
Request (about 1,263 prompt tokens, below 2k; greedy and `max_tokens` explicit). The generator and the command are the same for both arms:
|
||||
|
||||
```
|
||||
python3 - > request.json <<'PY'
|
||||
import json
|
||||
body = "\n".join("Line %d: the quick brown fox jumps over the lazy dog %d times." % (i, i) for i in range(1, 61))
|
||||
prompt = ("Below are 60 numbered lines. Read them, then write a long, detailed essay about foxes and dogs. "
|
||||
"Do not stop early.\n\n" + body)
|
||||
print(json.dumps({"model": "qwen3.8-flash-next-iq3_s",
|
||||
"messages": [{"role": "user", "content": prompt}],
|
||||
"temperature": 0, "top_k": 1, "max_tokens": 50, "stream": False}))
|
||||
PY
|
||||
curl -sS -m 600 -H 'Content-Type: application/json' -d @request.json http://127.0.0.1:8090/v1/chat/completions > response.json
|
||||
```
|
||||
|
||||
E7(b), whether vanilla honours the explicit values: the response of both arms reads (field `usage.completion_tokens`, `finish_reason`)
|
||||
|
||||
```
|
||||
"finish_reason": "length" "usage": {"prompt_tokens": 1263, "completion_tokens": 50, "total_tokens": 1313, ...}
|
||||
```
|
||||
|
||||
so vanilla stopped at exactly 50 tokens, the cap, with no end-of-sequence before it. Greedy is consistent with the evidence, not proved by it: the 50 reply tokens (the `reasoning_content`; the model was still in its thinking)
|
||||
have the same sha256 (`a60f13aaf7a486cb...`) in arm (a) and arm (b). The code reads: the request's own fields win over the model card's sampling, and an explicit 0 stays greedy (`serve/server.py:5082-5087`).
|
||||
No end-of-sequence suppression was needed for this request; for a run that must produce a fixed length with a model that may stop earlier, that mechanism was not located and is not claimed.
|
||||
|
||||
Where each quantity is logged. One sample line each, from arm (a), the short request (not a 256k run; the first requests of an engine include CUDA graph captures, so these numbers are
|
||||
samples of the format, not a measurement and not a comparison between arms: arm (a) decoded this request at 57.4 tok/s and arm (b) at 145.3 tok/s, which says nothing about the arms):
|
||||
|
||||
- Per-request prompt read time (the TTFT component) and decode tok/s, always printed by the serve path (`generate.cpp:15669`), also in the response JSON `timings` (`prompt_ms`, `predicted_per_second`):
|
||||
|
||||
```
|
||||
strata serve: prompt 1263 tokens = 0 reused + 1263 read in 1595 ms (792.0 tok/s), 50 generated in 872 ms (57.4 tok/s), drafts accepted 30 of 40, 1 checkpoints
|
||||
```
|
||||
|
||||
- STRATA_DECODE_TIMING=1 (`generate.cpp:14343-14344`), one line per request, per-round (per window) timing:
|
||||
|
||||
```
|
||||
strata decode timing: 20 windows, avg T 3.00, 2.50 tokens/window, 43.58 ms/window = verify 41.65 (GPU-reach wait 8.80 + per-layer host 31.36 [plan 0.09 actq 0.08 jobs 0.02 CPU 2.24] + stage 28.93) + commit/emit 0.02 + draft 1.00; per layer-window: CPU experts 1.01 (1.79 entries), VRAM hits 26.18, PCIe 0.62; adapt wait 0.89 join 0.02, 24.0 swaps/window
|
||||
```
|
||||
|
||||
- STRATA_VERIFY_PROFILE=1 (`src/core/verify.cpp:953`), the per-stage split of the window, printed with the line above (first 220 characters; the line continues with the QSA layers):
|
||||
|
||||
```
|
||||
strata decode GPU stages (ms/window): GDN layers: q8+qkv/q-idx gemv 0.77 conv 0.11 ab 0.02 z 0.02 rec 0.28 out-proj 0.58 router+plan+bell 0.45 shared+quant 0.61 waitA 0.24 VRAM hits 1.27 waitB 1.33 PCIe grp 0.18 waitCPU 27.64
|
||||
```
|
||||
|
||||
The launcher sends a 53-token warm-up request first; its lines are the first `strata serve: prompt 53 tokens` and `strata decode timing: 1 windows` lines of each log. The 1,263-token request is the second pair.
|
||||
Per-turn TTFT of a streaming session is measured by the client (STRA-246's schema); the engine's `read in ... ms` is the server-side part.
|
||||
|
||||
## 7. `vanilla_cpu_family` (ARCHITECT comment 395f0394 section 2)
|
||||
|
||||
Determined by negative line + control + predicate, not "printed":
|
||||
|
||||
- (a) Printed lines: none on the normal start-ups. `grep -c "no AVX-512"` on the normal start-up logs: arm (a) 0, arm (b) 0.
|
||||
- (b) Reading rule: on a native pack the absence of the generate.cpp:3687 line means `cpu_avx512_ok()` was true in that process; the line means false. A negative indicator only; the silent 512-bit IQ-row gating (`STRATA_NO_IQ512` and others) is not covered.
|
||||
- (c) Positive control: a start-up with `STRATA_FORCE_AVX2=1` and nothing else changed (`arm-control`). `grep -c "no AVX-512"` on its log: 1. The line, verbatim (log line 4, before the pack is read):
|
||||
|
||||
```
|
||||
strata generate: this CPU has no AVX-512: the expert kernels run on AVX-2 (multi-token for the i-quant gate/up rows)
|
||||
```
|
||||
|
||||
- (d) Predicate dump from a build of the same pin: moved to STRA-307. Its result (branch `claude/stra-307`, commits e94369a1 and 20f7abab, page `docs/experiments/2026-10-28-s0-7c-vanilla-predicate-dump.md`, verdict QA PASS and TL APPROVE
|
||||
recorded on the item): on the server `iq_avx2_parity` built from the pin prints `avx512 1` with the `STRATA_*` variables scrubbed and `avx512 0` with `STRATA_FORCE_AVX2=1`.
|
||||
It proves the predicate of the pin's source, not the release binary; this page adds the binary's own control line (c).
|
||||
- (e) Binary identity: section 2 (`strata 0.1.50`, sha256 `ae49d5da...4776`).
|
||||
|
||||
The same block as one fenced json block (extract it to a file in the run root, outside Git, for the key check):
|
||||
|
||||
```json
|
||||
{
|
||||
"vanilla_cpu_family": {
|
||||
"printed": "none printed",
|
||||
"reading_rule": "native pack: absence of the generate.cpp:3687 line means cpu_avx512_ok() was true in that process (negative indicator only); the line means false",
|
||||
"control": {
|
||||
"env": "STRATA_FORCE_AVX2=1",
|
||||
"printed": "strata generate: this CPU has no AVX-512: the expert kernels run on AVX-2 (multi-token for the i-quant gate/up rows)"
|
||||
},
|
||||
"predicate": {
|
||||
"tool": "iq_avx2_parity built from pin 41cf05a0 (STRA-307, claude/stra-307 e94369a1+20f7abab)",
|
||||
"output": "avx512 1 (STRATA_* scrubbed); avx512 0 (STRATA_FORCE_AVX2=1)"
|
||||
},
|
||||
"binary_identity": {
|
||||
"engine_version": "strata 0.1.50",
|
||||
"sha256": "ae49d5da81b9b65d50af1108c4b3f8b289ee198d9992d66268b7e885cf1a4776"
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
The key check of this leaf (a command that does not need STRA-246); the full `validate.py` check of the block inside a vanilla S0.1 record is deferred to STRA-315:
|
||||
|
||||
```
|
||||
python -c "import json,sys;d=json.load(open(sys.argv[1]));b=d.get('vanilla_cpu_family',d);p=b['predicate'];assert set(b)=={'printed','reading_rule','control','predicate','binary_identity'};assert set(b['control'])=={'env','printed'};assert set(b['binary_identity'])=={'engine_version','sha256'};assert (isinstance(p,dict) and set(p)=={'tool','output'}) or (isinstance(p,str) and p.startswith('unavailable:'));print('block keys OK')" <block fixture>
|
||||
```
|
||||
|
||||
## 8. Do the two arms coincide on the server? (AC3)
|
||||
|
||||
The route tail skip default is decided at start-up (`generate.cpp:10110-10155`). The server logs:
|
||||
|
||||
Arm (a), `grep -n "ROUTE_TAIL_SKIP" arm-a/engine.log`:
|
||||
|
||||
```
|
||||
43:strata serve: STRATA_ROUTE_TAIL_SKIP=7 is ON (default): a missed expert that every token of a verify window routes at rank 7 or lower is skipped (+10..20% decode on 12-16 GB cards that miss experts, answers differ slightly from 0.1.41); STRATA_ROUTE_TAIL_SKIP=0 turns it off
|
||||
```
|
||||
|
||||
Arm (b), `grep -n "ROUTE_TAIL_SKIP" arm-b/engine.log` prints nothing (0 lines). The engine prints a ROUTE_TAIL_SKIP line only when the skip is ON (`generate.cpp:10153`) or off by a default rule
|
||||
(10145 and 10148); with the variable set to 0 explicitly it prints neither, so "off" shows as the missing ON line. The counters agree: arm (a) logs
|
||||
`strata serve: route tail skip: 963 missed experts skipped (1078 entries) since the start` after the warm-up and `2087 missed experts skipped (2293 entries)` after the request;
|
||||
arm (b) logs no such line. The expert cache is 12,575 slots in both arms and 93.6 percent of decode lookups hit it in arm (a), so the 90-percent rule did not switch the default off.
|
||||
The effective configurations of the two arms differ (tail skip ON against off), so on this server the rows differ and E4 has two vanilla arms to pass. The control start-up also printed the ON line
|
||||
(its only change is `STRATA_FORCE_AVX2=1`).
|
||||
|
||||
## 9. Moved to other leaves, and not verified
|
||||
|
||||
- STRA-254: Windows start-up checks of vanilla (the Windows command above is UNVERIFIED-ON-WINDOWS until then), and the printed lines on the laptop.
|
||||
- STRA-307: the predicate dump (section 7 (d)); done on its branch, not merged here.
|
||||
- STRA-315: `validate.py` of the sample block inside a vanilla S0.1 record.
|
||||
- Not verified here: the Windows engine behaviour; that arm (b) changes nothing but the tail skip (the process environment of arm (b) could not be read back, section 5); each bitwise claim of rows 5, 6 and 8
|
||||
(taken from the sources' comments); that the engine binary was compiled from the pinned tree; anything at 256k; run-to-run noise of any timing in this page.
|
||||
Reference in New Issue
Block a user