Design (3 lines): with a RAM park cache (--slot-cache-mib) a park writes no file; a conversation goes to a file when the RAM cache drops it, when it does not fit there, and when the engine stops
(the slots' conversations are parked, then everything in RAM is written, most recently used first, at most one cap's worth); with no RAM park cache it is still written when its slot is overwritten
(the only place it can go). ConvDisk::save removes the earlier turns of the same chat (tokens a strict prefix of the new file's, same pictures) right after the write, and covered() lets the serve loop skip a
conversation that a file (its own or a longer turn of the chat) already serves. Restore, identity checks, the cap and the near-cap handling are unchanged.
Why: REPROC's real app e2e (restart 25 s -> 3.8 s at 43K) found that every park also wrote about 770 MiB in 0.5 s per title or summary request (doubling its cost, many GB per hour of agent chat, SSD wear) and that one
chat left 3 files (2.3 GB). ink_serve.h: disk_write() (serialize + save + log) used by park_make_room (drop), park_current (does not fit; no RAM cache) and the stop pass; ink_conv_disk.h: covered(),
superseded(), the removal; docs/DETAILS.md.
Tests: unit (ink_conv_disk_test): a longer turn removes the shorter file at once and a restart sees one file per chat, covered() (own file, a prefix of a longer turn, not a longer turn, not with another picture);
mock (test_shared_prefix.py, real serve loop, 4 new): with a RAM cache a park writes no file and the stop writes the chat and the helper, a conversation dropped from the RAM cache is written and read back
(reuse 39 of 40), only the newest file of a chat stays (2 files, not 3, and the newest serves the next turn), another chat's file is kept. 4 host tests pass on p1006 (mock suite 51 tests). Not run: the app e2e (REPROC reruns e2e_chain3.sh).
Design (3 lines): the planner (df2_total_mib) reserves the DFlash 2 context rings of the first 8 slots only; the rings of slots 8 and up are taken lazily and only while 1 GiB stays free, so on an
RTX 5090 at 64 slots (1,910 MiB free after start-up, 11-27 bench logs rel0223/bench71: "no GPU memory for slot 25's context ring") slots 25 to 31 of the drafter's 32 had no drafter. With
STRATA_INK_DF2_RING_PLAN=1 the planner counts the rings of every slot the drafter serves (32 on 24 GB and more, 16 below), so the K/V split leaves their room and the 1 GiB rule stays for the rest.
Default OFF: byte-identical reserve and the same refusals as before (up to 8 slots nothing changes either way); the switch flips on the 5090 C64 e2e A/B (1,193 / 1,576 tok/s reference).
ink_df2_budget.h (new, host-only): the ensure_slot room rule (df2_ring_room, now used by InkDFlash2::ensure_slot itself), the drafter's slot count, the planned ring count, a replay of the lazy sequence.
ink_dflash2_path.cuh: df2_total_mib(v, slots, ring_slots = -1) and df2_planned_rings_here; ink_runner.cuh: the two reserve sites pass it. Register entry (opt-in) + docs/SETTINGS.md.
Test ink_df2_budget_test: the rule's edges (slot 1: 170 MiB, slot 8: 1,066 MiB), the 5090 logs reproduced (1,910 MiB free, other lazy buffers 160 MiB: slots 8..24 fit, 25..31 do not; 80 MiB: 27 and up
do not), with the rings in the plan all 24 of slots 8..31 get one also with 800 MiB of other buffers, the ring counts, the switch. Not measured: speed (no 5090 yet); drafting is exact, the tokens do not depend on it.
Design (3 lines): ConvDisk::save made room AFTER writing the new file, so a folder at its cap held the old files and the new one at once, and the chat's own earlier turns stayed next to the
turn that extends them. Now room is made before the write: the file of the same key is replaced, then files this conversation supersedes (their tokens are a strict prefix of it, same pictures),
then the least recently used. The pass at engine stop writes at most one cap's worth (with many slots the later files would only evict the earlier ones).
Why now: Inkling's default context is moving to 128K and a 128K conversation file is about 2.4 GB against the 8 GB default cap (the owner made the cache default ON in the launcher).
ink_conv_disk.h: make_room(), written_bytes(); ink_serve.h: the shutdown loop stops after one cap; docs/DETAILS.md. Test (host-only, ink_conv_disk_test): two 60 KB files under a 100 KB cap leave
one file and never more than the cap on disk, a file replacing itself near the cap, a file larger than the cap refused with the stored one kept and no .tmp left, turn 1 (used last) goes before turn 2
when turn 3 needs room, a different chat is only evicted by use.
Design (3 lines): a conversation parked because another request overwrites its slot, and every idle slot's conversation when the engine stops, is also written as a file (ink_conv_disk.h: identity
string, prefix tokens, pictures, hash; capped, LRU); the first request that continues it, also after a restart, reads it back through the same unpark path as #7620. The backend exports its
ParkedState as bytes (CUDA: the checkpoint plus the global K/V of [0, seq_len), bounds-checked on read) and states what the bytes mean (K/V type and layout, window, drafter state); a file of another
engine build, model, layout, a damaged or cut file is refused and removed (the turn reads cold). No file with a layer split, the elastic 1M tiers, or a backend without the hooks (one log line).
ink_backend.h: ParkedState::serialize, InkBackend::parked_from_bytes / conversation_identity (defaults: cannot). ink_cuda_backend.cu: CudaParked serialize / from_bytes, the identity, and a fix that
unpark_slot grows the global K/V to the conversation's length first (an engine that has just started has not grown it; 8,189 tokens fit the initial capacity, 16K and 32K did not: "could not be
put back"; the in-memory park of #7620 never hit it because the K/V had grown in the same session). ink_serve.h: the disk layer in park_current (write), the park block of prepare_req (read, after the
in-memory store), the shutdown save, ServeConfig conv_cache_dir / conv_cache_bytes; ink_main.cpp: the two flags. docs/DETAILS.md has the section.
Tests: 8 new mock tests (restart reads back and answers as cold, a request that overwrites the slot writes a file and it comes back, another identity ignored and removed, damaged file, larger than the
cap, a backend that cannot export, a picture conversation after a restart only for the same picture) + the unit test of the file layer (47 mock tests pass). Real card, RTX A6000, SQ-20 v2, --draft off,
turn 2 = turn 1 + its answer + a follow-up, first token after an engine restart / the same engine warm / a fresh engine reading it cold: 8K 0.34 / 0.15 / 3.44 s, 16K 0.48 / 0.09 / 7.23 s, 32K 0.78 / 0.11 /
15.79 s (files 218 / 350 / 613 MB, written at stop in 0.6 to 1.1 s). The restored turn's tokens equal the cold read's in 5 of 6 runs (3 sizes, default and STRATA_INK_EXACT=1); the sixth (8K, default mode)
is a pass in which turn 1 itself differed between two identical runs.
"slot_cache_mib": N (MiB of host RAM, 0 or absent = off, the default) in the run config becomes `--slot-cache-mib N` for strata-inkling, only for an engine
that has the option (the flag's name is looked for in the program, as for --tail-role-token; an older engine refuses an option it does not know), and an
option the person put in the arguments wins. The key is in the editable run-config keys. STRATA_INK_SLOT_CACHE_MIB is in the settings register (opt-in)
and docs/SETTINGS.md; the register's line numbers moved with the serve-loop change of the previous commit.
Tests: serve/test_inkling_slot_cache_args.py (engine with and without the option, off values, the person's own flag, a missing program, the key).
Which experts of a token run on the CPU and which on the GPU depends on timing (the adaptive tier's copies landing, the prefill's CPU share),
the CPU and GPU kernels do not give the same last bits, and the draft policy picks each verify window's size from live round times (a different
window is a different batch for the verifier), so two runs of one prompt could diverge after a few hundred tokens (ioq-sweep, 2026-12-01:
first differing hidden state between layers 8 and 14, argmax flipped at token 240, 20 percent of same-context window rows differed).
The switch sets --pcie-frac 1 when none is given (every missed expert is computed on the GPU), STRATA_PREFILL_CPU_SHARE=0 when it is not set
(the prompt does not use CPU experts) and STRATA_SPEC_FIXED=1 when it is not set (the engine's fixed window-cost table), and prints one start-up
line. A value the person sets wins and is said. RTX A6000, IQ3_S pack, MTP spec 4, default cache: 6 of 6 runs gave the same tokens (the default
flags: 2 runs, 2 different answers) and two runs with STRATA_LOGITS_DUMP gave byte-identical logits; decode about 3 percent slower (median 49.3
against 50.9 tok/s), prompt speed the same within noise (4K and 16K). With the switch off the logits of the old and the new build are
byte-identical (cache 1500 default flags, and the fixed-flag identity set).
strata launch --deterministic writes STRATA_DETERMINISTIC=1 into the run configuration (the copyable line says --deterministic).
Settings register entry (opt-in), docs/DETERMINISTIC.md, docs/SETTINGS.md regenerated, launcher test.
The elastic global K/V grew one visit at a time (new buffer, copy, free the old one), so the card needed one old visit buffer extra and a long request stopped 1.2 to 1.8 GB short of the
context that had been planned ("VRAM exhausted growing elastic global KV cache", 503), and the plan was set before the drafter (DSpark's fused weights, DFlash 2 codebooks and rings)
took its memory.
- ink_runner.cuh: with ONE slot on ONE card (no layer split, no elastic 1M mode, K/V not split to host at the start) every global visit's K, V and scale buffers are address ranges for the
requested context (strata::core::VmmRange, src/core/vmm.cpp, now also linked into the CUDA backend) and physical memory is mapped behind them as the context grows; the pointers never
move, so no peak of old + new. A failed mapping falls back to the host tail (kv_spill_tail, the earlier code, now a function) or to a refused request, as before.
STRATA_INK_KV_VMM=0 takes the earlier growth back.
- ink_dspark.cuh: the classic drafter's global context grows the same way (ctx_vmm).
- ink_cuda_backend.cu: after the drafter has loaded (--kv-offload off), max_ctx is set to what the card holds (ink_kv_reach_ctx, 256 MiB kept free), up or down, never above
--max-context ("max_ctx A -> B" line); --kv-prealloc / STRATA_INK_KV_PREALLOC=1 maps that whole context at start-up (and refuses to start, with a message, if the mapping fails); a request
that fails to grow says how much video memory is free now and what to do.
- ink_serve.h + InkBackend::kv_reachable_tokens(): a prompt the card can no longer hold (another program took video memory after the plan, --kv-offload off) is refused at the start with
a message instead of ending with 0 tokens; the engine stays up.
- strata/core/ink_kv_grow.hpp: ink_kv_reach_ctx() and its test (ink_kv_grow_test). Register: STRATA_INK_KV_PREALLOC (opt-in), STRATA_INK_KV_VMM (rollback); docs/INKLING_KV.md, SETTINGS.md.
Measured (RTX 4090, SQ-20 v2, --kv fp8 --kv-offload off, prompts of 90K / 100K / 110K / 128K tokens; VRAM ballast taken before the first allocation to get the Windows 4090's room;
phaseA-tests/rel0224/ink-kv/RESULTS.md, REPLY-6770.md): no ballast: tokens identical old / new / --kv-prealloc, decode equal; 700 MiB ballast, classic drafter: old ends the 110K request at
100,864 tokens with 0 tokens, new answers it; default drafter: old plans 104,192 and refuses 110K and 128K, new answers both; 1,300 MiB: old plans 74,240, new raises it to 109,568 and
answers a 100K prompt; every answer identical to the unballasted run; short prompts: same tokens, speed within 0.5%; ballast after the start: --kv-offload auto answers (host tail), off
refuses with a message. An RTX A6000 with a 128K prompt: identical tokens. Builds: CUDA sm_86 and sm_89 (Linux), sm_120 (MSVC), HIP gfx1151.
STRATA_INK_DYNAMIC_PINNED_MIB (#7100), STRATA_INK_MAX_PREFILL_CHUNK (#7110), STRATA_INK_TOPUP_MOE and STRATA_INK_TOPUP_MAXB (#7009) were read by the engine
but not in terminal/data/settings-register.json: added from the scan, status opt-in, owner inkling2, a note naming the PR.
STRATA_INK_PREFILL_MIN_SLOT (rollback, 0 = the old split; e473dc980a), STRATA_INK_IQ_TG (research; 93e5e3932a) and STRATA_INK_ADMIT_PROF (research,
diagnostic) had no status: set. The other entries are untouched (the scan was merged in by hand: only these 7 entries change, the line numbers of the
others are not rewritten).
docs/SETTINGS.md regenerated with `python tools/settings_register.py --docs`: it lists the 4 new opt-ins, and also 4 opt-in names that were already
in the register but missing from the page (STRATA_HY4_FLASH_GRAPHS, _PHASES, _VERIFY_PER_QUERY, STRATA_METAL_SEG_FILL).
tools/settings_register.py --check: exit 0. tools/test_settings_register.py: 8 passed.
The measurements (phaseA-tests/rel0224/ink-kv/RESULTS.md) made FP8 a good default where the card likes it and a bad one where it does not:
- CUDA: FP8 on every card and slot count (KL 0.005, top-1 95-98%, FASTQ subset SQ-20 v2 201/213 FP16 against 202/213 FP8, 64 slots +24 to +27% and a 32K
decode x2.5 on 12 and 16 GB cards because the cache is half the size and stays on the card; -1 to -3% on an RTX A6000 that has no native FP8).
- HIP (AMD): the 0.2.23 rule is back, unchanged: FP16, FP8 from 16 slots on a card of 36 GiB or less, STRATA_HIP_KV_FP8_SMALL and the Strix Halo FP8_KV_C64 set as before.
On the Radeon AI PRO R9700 FP8 costs 7% decode at 4K and 17% at 32K (prefill -8% at 32K); the retirement of STRATA_HIP_KV_FP8_SMALL is undone.
- Metal (Mac): FP16 ("auto: Mac default"); --kv fp8 (#6983) and the opt-in M5 Max fast set are as they were.
- SYCL (Intel): FP16, FP8 from 16 slots and in the Intel Arc fast set, as before (Arc A750: FP8 decode -6%, KL 0.0044 at 4K and 0.0054 at 32K).
ink_kv_auto_rule() now takes the parallel slots, the card's memory and what the backend's default is (fp8_by_default / fp8_from_slots / card cap / its sentence), so
the rule and its reasons stay in one place; every backend prints "[kv] <backend>: K/V cache <type> (auto: <reason>)". ink_main no longer sets FP8 at 16 slots for every
backend (that made a Mac and an Intel card take FP8 by the back door); the CPU reference keeps its own FP8-from-16-slots rule in its backend. The plan
(inkling_fit.auto_fp8_kv) follows: FP8 for CUDA and an unnamed backend, the 0.2.23 rule for HIP, FP16 for Metal and SYCL. Tests: ink_kv_rule_test (host only),
test_inkling_kv_auto.py, and the planner tests that pinned FP16 numbers pin them with fp8_kv=False.
After #6983 an explicit `--kv fp8` is honoured on every Metal GPU (the M5 Max fast set still picks FP8 by itself). `--kv auto` stays FP16 outside the M5 Max set: INK-PR measured
FP8 on an M5 Max at KL 0.0053 / top-1 96% against FP16 with the K/V halved, but decode -10 to -12% at 4K to 16K, so it is a choice there, not a default (the owner decides).
The [kv] line says which of the two happened, and says so when `--kv fp16` meets the M5 Max set's own FP8.
`--kv auto` (the default) now stores the K/V cache as FP8 wherever the backend can (CUDA, HIP; SYCL stays FP16 by default until its A750 / B70
numbers are in, Metal takes FP8 only in the M5 Max set) and FP16 where it cannot. K8V8 and K8V4 are only chosen when asked for (--kv k8v8, --kv k8v4).
An explicit --kv always wins. Before, every backend had its own rule (CUDA: FP16 unless 16+ slots, a card of 13 GB or less with the K/V offload off, sm_89+ with a
context over 16K, three RTX 50 rows; HIP: FP16 below 16 slots; SYCL: FP16).
- engine/include/strata/core/ink_kv_rule.hpp: the one rule (host only) and the one start-up line, "[kv] cuda: K/V cache fp8 (auto: default)"; the CUDA, HIP, SYCL
and Metal backends call it. Test: engine/tests/core/ink_kv_rule_test.cpp.
- CUDA: plan_vram_reserve() takes the type from the rule; STRATA_INK_ELASTIC_1M + STRATA_INK_KV_K8V4 remains the tester's way to K8V4. HIP: the old small-card
switch STRATA_HIP_KV_FP8_SMALL is retired (register entry marked retired in 0.2.24).
- ink_main --help: the --kv line says what auto is.
- --dump-ref / --kld-eval: a row-selected form for long documents (INK_KLD_TAIL=N INK_KLD_STRIDE=s keep the logits of every s-th of the last N positions; the file
then starts with -n_tokens; INK_KLD_CHUNK / INK_KLD_CHUNK_TAIL set the prompt chunk of the head and of the scored part). The old file format and behaviour are unchanged;
the --kld-eval line gains refPPL and dNLL at its end.
- terminal: the memory plan (inkling_fit.auto_fp8_kv) sizes FP8 for every backend except SYCL and Metal; compute_unified and recommend take fp8_kv like compute does.
Tests that pinned the FP16 numbers now pin them with fp8_kv=False; test_inkling_kv_auto.py covers the new rule, the launcher's k8v8 / k8v4 clamp and that every backend
calls the one rule. docs/INKLING_KV.md; docs/SETTINGS.md regenerated.
Measurements (phaseA-tests/rel0224/ink-kv/RESULTS.md): teacher-forced KL of FP8 against FP16 K/V 0.005-0.007 and top-1 95-98% on 4K / 32K / 128K documents
on RTX A6000 (SQ-20 v2), RTX A4000 (SQ-15), R9700 (SQ-15), Arc A750 (SQ-10, 4K), RTX 5070; the needle misses are the same with FP16.
The Hy4-Flash GGUF engine (f-hy4-clean + f-hy4-mla + the E2E fixes: CPU expert rows equal to the GPU rows bit for bit, the engine's
out-of-memory message, the plan reserve for A40 / RTX A6000), opt-in:
- CUDA: STRATA_BUILD_HY4_FLASH, OFF by default (configured only with CUDA on and no HIP);
- Metal: STRATA_BUILD_HY4_FLASH_METAL, OFF by default (the f-hy4-e2e side linked the Hy4 engine into the Metal strata
unconditionally; here its targets, the strata link and STRATA_HAVE_HY4_FLASH are behind the option).
Conflicts: engine/CMakeLists.txt (f-hy4-e2e had the whole file in CRLF; next-0224's file kept, the Hy4 option and include re-applied by
hand) and engine/metal/CMakeLists.txt (next-0224's ggml handling kept; mtl_rt split into mtl_rt_core + mtl_rt as the merged
gguf_lite.cpp needs, Hy4 targets behind the option).
The autonomous window has no host loop, so it would not wait for the adaptive tier's copies to land. peer_autonomous_policy.hpp holds the rules
(overlap, sm_120 with the FORCE override, every expert on a card with the LOSSY opt-in); peer_autonomous_policy_test covers them; the guard in
generate.cpp uses it. SECOND_GPU.md and the register say 'refused', not 'do not combine'.
The owner's R9700 SQ-20 branch with its fixes: the fast kernel set is opt-in (--fast-kernels, STRATA_INK_FAST_KERNELS=1, STRATA_INK_R9700=1), the default keeps what 0.2.23 ran on a verified Radeon AI PRO R9700, no spills, the C64 garbage fixed.
0.2.23 and base 8db8753d5 run chunk 8192 at one slot, 2048 at 2..15 slots and 512 from 16 slots; the 512 rule at more than 4 slots changed the tokens at P=5..15
(p620, drafter off, 32 new tokens: 1 of 5, 4 of 8, 8 of 12 requests equal to base, against 5 of 5, 8 of 8, 12 of 12 with CHUNK=2048). The default rule is now
one slot 8192 (with the VRAM guard, one slot only), 2..15 slots 2048, 16 and more 512; a written-out STRATA_INK_R9700_CHUNK still wins.
Register, AMD_HIP.md and the cfg.hpp header follow.
ccefbe96e lifted the fast-set gate of the batched multi-slot drafter, but the step it opened is the owner's rewrite (verify through forward_batch_chunk with an argmax output,
K lowered per slot), not what 0.2.23 ran: on p620 the DFlash 2 C64 steady rate stayed 16% under base (468 against 556 tok/s) and every request ran to its 128 tokens
(base and the package stop some early: 7890 to 7936 tokens of 8192), so the answers differed.
- The 0.2.23 step (PLD drafts, one batched verify through forward_batch_cand, ShortConv snapshot and rollback) is copied unchanged from base 8db8753d5 as
dspark_spec_step_batched_r9700_023. The default set (no fast kernel set) runs it; the fast kernel set keeps the rewrite; EXACT runs neither.
- That step verifies through the candidate rows, so CAND is off at one slot only (where it cost 1.6% of DFlash 2 decode with identical tokens) and on at 2 slots and more.
A written-out STRATA_INK_R9700_CAND still wins; the fast set and EXACT are unchanged.
C64 on p620 (64 prompts, 128 new tokens) showed two costs of the default set against base 8db8753d5 and the 0.2.23 package:
- Candidate rows off cost 9% of steady decode with the drafter off (422 against 463 tok/s). The chunk is not the cause: every arm ran chunk 512 at 64 slots, and
CAND=1 with chunk 512 equals base (360.5 / 462.9 against 361.1 / 463.4 e2e / steady). CAND is now off at 1..4 slots (where it cost 1.6% of one-slot DFlash 2 decode)
and on above 4 slots; a written-out STRATA_INK_R9700_CAND wins; the fast kernel set and EXACT are unchanged. The start-up line of the chunk rule names the choice.
- The batched multi-slot drafter was gated behind the fast kernel set, so the default lost it at 2+ slots (DFlash 2 steady C64 460 against 556 tok/s). The default set runs it
again as 0.2.23 did (EXACT does not).
Register notes, the cfg.hpp header and AMD_HIP.md follow.
Default set only; the --fast-kernels set is unchanged (candidate rows stay on there, chunk 16384 / 2048).
- STRATA_INK_R9700_CAND defaults to off in the default (0.2.23) set. On it cost 1.6% of DFlash 2 decode against base 8db8753d5, with the same tokens on and off (36 of 36).
It stays on in the fast kernel set (it helps there: drafter-off decode 110.3 against 97.6 tok/s) and in EXACT. CAND=1 / 0 written out wins.
- Prefill chunk of the default set: 8192 at one slot and 2048 at 2..4 (prompts read 1.74x faster than 0.2.23, same tokens), 512 per step at more than 4 slots
(the 0.2.23 behavior; P=8 was not measured, so 5..7 count as high). A VRAM guard after the load drops the big chunk to 512 when the free VRAM is under its extra scratch
(5.7 GiB at 8192, scaled by the extra tokens) plus 2 GiB. STRATA_INK_R9700_CHUNK written out always wins (honored up to 16384 at any slot count). The chosen chunk is logged once at start.
- Settings register, SETTINGS.md, AMD_HIP.md, the cfg.hpp header and the --fast-kernels help text say what the defaults are now.
own_rows_bench (one expert, one thread, per tier, hot and cold) next to cpu_expert_bench (through CpuExperts);
README: drop the two removed CPU switches (NATIVE_Q8K, Q81_ALIGNED), add STRATA_HY4_FLASH_CPU_TIER.
The hy4-flash Metal engine no longer takes block arithmetic from main's ref_quant
or the shared quant.metal / units.metal / gemv.metal (and so not from ggml-common.h).
Host: hy4flash_gguf/own_quant.{h,cpp} (row_bytes, block geometry, dequant_row for
F32/F16/BF16/Q8_0/Q3_K/Q4_K/Q6_K/IQ2_XXS, quantize_q8_0, f16 <-> f32), written from
FORMAT-SPEC.md only; every ref:: call of the engine replaced. The standalone binary
answers gguf::type_geometry from it (gguf_geometry_own.cpp), mtl_rt keeps ref for the
other engines (mtl_rt_core / mtl_rt split).
Shaders: hy4_flash_quant / units / gemv .metal replace the shared ones in the hy4-flash
library; the IQ2_XXS grid is generated from the spec's data file
(tools/gen_hy4_iq2xxs_tables.py); the library is compiled with NO_GGML_COMMON.
CMake: no ggml-cpu / ggml-base in any configuration (STRATA_OWN_CPU_QUANT=OFF and
STRATA_BUILD_TESTS=ON are refused), STRATA_GGML_DIR removed; README sentence fixed.
Tests: hy4_own_quant_test (golden vectors, synthetic blocks, Q8_0 quantiser, half
conversions), hy4_quant_gpu_test (the whole hy4-flash MSL library compiled, every
format through the dense GEMV against a float64 dot).
third_party/strata-llama (919 files, 22 MB, llama.cpp's llama, mtmd and ggml at the pin) fed only two picture-reader test programs
that no build or package compiled. Both go: strata-vision-gguf-test and its gguf_meta.h opened a GGUF through llama.cpp's API and
nothing else used them (the own reader reads GGUF with gguf_lite; test_gguf_geometry.cpp section 1b now covers a GGUF with unknown
tensor types and missing shards); strata-vision-prep-oracle stays as a test oracle that takes an external checkout (-DLLAMA_DIR=,
not vendored, never shipped).
The overrides kept "for two releases" are removed: STRATA_GGML_DIR in the CUDA, HIP, SYCL, Spark, Mac and Windows build scripts and in
setup.py, LLAMA / GG / LLAMA_CPP / --llama, and STRATA_GGUF_PY in the tools and setup (llama_override, get_llama_cpp and
llama_cpp_if_here stay as stubs that return None because tests patch them). The CMake option that remains is
-DSTRATA_ORACLE_GGML_DIR, for test builds only: it is refused without STRATA_BUILD_TESTS, so a release configure cannot take it.
Release engines, readers and packages are unchanged: none of them compiled or linked anything of the deleted tree.
STRATA_INK_FAST_KERNELS enters the register (opt-in); the notes of STRATA_INK_R9700, the six fast-set switches, CHUNK and W2_128CTA / W2_256CTA say what the
default is now (the 0.2.23 set) and what the fast kernel set turns on. AMD_HIP.md gets the R9700 paragraph. The three entries STRATA_INK_ADMIT_PROF,
STRATA_INK_IQ_TG and STRATA_INK_PREFILL_MIN_SLOT still have an empty status (they came with main, not with this lane).
Local review trial only; not for push. Six conflicts resolved by hand:
native_mmvq.hpp, mtl_rt.mm (the PR's ~Context plus main's residency-set
teardown), terminal/serve/server.py, launch/cmd.py, launch/runner.py,
launch/settings.py.
With STRATA_INK_SM120=1 STRATA_INK_SM120_COMPACT_HYBRID=1, a pack whose experts are not
all SF4 / MX8 (SQ-15) gets the compact trunk and, on a 16 GB card, all 3,072 experts on
the card. all_sf4_vram stays false there, so the K/V auto-fit kept the shipped reserve
(640 + 160 + WDDM/2 = 1376 MiB on Windows), more than was free, and every global K/V
position went to mapped host RAM.
Such a load (1 slot, FP8-size K/V, --kv-offload auto, no elastic 1M plan, no drafter
that allocates after the K/V) now takes a reserve sized for its own workspaces
(ink_compact_resident_ws_reserve_bytes: 664 KiB per batch row + 353 MiB, 519 MiB at
max_batch 256 against ~471 MiB measured) plus rtx_extra_res, and the existing 128 MiB
floor. Every other load keeps the old reserve.
RTX 5080 16 GB, Windows 11, official SQ-15, 32K, standard-v1: 16K-prompt decode
56.7 -> 86.1 tok/s, 16K prefill 2,465 -> 3,205 tok/s, sanity 12/12.
ink_kv_reserve_test: the new reserve and the window it gives on that card
(0 device positions before, 19,200 after, both measured).
Claude-Session: https://claude.ai/code/session_01H4myGAdQTpuNQ7CYFMuTdZ
Prefill steps of 1024 rows or more on a card whose fast set has MOE_OPT (RTX 5090, RTX PRO 4000 / 4500 / 5000 / 6000, GB10) summed the MoE output with float atomics (atomic_pf_moe in ink_runner.cuh): the order of the additions, and so the rounding, changed from start to start, and the 4K .. 128K document prompts gave different tokens on every server start (0.1.70 as well). The default is now the non-atomic reduction the 17 .. 1023 row steps already use; STRATA_INK_5090_PF_ATOMIC=1 restores the atomic sum (registered as a rollback switch). Short prompts (under 1024 rows) are not affected.
RTX 5090, 575 W, SQ-20 v2, 3 separate server starts, 16 documents (4K / 8K / 16K / 32K x 4) and the 128K document: all 16 + 1 prompts identical across the starts (0 prompts with more than one distinct output); with the atomic path (the 0.1.71 base, or this build with STRATA_INK_5090_PF_ATOMIC=1) all 16 + 1 differ. Cost: prefill tok/s 4K 27,561 -> 26,311 (-4.5%), 8K 26,381 -> 25,290 (-4.1%), 16K 24,989 -> 23,991 (-4.0%), 32K 22,882 -> 22,076 (-3.5%), 128K 15,288 -> 14,928 (-2.4%); decode unchanged within the noise of different texts (4K 0.97, 8K 1.01, 16K 1.11, 32K 1.04).
The register commit for the 5090 draft policy did not regenerate docs/SETTINGS.md: the two new switches are listed now (one opt-in, one rollback) and the two Strix Halo entries show their on / off type as the register has it.
- Rebase on PR #274 (direct hardware flag handoff opt-in via STRATA_PEER_DIRECT_SIGNAL=1)
- Add system fences (__threadfence_system) on PCIe doorbells and scatter completion signals to prevent mutual wait_flag_ge deadlocks
- Add all_gpu_resident check in Verifier::init and refresh_ar to gracefully disable autonomous mode when host expert fallback is required
- Ensure safe pre-launch gather for PLE and propagate return status from peer_->launch_window
- settings register and docs/SETTINGS.md: the 15 new names of the M5 Max and
Intel Arc work (opt-in / research), tools/test_settings_register.py passes
- sycl: STRATA_INK_INTELARC=1 opts into Level Zero V2 only in a build without
oneMKL (release builds link oneMKL, where V2 is the known SIGSEGV)
- intel-runner.yml: DFlash 2 comes from strata-engine/Inkling-2-Mini-DFlash2
at 04ecd36f (Inkling-2-Mini-DFlash2-mix.safetensors, 551,600,700 B,
sha256 cf7dbb08...), saved as dflash2.safetensors
Option A (owner, 2026-11-27): the Q8 attention + SF4 feed-forward mix (format strata-dflash2-q1), uploaded as one commit of the public repo strata-engine/Inkling-2-Mini-DFlash2:
04ecd36faef74e696f0a7b6b3c119264442a6234, file Inkling-2-Mini-DFlash2-mix.safetensors, 551,600,700 bytes, SHA-256 cf7dbb08560dfd99544af0cdbab2915406fc571f516b19aff0fe113b9458d387 (downloaded back
with curl -fL: same size and hash). inkling_family: DFLASH2_OWN_COMMIT is that commit and DFLASH2_OWN_COPY is "mix", so our copy is fetched first and the pinned incoai file stays the last resort; both pins are
accepted. The download size menus, docs and the drafting line state (0.99 GB -> 0.55 GB: inkling_fit.DFLASH2_GB, drafting_cmd, docs/MODELS.md). Tests: the placeholder test now pins the commit, the choice and the
URL (our copy first, the original last), the pin test of the sources, the lineup comment.
The Inkling engine (HIP now, CUDA through the residency-first drafter rule) leaves DFlash 2 out when loading it would move a model that fits whole into the
slower hybrid mode (or cut a noticeable part of the experts' room). It prints ONE line to its log, "DFlash 2 not loaded: it would move part of the model off
the card (...)", and says `--draft on` (or STRATA_INK_DFLASH2_FORCE=1) loads it anyway.
- Showing it: after READY the server reads this start's engine log (inkling_kind.veto_line); the line is printed as "[strata] DFlash 2 not loaded: ..." (what the
Terminal's start and the app's start log read) and becomes the drafting note of /metrics and the Monitor, in place of the generic "see its log for why".
`--draft off` is the person's own choice: nothing is repeated at them. `--draft on` counts as a drafter that was asked for.
- Forcing it: the word `on` of `--set draft=on` and of the Advanced screen used to read as "present", so the engine got a bare `--draft`; --draft is now a word-valued
flag (settings.WORD_VALUE_FLAGS) and `on` / `off` go through as typed. `strata launch --draft on|off` is an explicit option (`--draft` alone was ambiguous
between --drafting and --draft-vocab); the other models ignore it. The Inkling engine_args keep a `--draft on` already in the arguments.
Tests: serve/test_inkling_draft_veto_line.py, with a stub engine that prints the real line to stderr unless it is started with `--draft on` (47 passed with
the Inkling dialect and effort-tail tests, boston). docs/MODELS.md.
The Ornith catalog entry took one base figure (q36's base with the dense
part swapped to 1.85 GiB, from the reporter's Q5_K_M log) for every size.
A real start of each size with `strata launch --family ornith` (the 0.2.23
Control tree, engine 0.1.69 CUDA 13 package, RTX 3090 24 GB, the files of
the pinned revision, --max-context 32768, 2026-11-27) printed this for the
weights that stay on the card: Q4_K_M 1.65 GiB, Q5_K_M 1.85 GiB, Q6_K
2.06 GiB, Q8_0 4.40 GiB. For Q8_0 the context advice was about 2.5 GiB too
optimistic. The base is now q36's base with each size's own dense figure
(DENSE_GPU_GIB_ORNITH). The staging figures stay q36's: the same starts
printed 0.00 (Q4_K_M), 1.10, 1.23 and 1.59 GiB, all at or below them.
All four sizes loaded, answered correctly (capital of Norway, a Fibonacci
function, a time sum) and accepted MTP drafts (about 70 to 85 percent);
decode on the 3090 was 150 to 207 tok/s (Q4_K_M), 119 to 149 (Q5_K_M),
88 to 118 (Q6_K) and 55 to 65 tok/s (Q8_0). The KV figure matched the
engine (1.43 GiB per session at 32768 tokens).
Test: the per-size figures are pinned in test_ornith_catalog_7134.py.
docs/MODELS.md says what was measured.
Patch and tests of the catalog entry by eSPiYa (PR #7140)