Commit Graph
492 Commits
Author SHA1 Message Date
Niko1221 ef5ceb9e91 Inkling: the conversation cache writes a file only when the conversation leaves memory, and keeps one file per chat (0.2.25 item 1, part 4; REPROC's e2e findings)
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).
2026-12-02 17:57:54 +01:00
Niko1221 99a51c046e Inkling: the conversation cache on disk handles files near its cap (0.2.25 item 1, part 3)
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.
2026-12-02 17:10:55 +01:00
Niko1221 efafdee952 Inkling: conversation cache on disk, CUDA (0.2.25 item 1, part 2): --conversation-cache-dir, serialize / parked_from_bytes / conversation_identity
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.
2026-12-02 15:25:30 +01:00
Niko1221 2e295e7977 Merge PR #7100 (CUDA: opt-in pinned expert cache, coderchem) 2026-12-01 19:14:52 +01:00
Niko1221 55371e9fe2 docs: DETAILS.md says the Turing (sm_75) kernel series is on by default since 0.2.23 and STRATA_SM75_PERF=0 turns it off (from 6306a81c5; #7041, #7076); register regenerated for the moved line numbers 2026-11-27 04:58:33 +01:00
Niko1221 56829a8b5c feat(inkling): pictures follow the Qwen rule in Control and serve (CPU reader under 24 GB, the card's from 24 GB, Mac GPU, Intel CPU unless asked)
strata_control/vision_reader.py: inkling_reader / inkling_lines / reader_arg / set_reader_arg on top of default_mode, the plain-words lines, the shared
constants (ELASTIC_IDLE_S_DEFAULT = 120). setup.py install_inkling2 resolves the reader for the card and writes --vision-reader gpu|cpu beside --vision
(--vision gpu|cpu kept as asked, with a note on a small card; no = no Vision file). strata launch settings take --vision-reader away with the Vision file
and set it for gpu / cpu. serve/inkling_kind.py: the flag goes only to an engine whose --info says vision_reader=1; a config with --vision and no flag gets
the reader this card's rule gives when the card can be read; the picture size cap and the silence allowance follow the reader the engine chose (INFO
vision_reader=gpu|cpu, else the flag, else the old backend rule). pictures.fetch says the reader for an Inkling model. Docs: DETAILS.md Images (vision), MODELS.md.
Tests: tools/test_vision_reader.py (rule at 8/12/16/24/32 GB, Mac, Intel, unified pool, forced modes, unknown card, engine constants), serve/test_inkling_vision_reader.py.
2026-11-26 23:06:57 +01:00
Niko1221 527612af62 feat(serve): opt-in thinking level at the end of the prompt for Inkling-2-Mini, Control half (#7241)
The Inkling template writes `Thinking effort level: X` before the first non-system message, so a request at another level starts differently and the
engine reads the whole conversation again (reporter, RTX 3090: +10 s at 20K tokens, +29 s at 50K, +71 s at 100K).

With the config's "effort_position": "end" (until now ignored for Inkling) the history is rendered at the default level (STRATA_INKLING_EFFORT, low)
and a request at another level adds the template's own system turn `<|message_system|><|content_text|>Thinking effort level: X<|end_message|>` at the
end, right before the answer; level 0 still gets the text opener, thinking levels nothing. A request at the default level, a prefilled reply and every
config without the option render exactly as before. The strata_prefix head follows the same rule.

effort_end_args knows Inkling: it passes --tail-role-token with the id of <|message_system|> only when the engine binary has that flag. No Inkling
engine has it yet, so today the option is refused at start with a plain sentence and the level stays at the top. The engine half (a checkpoint in
front of the trailing system turn, as the main engine's #458) is NOT done; the level at the end also blends with the level at the top (reporter:
header 0.9 + tail 0.2 gave 485 thinking tokens between 253 and 712), so it stays opt-in until measured.

Tests: serve/test_inkling_effort_tail.py (real template: prefix kept across a level change, openers, prefill, config switch, nothing changes
without the option). docs/DETAILS.md.
2026-11-26 22:03:24 +01:00
Niko1221 54c4f28191 docs: Inkling-2-Mini --turbo and --turbo-max (opt-in tail skip), measured KL and speed per card class 2026-11-26 19:21:24 +01:00
Niko1221 88f4f39713 fix(serve): only the coding client's DEFAULT thinking budget (budget_tokens 31999 on /v1/messages) is held to the default of its level on Inkling; every other budget goes through as sent (#7133)
Owner decision (option B) on top of the cap of the earlier #7133 commit, which lowered every number a client sent. Now:

- the Messages-API frontend (frontend.py) marks a request whose thinking.budget_tokens is exactly 31999 (CLIENT_DEFAULT_THINKING_BUDGET) and that carries no reasoning_budget_tokens of
  its own, with strata_default_thinking_budget.
- Service.reasoning_budget lowers a number to the default budget of the level the request runs at (31,999 at high is 8,192) only for a marked request. Any other budget goes
  through as before, still limited by the context and max_tokens: 20,000, 32,000, 31,998, a reasoning_budget_tokens or alias sent by a client (31,999 included), a budget with the
  OpenAI route's reasoning_effort and max_completion_tokens. A request's own 0 still means no budget; the run config's own budget and other families are untouched.
- Opt-out kept: run config "inkling_budget_cap": false, or STRATA_INKLING_BUDGET_CAP=0, lets the default use the full 31,999. The once-only log line now says "the client's default
  thinking budget of 31999 is held to 8192 ..." and is printed only for a held request.

Detection is by the number alone. The coding client's request headers (a beta-features list and a user-agent naming it) were not used: they were not observed in this work, a proxy
can remove or rewrite them, and the number is what makes the request slow, so a header would only narrow the rule (a 31,999 from another client would pass uncapped).

docs/DETAILS.md (inkling_budget_cap row) and docs/MODELS.md say it. serve/test_inkling_client_budget_cap_7133.py rewritten (22 tests): capped for the marked 31,999 at every level; uncapped for
20,000, 32,000, 31,998, 5,000, 100,000, every alias and a 31,999 not marked; the OpenAI reasoning_effort high with max_completion_tokens 32,000 (level default 8,192, no budget number) and
with an explicit reasoning_budget_tokens 20,000; both opt-outs; the one-number setting; the config's budget; other families; the once-only line; the default request through the
frontend; a scripted engine that thinks 12,150 tokens (cut at 8,192 for the marked default; whole for 20,000, for the opt-out; cut at 3,000 for a 3,000 budget).
2026-11-25 12:50:45 +01:00
Niko1221 dc01b0371c Merge f-0222-eng at a5bfe0369: #7089 default back to 100%, symbols cmake fixes 2026-11-25 12:50:01 +01:00
Niko1221 2aed34d4e6 fix(engine): the layer split's lend reservation stays whole by default; STRATA_SPLIT_LEND_RESERVE=0 / a percent is the opt-in (#7089, owner decision)
From PR #7091 by @svonolfen (the switch and the measurements).

The first version of this fix reserved half of the lend regions on a drive that reads 3 GB/s or more. Measured on 2 x RTX A6000 made RAM-tight
like the reporter's PC (9 interleaved rounds, same 2170-slot / 6.3 GiB lend regions): no decode gain at 50% (median ratio 0.996 and 1.012,
run-to-run spread about 5%), cold 18K-token prefill 5 to 7% slower in every round. At 0% decode +5.5% (4 of 4 rounds) and cold 18K prefill
-17%. The reporter's own table has the same shape (decode +9%, prefill at 18K -4.6%, at 36K -0.8%). A half-way default has a cost and no
measured gain, so the default is back to the whole reservation (0.1.66 / 0.1.67 behaviour) on every drive, and the drive probe is gone.

STRATA_SPLIT_LEND_RESERVE stays as an opt-in: 0 fills the expert complement first (the order before #6583, the reporter's PR), 1..99 reserves
that percent of the borrowed slots' bytes counted from the highest slot of each stage, unset / full / 100 / anything else reserves all. The
reserved first part of every region is appended first, so the reserved slots are certain to be kept and the stages stay balanced; with the
default nothing in the placement changes. The startup line names the percent when it is not 100.

Answers do not change in any setting (the same experts are read from RAM or from the file; gate on 2 x A6000: KL 0, identical ids, noise floor 0).

docs/DETAILS.md describes the setting and the measured trade; the settings register entry is rollback / off by default; the unit tests
cover the rule (unset / auto / full / 0 / percent / bad values) and the fixture at full / 50 / 0.
2026-11-25 12:48:56 +01:00
Niko1221 09d8afb1ab fix(serve): a request that names no sampling gets Inkling-2-Mini's model-card sampling (temperature 1.0), not the engine's greedy picking (#7092)
The engine's own default is temperature 0.0, top_p 1.0, top_k 64 (ink_serve.h), i.e. greedy for a request with no sampling field, and Control had no model-card entry for
Inkling (MODEL_CARD_SAMPLING held qwen4exp, qwen35moe and hy4flash only). Greedy picking is the classic way to loop in an agent harness.

Source of the values: the model card's generation_config.json at huggingface.co/thinkingmachines/Inkling-2-Mini, read 2026-11-25 (read only):
  {"do_sample": true, "temperature": 1.0, "eos_token_id": 200006, "pad_token_id": 199999}
The README and the Unsloth GGUF page name no other sampling value (no top_p, top_k, min_p or penalty; the README only says "We recommend setting limits on output tokens and
agent turns"), so only temperature 1.0 is set, for thinking and non-thinking alike, for the arch names inkling2_loop, inkling2 and inkling2_loop_text; the engine keeps its
top_k 64 and top_p 1.0. Nothing was invented for the other fields.

Precedence is unchanged: the request, the Chat settings shared with apps, the run config's sampling block, then the card; temperature 0 asked for is still greedy. Other
families keep their cards.

docs/DETAILS.md and docs/MODELS.md say it. New tests serve/test_inkling_card_sampling_7092.py (8): the table for the three arch names, the other cards unchanged, over HTTP on
chat and Messages routes (card applied; request, shared settings and config block win; 0 stays greedy), and Service.run with the scripted Inkling engine; the inkling / sampling
/ card serve tests (282) pass.
2026-11-25 11:23:20 +01:00
Niko1221 327e943811 fix(serve): a thinking budget a client asks for is capped at the default of its level on Inkling-2-Mini; the default client's 31,999 now thinks at most 8,192 tokens (#7133)
Since 0.2.21 the default request of the client in the issue (thinking enabled, budget_tokens 31999) gave Inkling level high AND a budget of 31,999 tokens with max_new 32,000, because
Service.reasoning_budget takes the request's number before the level's own default (high 8,192): minutes of hidden thinking a step at 25 to 60 tokens a second. v0.2.20
forced level 0 for Inkling, so this is a change of 0.2.21.

reasoning_budget now lowers a number that comes from the client (reasoning_budget_tokens, which the Messages route fills from budget_tokens, and the aliases
thinking_token_budget, thinking_budget, thinking_budget_tokens) to the default budget of the level the request runs at, and never raises one: 31,999 at high is 8,192, at
low 2,048; 1,024 at low stays 1,024. STRATA_INKLING_THINKING_BUDGET (one number for every level) is the cap when set, and 0 ("no default") lifts it. A request's own 0 still
means no budget; the run config's own reasoning_budget_tokens is not a client's and is not capped; other families are untouched. The first lowered request prints one line
that names the opt-out.

Opt-out: run config "inkling_budget_cap": false, or STRATA_INKLING_BUDGET_CAP=0 (also known to the app's run-config checker). Documented in docs/DETAILS.md and
docs/MODELS.md.

New tests serve/test_inkling_client_budget_cap_7133.py (15): the cap per level, smaller numbers kept, every alias, 0, both opt-outs, the one-number setting, the config's own
budget, other families, the once-only line, that default request through the frontend (level high, budget 31999 asked, 8192 allowed, side calls with 1,024 kept) and a
scripted engine that thinks 12,150 tokens (cut at 8,192 with the cap; thinks it all without). The Inkling serve tests (80) pass; app/host run-config-check test added (runs on
a box with node_modules).
2026-11-25 11:01:26 +01:00
Niko1221 d32eb528d1 fix(serve): Inkling pictures on the CPU reader: scaled to 0.8 MP, and a request with pictures is never ended by the silence watchdog (#7043)
strata-inkling reads a picture with its GPU encoder where it has one (HIP, SYCL, Metal). CUDA has none, so the engine falls
back to a CPU encoder that only downscales above 4096 x 4096 and says nothing while it works. Measured on the owner PC (6 cores,
12 threads, nothing else running, one picture, prompt to first token): 0.25 MP 15 s, 0.5 MP 32 s, 0.75 MP 55 s, 1.0 MP 74 s,
2.07 MP 334 s, 3.0 MP 743 s (about the square of the pixels from 2 MP up). The engine has no option for any of it, so Control
does two things where the reader is the CPU (the run config's backend cuda or cpu):

- It scales a picture down before it writes the file the engine reads (Pillow, same proportions, LANCZOS; JPEG stays JPEG,
  else PNG) to at most 0.8 MP, where the measured reader takes about a minute. A picture at or under the cap, a 1024 x 768 one for
  instance, is passed on byte for byte; a 1920 x 1080 screenshot becomes about 1190 x 670. One line in the server window names
  every picture that was scaled.
- A request with pictures gets a silence allowance in StrataEngine.generate: 3 times the measured time of its pictures (the
  measured table, read on a log-log line, the square beyond 3 MP) plus a minute, at most 3 hours, and never less than the
  server's own engine_silence_s (the person's larger value stays). So a big picture, with the cap raised or off, is slow and
  answered, not killed. One line says how long the request may stay silent.

Setting: "inkling_image_max_mp" in the run config (megapixels; 0 turns the cap off; a number above 0 sets it on every backend,
HIP, SYCL and Metal included, which have no default cap) or STRATA_INKLING_IMAGE_MAX_MP in the environment (the config wins).
A value that is not a number >= 0 stops the start with a message naming the key. Documented in docs/DETAILS.md.

Tests: the setting by backend, scaling (proportions, near the cap, JPEG / PNG / RGBA / palette, unreadable passed on, a sliver),
a picture under the cap written to the engine's folder unchanged, the allowance (follows the pixels, covers the measured time
with the margin, unmeasurable pictures count as the cap), and live starts of a fake engine that stays silent for 2.5 s: ended
without the allowance, answered with it, the person's larger silence kept.
2026-11-24 21:36:29 +01:00
Niko1221 6c3f3fbb4f feat(serve): the conversation cache grows with the PC's RAM instead of stopping at 8 GiB, through the engine's own option (#7044)
The engine sizes the RAM for parked conversations itself when --conversation-cache-mib is not given: 40% of the
RAM free once the model is loaded, at most 8192 MiB. One conversation above about 490K tokens never fits, whatever
the RAM, so a long agent session read its whole prompt again every turn. The owner decided the budget should follow
the PC's RAM.

No engine change: at each start of an engine program that has --conversation-cache-mib (checked in the binary, as
for --conversation-cache-min-tokens), engine_args adds it from the RAM Control sees before the model loads:
40% of (free RAM - the model file - 4 GiB - the RAM floor, 2560 MiB by default), but at most a quarter of the PC's
RAM and 128 GiB, in steps of 256 MiB, and only when that is above 8192 MiB. Everything else is left to the engine
as before: a PC of 32 GiB or less, a model that fills the RAM, an unreadable RAM figure (inside a container the
memory limit counts), the options the person set (--conversation-cache-mib including 0, --prompt-cache 0,
--conversation-cache-slots 0), Hy4 and Inkling, and STRATA_NO_AUTO_CONVERSATION_CACHE=1. The engine's own gate
still refuses a park that would leave less than the floor free. The size is added after the min-tokens default so
that default is not pulled in by it. One line at the start says what was set.

Documented in docs/DETAILS.md. Tests: the sizing (big PC, quarter of the RAM, ceiling, never below the engine's
8 GiB, growth with the RAM), the arguments (what is added, what is never touched) and engine_args.
2026-11-24 20:38:15 +01:00
Niko1221 89ef8456aa fix(serve): the engine's READY wait moves while the engine shows it is working, so a slow disk is not cut off at 15 minutes (#7060)
The 900 s READY deadline was one absolute time from the start of the engine. The Terminal launcher already gave
big models more, but the app and `strata serve` did not, so a model read from a slow hard disk failed with
"the engine did not report READY within 900 s" while still loading.

ENGINE_READY_S (config "engine_ready_s", STRATA_ENGINE_READY_S, default 900, 0 = no limit) now counts from the
last sign of life: a new line in the engine's log or more bytes read from disk by the engine process (psutil;
without it the log alone). Each sign moves the deadline to a full period after it. An engine that goes quiet is
still ended after that period. The whole start ends at 2 hours (or four periods if that is longer) whatever it
prints. The override keeps its meaning, the Terminal launcher's size-based value still applies, and the error
now says it counts from the last sign of life and how to change it.

engine_ready_s is documented in docs/DETAILS.md (config keys and troubleshooting).

Tests: the deadline with a fake clock (silent, log growth, disk reads, ceiling, failing probe) and live starts of a
fake engine (slow but writing: not ended; quiet: ended after the period).
2026-11-24 20:26:31 +01:00
coderchem a7fdddffda Inkling CUDA: replace pinned expert cache entries by access frequency 2026-11-24 13:33:33 +08:00
Niko1221 86b1a4c50b rc0: merge f-0221-perf 2026-11-23 14:42:10 +01:00
Niko1221 958c488220 rc0: merge f-0221-prefix 2026-11-23 14:40:58 +01:00
Niko1221 8ee4f3a224 docs: Inkling thinking levels (numeric mapping, fields, budgets), inkling_thinking_budget
MODELS.md gets a section with the word-to-number table, how the level changes the
prompt, the response fields in the three API shapes, the budgets by level and the
never-empty rule. DETAILS.md gets the inkling_thinking_budget row and the effort
table note.
2026-11-23 13:52:43 +01:00
Niko1221 724bbbed72 engine: the Track 6A tiny-cache rules are opt-in (STRATA_TINY_CACHE=1) (#6782, #6799)
0.1.66 turned two rules on whenever the VRAM expert cache holds less than 15% of the
experts (every 12 GB card with a 3-bit file, and a 16 GB one with a bigger file): the default
--adapt-swaps is cut from 96 to 16, and the top quarter of the profile experts is pinned
against eviction. The rules were written on "a 96-swap default costs 14-26% on 8 and 12 GB
cards". Measured on an RTX 5080 (sm_120, 16 GB, Qwen3.8-Flash-Next IQ2_XS, the cache set to
3,000 slots = 12.2% of the experts, same cuda13 0.1.66 binary, one engine start per arm and
round, arms alternating, 5 rounds, greedy), decode against 0.1.65:
  rules on (0.1.66 default)          code -22%, chat -18%, 8K document -13%
  --adapt-swaps 96 given             -10%, -10%, -3%
  STRATA_CACHE_PIN_FRAC=0 + swaps 96 -5.5%, -6.4%, -4.4%
With a 7.6% cache (1,800 slots, 2 rounds so far): -25%, -18%, -18% with the rules on, -10%,
-8%, -5% with 96 swaps. So the 12 GB reports (#6799: 75 -> 52 tok/s on an RTX 3080 Ti,
#6782: RTX 5080) have a measured cause. Both rules now run only with STRATA_TINY_CACHE=1;
STRATA_CACHE_PIN_FRAC=<f> still pins by itself and an explicit --adapt-swaps always wins.
The remaining -5% to -8% with both rules off is not explained yet.

Unit test: low_vram_rules_test (the gate function). Registered in the settings register and
described in DETAILS.md. Numbers: phaseA-tests/rel0221/RESULTS-0221-PERF.md.
2026-11-23 13:36:39 +01:00
Niko1221 af9bf52f8c engine: the #4870 mid-coverage curve stays on for the CUDA build, off for HIP; STRATA_ADAPT_MID=1 / 0 forces it (#6791)
The measurement that follows the previous commit: on the z440's RTX A4000 (CUDA, sm_86, Qwen3.8-Flash-Next
IQ2_XS, 30% of the experts in VRAM, one engine start per arm and round, arms alternating, 3 rounds) the
curve (every 2, 192 swaps, decay 0.92) is faster than the old three values given explicitly: code +5.7%,
chat +6.7%, 8K document +9.0%. On the RX 7900 XT (HIP) it was slower in 10 of 13 cells (worst -7.8%).
So the default now follows the build: on for CUDA (as in 0.1.66), off for HIP (as in 0.1.65).
STRATA_ADAPT_MID=1 turns it on and STRATA_ADAPT_MID=0 off in either build; --adapt-every / --adapt-swaps /
--adapt-decay still win over all of it. The rule stays a pure header; the unit test checks both defaults
(also compiled with -DSTRATA_USE_HIP). Settings register and DETAILS.md updated.
2026-11-23 12:33:20 +01:00
Niko1221 ddac45d0da engine: the #4870 mid-coverage adaptive curve is opt-in (STRATA_ADAPT_MID=1) again (#6791)
0.1.66 started every engine whose VRAM expert cache holds 15% to 65% of the routed
experts with --adapt-every 2 --adapt-swaps 192 --adapt-decay 0.92 instead of 4 / 96 / 0.70,
claiming +8% hit rate and +10% decode. On an RX 7900 XT (gfx1100, Qwen3.8-Flash-Next
IQ2_XS, same card, one engine start per arm and round, arms alternating, greedy, 4-5 rounds)
the hit rate rises but the decode speed does not: against the same 0.1.66 binary with the old
three values given explicitly (which equals 0.1.65 in every cell) it is slower in 10 of 13
cells, worst at 15-25% coverage (the 24 GB card with a 3 MB-expert file of the report):
chat -7.8%, agent -7.8%, code -2.8% / -4.2%; at 32.5% 8K document -4.8%, code -3.6%; at
46.8% -0.2 to -2.0%. Faster in 3 cells (+2.8%, +0.4%, +0.3%).

The curve stays available with STRATA_ADAPT_MID=1; --adapt-every / --adapt-swaps /
--adapt-decay on the command line win over both. The rule is a pure header with a unit test
(adapt_coverage_rules_test); the three call sites in generate.cpp use it. Registered in the
settings register and in DETAILS.md. Numbers: phaseA-tests/rel0221/RESULTS-0221-PERF.md.
2026-11-23 11:46:00 +01:00
Niko1221 7bff4c47a5 serve: api_keys with per-key concurrency limits and reserved capacity (#5004)
From PR #5820 by @NoBirdWasHam.
2026-11-23 10:32:19 +01:00
Niko1221 be6f0c59b7 serve: let the vision section carry its own env for the image encoder
From PR #5897 by @Vop3p.
2026-11-23 10:24:10 +01:00
Niko1221 f5ab600d51 serve: /v1/models publishes the answer cap
From PR #6703 by @StrikeRougeAgent.
2026-11-23 10:24:10 +01:00
Niko1221 b2d4400666 docs: reproducible output: add the CPU prompt share and bring its table row up to date
From PR #5599 by @slyfox1186.
2026-11-23 10:24:08 +01:00
Niko1221 861e889f54 Merge branch 'f-0220-app-serve' into f-0220-int 2026-11-22 14:16:24 +01:00
Niko1221 49f28f17fd [TUI] resolve Del reset (#6519), Qwen file detection (#6518), port 8080 probing (#6475), strata connect/OpenCode v2 (#6512), and PRs #6387 #6395 #6451 2026-11-22 14:15:06 +01:00
Niko1221 534802c8dc engine: integrate #6406, #6529, #6550, #6523 and fix #6515, #6431, #6462, #6423, #6417, #6493, #6533, #6470 2026-11-22 13:23:13 +01:00
Niko1221 0f1738e611 engine: integrate #6547, #6548, #6538, #6465 (batched MTP, QSA stream batch, persistent spill, bounded swap) 2026-11-22 13:02:10 +01:00
Niko1221 8a38bc52b6 Merge f-fetch16: STRATA_ADAPT_FETCH=2 default on 12.x CUDA cards with 16 GiB or less
The settings register conflicted on line numbers only. It was taken from the rc,
STRATA_ADAPT_FETCH's status and note were carried from f-fetch16, then
settings_register.py and --docs were run over the merged tree (1125 names);
--check passes.
2026-11-19 20:50:36 +01:00
Niko1221 794c85df0a DETAILS.md: the STRATA_ADAPT_FETCH row now carries the default and its numbers
2x RTX 5060 Ti 16 GB (BW-9): decode +4 to +43% by kind, hit rate 54.4% to 62.0%, KL ratio 0.948
[0.830, 1.063]. RTX 5070 12 GB (IQ3_S, 28 GiB RAM budget, 3 paired rounds): the switch is not used
in the resident RAM mode, decode medians 0.966 to 1.054 of =0, hit rate 53.6% and 53.5%.
Register line numbers regenerated.
2026-11-19 20:40:39 +01:00
Niko1221 f705bf0a81 Merge f-bw-h (link-aware CPU prompt share limit) into the 0.2.17 release candidate
f-bw-h (a620ffb61, 595d40922) and f-bw-f (38e6a0506) both arm the CPU prefill
share on a layer split. One conflict, engine/src/program/generate.cpp, the
share arming block of the serve start-up, resolved to one rule:

- BW-H first: on a layer split the stages' stream floors are summed; where the
  link rule raises the limit above 3,072 (Prefill::arm_cpu_share_split) it arms
  the share by itself and sets the limit and the expert width. This is what arms
  a split of three or more cards, and it gives a two-card split with a slow link
  its larger limit.
- BW-F second: arm_cpu_share(share_pool, share_pool && share_layout &&
  share_has_work): one card, or exactly two CUDA cards (STRATA_SPLIT_CPU_SHARE=0,
  kSplitShareDefault), armed by default with the default limit. A two-card split
  of fast links therefore keeps the share armed, as BW-F measured it.
- set_card_expert_share takes pool.workers() (BW-H) in the one-card condition.
- BW-F's start-up line is kept.

docs/SETTINGS.md is generated (conflict only in its table): regenerated from the
register.
2026-11-19 19:48:39 +01:00
Niko1221 595d409226 CPU prompt share on a layer split: the link rule arms it from the stages' summed stream floors (cc 12.0 cards, STRATA_PREFILL_CPU_SHARE_AUTO=0 keeps it off)
The share is off on a layer split by default.  With explicit STRATA_PREFILL_CPU_SHARE=auto and the limit above the split's 8,192-token chunk, experts of up to 64 tokens, 2x RTX 5090 on one board (GPU0 PCIe 4.0 x2
3.6 GB/s first stage, GPU1 x8 14.1 GB/s, 32 pool workers, UD-Q4_K_XL, --layer-split auto, 3 rounds) the prompt takes 0.25-0.68 of the split's default time at 84 / 1,024 / 2,048 / 4,096 / 8,192 / 12,288 /
16,384 / 32,768 tokens (843 -> 327, 1,957 -> 829, 5,549 -> 1,395, 5,949 -> 2,345, 6,783 -> 4,599, 11,052 -> 5,999, 11,233 -> 7,578, 20,026 -> 13,125 ms), decode level; the share with the default limit 3,072 costs
3-4% from 4K up.

Prefill::arm_cpu_share_split(applies, floor_ms, pool_workers, all_cc120) (called before arm_cpu_share in the serve path when the engine runs a layer split): floor_ms is the sum over the stages of (pairs of the
stage's layers - its cache slots) x blob / its link; the share is armed by default only when share_rules::link_rule_floor raises the limit above 3,072 (here 3,556 ms -> 12,032 tokens, 64-token experts), so a
split of fast links keeps the share off as before.  With the rule (nothing set against STRATA_PREFILL_CPU_SHARE_AUTO=0): x0.38 / 0.41 / 0.25 / 0.38 / 0.63 / 0.52 / 0.64 / 0.62 of the default at the same
lengths, decode chat 129.2 -> 132.5, code 189.7 -> 203.9, agent 136.3 -> 138.2 tok/s.  Forced-token KL on the split against the FP16 prompt path (48 prompts, 12,288 positions, fixed share 0.5): exact 0.01119,
share with 8-token experts 0.980 [0.938, 1.024] of it, share with 64-token experts and limit 16,384 0.979 [0.907, 1.053].  Docs updated (DETAILS.md).
2026-11-19 19:23:55 +01:00
Niko1221 f85f9dd332 Merge f-eng-0163 (engine 0.1.63 head) into f-0217-int2: the 0.2.17 release candidate
Both halves come from main 58ee32277: the app side (f-0217-int2) and the engine
side (f-eng-0163, on f-bw-a). Four conflicts, all in the serve parser and one
doc table:

- terminal/serve/frontend.py, _track (#4923): the app lane and FIX-ENG fixed the
  same stray-backtick rule; the FIX-ENG form is kept (it also carries a span
  that is already open across lines), the same parity as the app lane's.
- terminal/serve/frontend.py, _quoted_think_end (#5605): the app lane's pair
  rule ("</think>" inside a pair of quotes) and FIX-ENG's closing-quote rule
  and #6218 backtick-span rule are all kept, in one function.
- terminal/serve/test_parser_track.py: the reference model follows the kept
  _track rule.
- terminal/serve/test_parser_stray_backtick.py: both lanes added a file of this
  name; the app lane's stays, FIX-ENG's is test_parser_stray_backtick_eng.py.
- docs/DETAILS.md, "On by default" table: FIX-SPEED's longer prefill-share row
  and its two new rows are kept; the STRATA_ROUTE_TAIL_SKIP row is not there
  any more (tail skip is off by default in 0.2.17, its own section below).
2026-11-19 18:42:38 +01:00
Niko1221 c619aebeb9 "Leave 20% for my work" starts the engine with the old RAM budget on the started copy only; the saved run config keeps setup's number, so the Terminal always reads the new one
Owner rule: the Terminal always uses the new number. The work-mode swap is no longer part of resourceSettings (what every write of the run config takes): it is
launchBudgetArgs(cfg, profile), applied by buildConfig to the config of the start being made, after the person's options are merged in. The saved args keep setup's
--resident-budget-gib (47 on 64 GB), args_written is unchanged, and ui_resource_baseline carries no budget bookkeeping (nothing is saved, so nothing is put back).
"Full performance" and a load with no preference leave args as they are. The same rules as before: the person's budget (user_args, an edit of args), a --ram-keep-gib, and a
STRATA_RAM_KEEP_GIB / STRATA_RESIDENT_HEADROOM_GIB in the env keep their value; no work number (a 0.2.16 config not yet moved, a budget asked of setup, unified memory) leaves the
budget alone; a config moved by strata_cli/ram_budget_move.py works as a new one.

Tests: app/host/tests/resource-rammode.test.mjs now loads through the host (a work load starts with 40, the file read afterwards has 47, performance 47, the person's value in both),
terminal/tools/test_setup_rammode.py: a Terminal start (engine_args) of the config the app saved gets 47. Docs (UNSLOTH_Q4.md, DETAILS.md) say the swap is not saved.
2026-11-19 17:48:56 +01:00
Niko1221 a620ffb619 CPU prompt share: the limit and the expert width follow the card's PCIe link (compute capability 12.0 default, STRATA_PREFILL_CPU_SHARE_AUTO=0 to get 3,072 / 8 back)
The default share took chunks up to 3,072 tokens and experts of at most 8 tokens, a setting measured on one 28 GB/s link.  A chunk from the limit up streams every expert the card does not hold in
one pass whose time F (bytes of the missing experts / the link) does not depend on the chunk length; the staged walk with the share grows with it, so the share pays up to a length T* that
grows with F.  RTX 5090 cards, UD-Q4_K_XL (8,056 of 24,576 experts on the card), 3 interleaved rounds, the share with 32-token experts against the default: T* 4.2K tokens at 53.6 GB/s (15 pool
workers), 8.8K at 28.3 GB/s (22), 14.0K at 14.1 GB/s (32), 19.7K (32-token experts) / 25K (64-token experts) at 3.6 GB/s; 8 pool workers 7.7K, 16 workers 8.5K (22: 8.8K).  At 53.6 GB/s the
default 3,072 beats streaming by 25-34% from 1,536 tokens and above ~4K staged equals streamed, so the rule never goes below 3,072.

share_rules.hpp link_rule(): limit = 3.4 x F (ms) tokens up to F = 3.67 s, +0.76 tokens per ms of F above it, between 3,072 and 20,480, scaled by (workers / 22)^0.15 for smaller pools; experts of
up to 32 tokens (64 from F = 3 s) where the limit is raised.  Prefill::set_card_expert_share takes the pool's workers; arm_cpu_share applies the rule to the default-armed share only (an explicit
STRATA_PREFILL_CPU_SHARE, STRATA_PREFILL_CPU_SHARE_MAX and STRATA_PREFILL_CPU_SHARE_NT keep their meaning) and prints one "CPU share rule:" line.  STRATA_PREFILL_CPU_SHARE_AUTO: unset = cc 12.0
discrete cards with the link probed, 1 = any CUDA card, any other value = off.  Settings register, docs, unit tests (share_rules_test) updated.
2026-11-19 17:28:01 +01:00
Niko1221 c8d70bbcdc RAM budget per mode: "Leave 20% for my work" keeps RAM less 24 GB, Full performance and the Terminal get RAM less 17 GB; 0.2.16 configs move once; the reading rounds up to the PC's size
Owner decisions 11-19. Setup writes both numbers in the run config: --resident-budget-gib in args is the new rule (47 on 64 GB), and "ui_budget_work_gib" is the old
rule (40) from the same function (resident_budget_gib(work=True)). The app's "Leave 20% for my work" swaps the second one into args and records what it replaced in the
resource baseline (setupBudget); "Full performance" runs with setup's number and puts it back after a work load. The app holds no copy of the rule. The key is left out when
setup was asked for a budget, when the config keeps one of the person's (user_args, an edit of args), and where the two rules agree (a unified-memory GPU, 24 in both; every
expert in RAM). A budget, --ram-keep-gib, STRATA_RAM_KEEP_GIB or STRATA_RESIDENT_HEADROOM_GIB of the person's wins in every mode.

A 0.2.16 config (setup's old number, args_written equal, no second number) moves once at the first command of the new Control (strata.py -> strata_cli/ram_budget_move.py,
setup.migrate_ram_budget): 40 -> 47 on 64 GB, 24 -> 31 on 48 GB, 8 -> 15 on 32 GB, with the old number as the work number. A number the person set, a unified-memory PC
and a layer split are not touched; the earlier file is kept as .bak, a second run changes nothing, and a config with nothing to move is not written.

The RAM reading is rounded up to the size the PC is sold with (16/24/32/48/64/96/128/192/256, then a multiple of 8) where it reads within 3% under it, only in the budget rule:
a 64 GB Windows PC (63.1) gets 47 like Linux, a PC with 60 GB gets 43.

Tests: terminal/tools/test_setup_rammode.py, app/host/tests/resource-rammode.test.mjs, goldens regenerated with the repo's generators, docs (UNSLOTH_Q4.md, DETAILS.md).
2026-11-19 16:51:47 +01:00
Niko1221 4a409b919b Serve: the first request's free-VRAM note is said only when the free memory fell since the start-up line or is under 512 MiB (item 17)
0.1.62 and before warned "only N MiB of VRAM free at the start of this request" at the first request of every start below 1 GiB (512 MiB off
Windows), also on a card the expert cache fills on purpose. The rule is now strata/core/vram_request_notice.hpp: say it below the safe figure
when the free memory is at least 64 MiB lower than the start-up line reported (generate.cpp keeps that figure in g_startup_vram_free_mib; the
request compares the same figure the start-up line prints) or is under 512 MiB; with no start-up figure the old rule stays. The text is the
owner-approved wording of TEXT-BATCH-0217 item 4 (Windows says "Windows", other systems "the driver"). Once per 128 MiB lower, as before.
Test: vram_request_notice_test (header-only, CPU). docs/DETAILS.md describes the new rule.
2026-11-19 16:24:56 +01:00
Niko1221 dc3ace6a0c Linux file tier: opt-in STRATA_EXPERTS_SEQ_READAHEAD marks the mapped expert files MADV_SEQUENTIAL (#5561)
From PR #5561 (njy1991; its commit 7c28d4e61), author kept. When the experts the GPU does not hold are much larger than the
file cache, the kernel can stop reading ahead on the mapping of experts.bin (or of the GGUF shards in place), and every page
fault of the prompt path's copies reads one 4 KiB page (up to 1.35 million major faults in one follow-up turn on the
reporter's PC). With STRATA_EXPERTS_SEQ_READAHEAD=1 (Linux, read once) FileExpertSource marks each mapped expert file
MADV_SEQUENTIAL right after mmap, so each fault reads the drive's read-ahead window, and logs one line per file. Only the
kernel's read-ahead changes, not the bytes read. OFF by default: unset, the function returns before it does anything.
The name is in the settings register (status research). Author's numbers (RX 6900 XT, Gyro-M 29.9 GiB experts.bin on
NVMe RAID0, cold cache, 2 runs without and 4 with): five follow-up turns 65.2 / 76.2 s down to 23.5 to 28.4 s, the
answers byte-identical. Not measured by us (it needs a PC whose file cache is much smaller than the experts); it stays off.
2026-11-19 16:19:25 +01:00
Niko1221 537b501254 file tier: a prefetch gate closed for low benefit keeps its periodic probe inside the 0.55 to 0.65 band (#4538, #4537)
From PR #4538 (cmdruid; its commit 48f6fd4f6, whose own author line is "Agent <agent@secondbrain>"; the PR login is
used as the author), author kept. gate_capacity() judged the read-ahead every 16 decode windows. A gate closed because
the read-ahead did not pay (gate_useless_) is meant to be probed again after 256 windows, but in the hysteresis band
the next decision applied the reopening threshold of a capacity closure (above the high watermark) and so cleared the
benefit reason: the gate stayed closed for good at a steady cache-room ratio between 0.55 and 0.65. A closure that
was for benefit now keeps its probe while the room stays at or above the low watermark; a real capacity drop still
cancels it and needs the high watermark to reopen. One expression, a paragraph in docs/DETAILS.md, and
tools/test_prefetch_gate.py, which compiles the real gate_capacity() from expert_source.cpp with synthetic inputs
(31 checks, no GPU); the PR reports 14 failing checks on the unpatched source. Its default source path now points at
engine/src/core. Before and after runs are in the gate table.
2026-11-19 16:19:22 +01:00
Niko1221 4e94b05592 SYCL start-up line: a CPU with AVX-512 VNNI but no VBMI no longer reads "no AVX-512" (#5481)
From PR #5481 (nekorobi-0; its commit 0946bbd77), author kept. On a CPU with AVX-512 VNNI and
no VBMI (Cascade Lake) the SYCL engine's start-up line said "this CPU has no AVX-512: the expert kernels run on AVX-2",
even with STRATA_VNNI_TIER=1 on. The line now says which case it is: no AVX512-VNNI at all; the VNNI tier off or not
available; or (with the tier on and no VBMI) "AVX-512 VNNI tier enabled (no VBMI)". The cpu_vnni_ok() header comment
names the DQ requirement and the switch, and docs/DETAILS.md gains the STRATA_VNNI_TIER row (off by default: those
rows round differently from the AVX-2 rows). Log text and docs only; no computation changes. The two new lines are in
the results file's text list.
2026-11-19 16:19:21 +01:00
Niko1221 29ca1fca37 Merge f-bw-e (BW-E: CPU prompt share, VNNI rows) into f-eng-0163 2026-11-19 16:18:53 +01:00
Niko1221 16c3fa0cd1 CPU prompt share: STRATA_PREFILL_CPU_SHARE_NT lets the CPU take experts of more than 8 tokens (opt-in); the AVX-512 rows start at 8 tokens
The share gave the CPU only the experts a chunk routes <= MAXT (8) tokens to, cheapest first, and only for chunks below 3,072 tokens.  STRATA_PREFILL_CPU_SHARE_NT=N (9-256) also lets it take
experts of up to N tokens; the pool runs such an expert as jobs of 8 tokens that share its weights (each token's row is the same bits whatever its job); the CPU rows of one layer are
capped at 16,384.  With STRATA_PREFILL_CPU_SHARE=auto and a chunk limit raised with STRATA_PREFILL_CPU_SHARE_MAX, one RTX 5090 on PCIe 4.0 x8 (14.1 GB/s), 32 pool workers on a Xeon 8352V,
UD-Q4_K_XL, 3 rounds: prompt of 1,024 / 2,048 / 4,096 / 8,192 / 12,000 tokens 1,292 -> 956 / 1,832 -> 1,392 / 4,272 -> 1,828 / 4,455 -> 3,244 / 4,694 -> 4,254 ms; from 16K up the stream-all path is
faster and the limit should stay below it.  Forced-token KL against the FP16 prompt path (48 prompts, 12,288 positions, share 0.5, N=64, limit 8,192): 0.01155 against 0.01096 without the share, ratio 1.054
[0.993, 1.120].  BASE-05 with a fixed share 0.5 (default switches): 27 of 27 identical to f-bw-a.  Default off: nothing changes unless the variable is set.

The AVX-512 rows (previous commit) now take groups of 8 tokens and more (STRATA_KQ512_MIN): at floors 3 and 4 a decode window's small groups ran 1-6% slower (bw4ab2 / bw4dec, 5 paired rounds,
decode kinds), at 8 level; with the wide share the rows take 10-14% off the prompt (1K 0.86, 2K 0.89, 4K 0.87, 6K 0.90 of the per-token dot's time).  Settings register and docs updated.
2026-11-19 15:17:11 +01:00
Niko1221 eacec1513f Docs: the conversation cache with more clients than slots, with a measurement on 2x Tesla P100 (#6010)
From PR #6010 (Keoian; its commit bae9ea652), author kept. Docs only. The row for --conversation-cache-mib and
--conversation-cache-slots gets a sentence: with more clients taking turns than slots, the oldest parked conversation
leaves and that client reads its whole prompt again when it returns, with a link to the measurement; and the history
table gets the measurement: eight agents (9.8K to 15.6K tokens each) taking turns, 18 requests, on 2x Tesla P100 with a
fork build of 0.1.57. With the defaults (4 parked conversations, 8192 MiB, 6 checkpoints) 196,234 tokens were read in 792
s with 19 evictions; with 16 slots, 16384 MiB and --prompt-cache 12, 105,080 tokens in 454 s with no eviction. One run
each; the numbers are the contributor's and were not re-run here.
Ported by hand: DETAILS.md was reorganised in 0.2.16 (the conflict is in the headings around the two places), so the two
additions are put on the head's rows. Text change: new docs text (see TEXT-PENDING in the results file).
2026-11-19 13:12:48 +01:00
Niko1221 7ffd66628e serve: the thinking budget is also read from thinking_token_budget and thinking_budget (#3340)
From PR #3340 (shizhx; its commit 2b3364653), author kept. pi's thinkingTokenBudgetField can name the budget
thinking_token_budget (vLLM), thinking_budget (Qwen) or thinking_budget_tokens (llama.cpp). The server read
reasoning_budget_tokens and, since 0.2.x, thinking_budget_tokens; a client that sent either of the other two names had
its budget silently ignored (the model thought to its full length). Service.reasoning_budget now reads the three names
after reasoning_budget_tokens, in that order, and a value that is not a whole number is the same 400 as before.
Redone by hand: the PR copied the alias onto the request in _post; the head already reads thinking_budget_tokens in
Service.reasoning_budget, so the two new names are added there instead (same behaviour on all three chat routes, no
change of the request body). docs/DETAILS.md: the one sentence in the setting's row names the three names (the PR's
paragraph sat in a part of the file that 0.2.16 rewrote).
The PR's four tests are kept (the alias names, the request's own budget wins, the order of the aliases, a bad alias is a
400); 3 fail on the old code and all pass with the change.
2026-11-19 13:12:41 +01:00
Niko1221 23d94d00ae serve: GET /v1/models/{model_id} (and /models/{model_id}) answers one model, 404 with model_not_found for another name (#5477, #5460)
From PR #5477 (DamirLukina88; its commit dd2a60c52), author kept. Visual Studio's bring-your-own-key check, and other
OpenAI clients, ask for one model by id; the server only knew the list and answered the single-model path with a
404 that was not in the OpenAI shape. The two paths now answer the model's own row (the loaded model, an alias row
with alias_of, or the image model), and an unknown name is a 404 with the OpenAI error fields (type
invalid_request_error, param model, code model_not_found). The key check is the same as for the list.
#3500 asks for the same endpoint (and also changes the docs and the lifecycle tests); this smaller PR is the one
taken, #3500 is not.
Applies on the 0.2.16 layout (serve/ -> terminal/serve/). The PR's two tests are kept
(test_model_retrieve_single_and_alias, test_model_retrieve_unknown_returns_404; both fail on the old code and pass
with the change). One line added in docs/DETAILS.md (the endpoint table).
2026-11-19 13:12:19 +01:00
Niko1221 fc0e7f7181 Docs: update.sh and SETUP.bat are gone since 0.2.16 (#6235); STRATA_PF_FUSED=0 and the moved run-config paths (#6251); HIP flags test (#6255)
SOURCE_INSTALL.md named update.sh (removed by the 0.2.16 layout move) and SETUP.bat as scripts of the repository, and the
Updating section told Linux users to run ./update.sh: now ./setup.sh --update, with the two replacements named, and a paragraph
that a run config naming a file by its old place in the checkout (data/expert-profile.bin, serve/server.py) fails at the next
restart and has to be pointed at terminal/data/... and terminal/serve/... (the restart loop reported on #6251).
The passages that said STRATA_PF_FUSED=0 "keeps MMQ" (DETAILS.md, RADEON_780M.md twice, STRIX_HALO.md, AMD_HIP.md) now say it
does in a build that has MMQ, and that the release builds of 0.2.16 and later have none: =0 there runs the prompt experts on the
native int8 kernels. All wording is in TEXT-PENDING of RESULTS-0217-GHLIST.md for the owner's word.
Also tests/terminal/test_gh_0217_hipflags.py: the three HIP builds name the chosen ROCm's include folder first (PR #6256).
2026-11-19 13:10:56 +01:00
Niko1221 44e5884ff1 Merge f-0217-ram64: the RAM budget rule leaves 17 GB free (0.2.17) 2026-11-19 12:55:46 +01:00