Commit Graph
318 Commits
Author SHA1 Message Date
Niko1221 b5dfe5beaf [Terminal] A start that stopped for lack of memory with several requests at once says what to lower
When the engine ends a start with "N requests at once do not fit in this PC's memory", the
Terminal now says: "This PC's memory cannot hold that many requests at once. Lower Concurrent
requests in the app (or `--parallel` in the Terminal) by one and start again." Before, the
step was the generic "Run it again; if it repeats, report the log." On a PC whose graphics chip
shares the RAM, the saved settings with a fixed expert cache and a RAM budget also got the
advice about the expert cache for this failure; the new step now wins over it.

One entry at the end of KNOWN_CAUSES, a one-line change in explain_engine_exit, and
tests/terminal/test_batch_memory_words.py (the step, the step against the shared-memory advice
with a control, another failure keeps its own step).
2026-11-12 20:00:00 +01:00
Niko1221 aff3a132f5 Merge f-ds-out ac306afb2 into f-own-int
Nine conflicts, one hunk each, all of the kind "ds-out removes DeepSeek next to a line that
main's fixes bundle (c1ff07f1a) or f-agent-turn changed". Resolved by keeping the other side's
addition and ds-out's removal (resolutions a-i accepted by the coordinator):
- apps/host/src/lib/native-fit.ts FitInput, apps/host/src/lib/native.ts NativeSize: ds-out's line
  (no DeepSeek fields or note) plus main's context_fit field.
- apps/host/src/components/GuidedSetup.tsx, NativeModels.tsx imports: contextCacheGb kept,
  deepseekContexts / OLD_DEEPSEEK_CONTEXT out.
- apps/host/tests/ui-r3.test.mjs: ds-out's first assert, main's second (context_fit).
- serve/server.py READY line: f-agent-turn's can_hold kept, the DeepSeek self.multi read out.
- strata_cli/launch/cmd.py: ds-out's suppressed --speed / --full-quality, main's new --gpu help.
- strata_cli/launch/screens.py: ds-out's STEP_LABELS, main's middle_shorten kept,
  speed_choice_available out.
- data/settings-register.json: the 39 STRATA_DS4_* entries out.
The register's stale "line" values are not regenerated here.
2026-11-11 21:33:30 +01:00
Niko1221 c7ec1e8fe3 Merge f-ok-refused 5fdb9aa4a into f-own-int 2026-11-11 21:30:00 +01:00
Niko1221 fefaa985c1 Merge main c1ff07f1a into f-own-int 2026-11-11 16:44:44 +01:00
Niko1221 ac306afb20 DeepSeek out: the docs and READMEs (owner approved the drafts 11-11 16:00)
DeepSeek V4.1-Flash leaves every user page, as written in par/dsout/DOCS-DRAFTS.md:
- README.md and its 7 translations lose the DeepSeek block; docs/media/models/deepseek.svg is
  removed with its credit lines.
- MODELS, INSTALL, docs/README, MAC, TROUBLESHOOTING, AMD_HIP, DOCKER, INTEL, MULTI_GPU,
  TERMINAL_LAUNCH, AI_SETUP, AI_REFERENCE, MEDIA_KIT, DETAILS, SAFETY, DGX_SPARK_LINUX, STRIX_HALO,
  STRIX_HALO_WINDOWS, AGENTS.md and the packaging pages (README, UPDATES, ENGINE-COMPONENT,
  mac/README): DeepSeek sections, rows and clauses deleted; the eight approved new sentences.
  STRIX_HALO's WSL sentence (true for every AMD engine) moves to the Quick start.
- The three links to DEEPSEEK41.md anchors that no longer exist (MODELS.md twice,
  TERMINAL_LAUNCH.md once) went with their sections, so the link check passes again.
- docs/data/capabilities.json drops the deepseek41 family; docs/CAPABILITIES.md and the cap
  blocks regenerated by tools/capability_table.py --write. MEDIA_KIT.md has no cap block left,
  so tools/capability_table.py no longer lists it; tools/test_capability_table.py points its two
  contradiction tests at qwen38 / qwen36 and loses the DeepSeek-on-a-Mac test.
- docs/SETTINGS.md: the three STRATA_DS4_* rows go (count 280 -> 277). The page is not fully
  regenerated: tools/settings_register.py --docs would also change seven rows that are not about
  DeepSeek and were already out of date on f-own-int 9bef5255d; they wait for the owner.
- The four approved help texts lose their [DRAFT] prefix: strata launch --context, and
  "choose the Qwen engine" (strata components use / remove).

Kept on purpose: DeepSeek as a cloud provider and search key, every DeepSeek Harness mention,
docs/release-notes-*.md and history/, docs/DEEPSEEK41.md and DEEPSEEK_MAC.md (the five-line page).
2026-11-11 16:40:32 +01:00
Niko1221 dd96b53187 DeepSeek out (4/7): setup, strata launch, strata update, Settings > Engine and the model catalog without DeepSeek
The Python side of the product no longer knows DeepSeek-V4.1-Flash (the refusal of commit 2 answers every way
it can still come in):
- setup.py: MULTI_FILE_FAMILIES / the DSV41_* pins, install_dsv41, mac_dsv41_setup, the engine package fetch and
  its helpers, the --check line, the menu row and --family deepseek41 go; model_alias is the identity; a hidden
  --dsv41-package answers the "no longer offers" line; the AMD one-card widening and the per-start card memory,
  which acted on DeepSeek configs only, go; setup_config.py loses Dsv41Inputs / dsv41_config_for.
- strata_control: dsv41_{context,engine,fit,flags,parallel,paths,sets}.py and gpu_pick.py are deleted;
  folder_use.in_use is dsv41_paths.in_use (every package kind used it); updater: no DeepSeek engine step, report
  or notice (discover_run_config leaves DeepSeek configs out through retired.py); engine_library: the Qwen family
  and the shape engines only ("deepseek" answers the "no longer offers" line); engine_component / engine_update:
  no DeepSeek offer; feed.py does not read the dsv41 member (it may stay in the feed for older Strata);
  cfg_paths / runtime: no engine-dsv41 repair; models.py: no DeepSeek import preview; the one-line deepseek41
  guards in vram_fit, amd_four_card, split_engine, replica_profile go (pictures.py keeps a retired.py guard).
- strata launch: no DeepSeek rows, Speed step, tuner, context list, picture tower, --parallel words or engine
  package; --dsv41-package, --speed, --full-quality and --dspark stay hidden and answer the "no longer offers"
  line. The --context help loses its DeepSeek parenthesis ([DRAFT] until the owner reads it).
- tools/strata_mcp.py (the catalog of the app, the Terminal and the MCP tools): no DeepSeek rows or plans; rows keep
  "multi_file": False, "disk_gb" / "rdna4_faster": None as every Qwen size had them.
- tests: the DeepSeek-only files go (tests/terminal 21 + the launch speed file, tools 4, fixtures); the DeepSeek
  cases leave the shared ones; the snapshot matrix loses its DeepSeek set and its 8 goldens (every Qwen golden is
  unchanged byte for byte); new: each dropped launch flag answers the line, an engine-dsv41 folder is neither
  listed nor touched, a DeepSeek config is left as it was by the path repair.
2026-11-11 11:37:48 +01:00
Niko1221 12355203df DeepSeek out (2/7): every way a DeepSeek model can still come in is refused in plain words, and its config is never written
Wired to strata_control/retired.py, before anything starts or is written:
- runtime.start (the app, `strata start`, a saved `strata launch` profile): the profile's run config is a DeepSeek
  one -> ProfileError with the approved refusal (the folder and size of the model files when they can be read),
  before the path repair, the engine check or any process.
- cfg_paths.repair: a DeepSeek config is never rewritten (it may still serve an older Strata).
- serve/server.py main: a config with arch deepseek41, the strata-dsv41 engine or a DeepSeek tokenizer stops with one
  line before the engine starts (exit 2).
- strata_control/models.py: a DeepSeek config is listed with component_status "retired", its line and the refusal,
  and is never inspected; `models import` / plan_import of DeepSeek files says what they are.
- setup.py: --family deepseek41 or a DeepSeek size stops with one line (exit 2); installed_configs() leaves DeepSeek
  configs out (update, calibration, the card pick, "set up like the earlier install"); retired_configs() names them,
  one line each on a plain start and on --update.
- strata launch: a DeepSeek name typed (--model, --family) or in a saved preset; the person's own DeepSeek files
  (--model-path and the own-files screen).
D1 is the owner's approved text; the other lines stay [DRAFT]. Also: retired.py back to LF line endings (commit 1
had CRLF) and UD-IQ1_S out of the name list (it is also an Unsloth Qwen name).

Test: tests/terminal/test_retired_entry_points.py (a fake DeepSeek install: config, pack, model folder, a stub
engine that would leave a mark if started; the config's sha256 before and after) + test_retired_deepseek.py:
25 passed on p1006.
2026-11-11 11:13:32 +01:00
Niko1221 5fdb9aa4ad netpolicy: a refused feed host is remembered for 6 hours by the launch's automatic check
A feed host that refuses the connection (a proxy that is set but not
running, a firewall that resets) costs about 2.0 s on Windows before the
refusal is reported (measured 2.03-2.04 s on the owner PC). A launch of a
model with its own engine shape reads the feed on every start to look for a
newer engine, so such a PC paid it on every start. The existing host memory
(rule 4) lives in one process only and never notes refusals.

Rule 4b (strata_control/netpolicy.py): a refusal is written to a small note
in Strata's own state folder (paths.state_base()/net/refused-hosts.json:
host:port and the time, nothing else), kept 6 hours (REFUSED_NOTE_S). Only
automatic reads (open_url(..., automatic=True)) read it and fail at once
with the existing "offline" words. Every read the person asked for by name
(strata update, setup, a download) ignores it and tries. The first answer
from the host (also an HTTP error answer) removes it. A damaged or
unreadable note counts as no note, without a message. Rule 4's text now
points at 4b.

automatic=True is passed only by `strata launch` -> shape_engine.ensure,
and only while an engine of that shape is installed (feed.fetch,
transfer.read_small and updater.Context carry the flag); setup's call and a
shape with no engine read the feed always. No new user-visible words.

Tests: tests/terminal/test_net_refused_note.py (the note's values, 6 hours,
host and port, a clock that went back, damaged notes, open_url's automatic
and explicit reads, removal on an answer, only refusals noted, a real
refused loopback port); two tests in test_shape_engine.py (the launch check
connects once then not again, setup and a shape with no engine still read).

Owner 11-11, item 19 "remembering refused update feeds on Windows": Ok.
2026-11-11 10:21:46 +01:00
Niko1221 c7ea3ac6a9 Merge f-own-3v 6ccf276d2 into f-own-int (round 16: our picture reader as the default, llama.cpp's selectable)
Conflict: serve/server.py Vision.__init__, f-own-int's cpu_note line and f-own-3v's reader line:
both kept.
2026-11-11 10:21:39 +01:00
Niko1221 c1ff07f1a1 Merge f-ok-gpulist (a typed --gpu list clears a leftover gpu_order; help line) into f-main-1111b 2026-11-11 10:20:18 +01:00
Niko1221 2b9df3fe71 launch: a typed --gpu list means the same in every home; the help line says who picks Main
A typed `strata launch --gpu 1,0` after an earlier launch with roles (or the
automatic multi-card pick) kept that launch's "gpu_order": "as_given":
apply_cards dropped gpu_roles, gpu_cards and gpu_none but not gpu_order, so
the start kept the typed order (Main = the last typed card) while the plan
and a fresh home let the engine order the cards (the faster card last, with
the memory guard). Now a plain card list drops gpu_order too: the engine
decides in every home. --gpu-roles is unchanged (its own branch writes
as_given).

The --gpu help line now says it, as approved:
"graphics card numbers to use, e.g. 0 or 0,1 (default: the engine's choice).
With more than one card the engine decides which is the Main card;
--gpu-roles (instead of --gpu) sets the roles yourself."

Tests (tests/terminal/test_gpu_plan_main.py): the seven typed orders after a
roles launch give the start Main of a fresh home and the plan agrees (set B
typed 1,0 fails on the old code); roles keep as_given; the help text pinned.

Owner 11-11, item 16 "Ok for --gpu list" (option 1 of case (b) and the help
line, sent 11-10 18:03).
2026-11-11 08:25:57 +01:00
Niko1221 92a2d99c87 settings: "Picture reader" in Expert settings (app: Native engine settings > Image reading; Terminal: the Advanced table): Strata's own (recommended) or llama.cpp's
- one more switch in strata_control/speed_switches.py (picture_reader): llama.cpp's writes STRATA_VISION_TOWER=mtmd into the model's run config "env", the default writes nothing; the server hands that env to strata-vision, and an older reader ignores it
- shown for a Qwen run config that reads pictures (a "vision" section), never for DeepSeek (its pictures are read inside its own engine)
- a switch can name its group and its two options: the app shows this one inside the existing Image reading group with the two option names; the other switches stay in Speed with On / Off, unchanged
- label, options and help line approved by the owner 11-11 morning (par/OWNER-WORDING-1111.md); the help line is 275 characters, so the 260 limit of the switch texts is 300 for this one row
- [DRAFT] the Terminal row's frame "Picture reader (Strata's own by default; set mtmd to use llama.cpp's). <help line>" (not yet seen by the owner); its Default cell says auto
- policy-generated.mjs and policy-vectors.json regenerated (python -m strata_control.app_policy; vectors gain Qwen, Qwen3.6 and DeepSeek configs with pictures); English strings in fix-en.json; the other eight languages in the next commit
- tests: tests/terminal/test_speed_switches.py (PictureReader: where it shows, the group and words, one entry written and none by default, --set and off, the Terminal row), apps/host/tests/speed-switches.test.mjs and policy-generated.test.mjs
2026-11-11 07:57:31 +01:00
Niko1221 dffa10490b Launch wizard: keep every Save choice on an 80x24 screen for any storage path
The Save screen's full layout counts one row per summary line; a storage
folder longer than the row wrapped and pushed "Save the preset and stop here"
off an 80x24 screen. The Storage value is now shortened in the middle to one
row (the start and the folder's own name stay readable; "..." without
Unicode). A path that fits is shown whole; nothing else in the layout changes.

Tests: 36-, 80- and 200-character paths at 80x24, and middle_shorten itself.
2026-11-11 07:47:26 +01:00
Niko1221 8cccead004 Merge f-net-item7 a7f384efe into f-main-1111
Setup and the plan accept an Unsloth mmproj-F16.gguf the person already has
as the Flash-Next picture reader.
2026-11-11 00:15:00 +01:00
Niko1221 c921c6800e Merge f-net-waits f88ea5bb0 into f-main-1111
One network rule for install, update and launch (netpolicy): connect limits,
one retry, a stall limit and a give-up time; waiting lines after 5 s;
install.sh and install.ps1 give up on a silent server and keep a slow
download; --model-path writes nothing beside the person's model files; the
tests reach no network.
2026-11-11 00:15:00 +01:00
Niko1221 cfe755e7ab launch: the worker thread's last calls to the screen are guarded like the others
LaunchApp._work told the screen how the run ended with five unguarded
call_from_thread calls after self.running = False. A quit in that window
left the app's event loop closed, the call raised "RuntimeError: Event loop
is closed" in the worker thread, and a traceback could print after the screen
was gone.

All of the worker threads' calls to the app now go through one helper,
_call: it returns False without asking when the app's loop is already closed
(Textual creates the call's coroutine before it finds the loop closed, which
left a "coroutine ... was never awaited" warning on the terminal, also from
the old guarded _emit), and ignores a call that fails. _emit and
_ask_from_run use it too.

Test: tests/terminal/test_launch_worker_closed_app.py (an app whose loop is
closed; finished, cancelled, a launch error and an unexpected error; no
exception and no unawaited coroutine).
2026-11-10 20:52:55 +01:00
Niko1221 a7f384efe7 setup and the plan accept an Unsloth mmproj-F16.gguf the person already has as the Flash-Next picture reader (lane 15, item 7)
A person who already has Unsloth's picture-reader file next to their model files no longer downloads the pinned BF16 reader (0.9 GB) a second time.
lane 14's answers check: the F16 file against the pinned BF16 file on the same tower and card gives 58 of 72 answers word for word (60 after
whitespace), none of the 12 differences wrong about the picture, while the same BF16 file on two different cards gives 55 of 72; embeddings
0.9998 mean / 0.998 worst. Owner's word 11-10: setup may accept it when the check passes.

The rule (setup.ALT_READERS, accepted_alt_reader, resolve_reader; the plan asks the same function through modelstate.reader_present):
- a file named mmproj-F16.gguf with exactly 904,004,000 bytes and SHA-256 1f7b7f0b984cf065c604360c29c8098362ed61b290db0ff12c6f360bb1a8a980
  (Unsloth, revision 38bb39ee97821de2c9009abb7e93950eec396e66);
- in a place where setup already looks for the pinned reader: the data folder's models/, an earlier install's models/, and the person's own GGUF
  folder (beside the shards, the folder above, that folder's models/);
- only when no pinned BF16 file is found anywhere: the pinned file always wins;
- anything else with that name is ignored as before (not deleted, not renamed); setup never downloads the F16 file, and with no accepted reader it
  downloads the pinned file as today.
The SHA-256 (a few seconds) is remembered in a mark in Strata's own marks/ folder, never beside the person's file. The mark is keyed by the file's
real path, size and modification time (_kept_mark), so a replaced file, even one of the same size, is hashed again. The plan hashes without
writing a mark and says nothing; `strata launch --plan` shows no 0.9 GB reader part when an accepted file is there, and still shows it for a wrong
size, a wrong hash or another file of that name, because the start still downloads it.

Wording (owner-approved 11-10, exactly):
  "  checking mmproj-F16.gguf (SHA-256, 0.9 GB) ..."
  "vision encoder: <path> (Unsloth's mmproj-F16.gguf, SHA-256 checked)"
  "  note: <path> has the name of Unsloth's picture reader but is a different file, so it is not used. The picture reader is downloaded (0.9 GB)."

With the F16 file the engine's own tower runs its F16 mode (nothing changes on the engine side).

Tests: tests/terminal/test_net_alt_reader.py (accepted and checked once; the folders above and models/; wrong size; wrong hash with the note and a
remembered answer; another name; both files present, the pinned one wins; a file accepted once and then replaced by another of the same size is
hashed again and refused; a changed size; a linked folder shares the mark and cannot hide a replacement; plan and start agree in each case; the plan
writes no mark; the pinned values are the owner's).
2026-11-10 20:19:14 +01:00
Niko1221 be9d5f5097 net: --model-path no longer fails on a folder Strata cannot write to, and writes nothing beside the person's model files (lane 15, item 5)
launch guessed a data folder from the person's own files (the folder above a "models" folder). When Strata could not write there, launch
stopped with "Strata cannot write to ...", and setup's ".done" finish marks were written beside the files (a Hugging Face cache would get them).
Now the guess is used only when Strata can write there and it is not a Hugging Face cache (discovery.writable_beside / in_hf_cache); otherwise
Strata's default data folder is used and launch says so (W9 / W9b): "Your model files are used where they are. ... so Strata keeps its own
files (the prepared data and the picture reader) in <default>." The same rule in the TUI's default folder (app.py). Finish marks of --gguf-dir
files go to Strata's own marks/ folder; marks already beside files are still read.

Tests: tests/terminal/test_net_own_folder.py.
2026-11-10 19:44:31 +01:00
Niko1221 0988d0c678 net: the launch plan says what the start will do with --data-dir and with a picture reader that is not the pinned file (lane 15, item 4)
(a) download_plan used the installed copy's folder even when --data-dir named another one, while the start (installed_serves_request) does
not use that copy and downloads everything into the given folder: the plan said "About 1.2 GB" and the start fetched 112 GB. The plan now
counts what setup will fetch into the given folder, and says "About <gb> GB to download into <folder>: ... The copy in <other> is not used
with this --data-dir." The installed copy still counts as present when it sits in a folder setup itself reuses (the remembered data folder,
Strata's own folder).
(b) The plan counted any mmproj*.gguf beside or above the files as the picture reader, while setup accepts only the pinned file name (outer
folders: the name at the pinned size) and downloads 0.9 GB. One helper, modelstate.reader_present, now follows setup's rule in the three
places that asked. Which file setup accepts is unchanged.

Tests: tests/terminal/test_net_plan_truth.py.
2026-11-10 19:44:31 +01:00
Niko1221 fd40eb0fd8 net: setup's downloads and launch's model step say what they wait for, and a silent host fails in about 44 s, not 320 s (lane 15, item 1)
setup.py's size request (HEAD) for a download used to run 5 times with a 60 s limit and a 5 s sleep, silently: about 320 s per file, and
launch printed nothing meanwhile. Now every setup request on the download path goes through strata_control/netpolicy.py:
- the connection phase (lookup, connect, TLS, proxy CONNECT, the server's headers) gets 12 s, then one retry with 30 s, 2 s apart;
  no lookup answer, a refused port, an unreachable network, a refused certificate and HTTP 4xx fail at once;
- after 5 s a line "  Waiting for <host> to answer (<n> s so far) ..." is printed, then every 10 s;
- a host that failed after the whole window is not asked again for 10 minutes in the same process (memory only, never on disk);
- the failure names the host and says what to check and what still works offline (W3/W4/W5); the proxy and ModelScope hints follow.
Launch: the heartbeat also runs in the download phase, the waiting line becomes the status sentence (phase "waiting", W2), a new sentence is
always printed by the non-terminal printer (a second download's first figure was hidden), and a cancelled or stopped launch writes
"(you stopped it: <status>)" to the setup log. The app string "Waiting for {0} to answer ({1} s so far)" is added in nine languages
(translations are first drafts). conftest.py: every test starts with an empty host memory.

Tests: tests/terminal/test_netpolicy.py, test_net_launch_waits.py (local black hole, refusing port, a normal server), test_tls_trust.py,
test_no_acquisition.py, tools/test_setup_*.py (the fakes now patch the netpolicy.urlopen seam), apps/host/tests/net-waiting.test.mjs.
2026-11-10 19:44:31 +01:00
Niko1221 7e8206b501 The picture reader's need in the sentences is its whole need at its image limit, not the one allocation that failed
The reader's cudaMalloc line gives the size of the allocation that failed (865 MiB), and the sentences said the reader needed that much. A person who freed that much and nothing more would fail on the next allocation: the reader needs about 1.5 GB in all at the default limit of 1,024 tokens (READER_NEEDS_MIB, 1,342 MiB measured), more above it (3.6 GB at 16,384 tokens, the largest mtmd GPU-reader peak measured, with a straight line between the two).

strata_control/reader_room.reader_needs_mib / whole_need_mib: the larger of the failed allocation and the reader's known need at its limit (vision.max_tokens of the run config, 0 = the largest the Terminal offers). Used by the Terminal's launch error and by the server's note (Vision.max_tokens). Example: 865 MiB failed, 600 MiB free: "it needs about 1.5 GB; 0.6 GB are free". serve/server.py's READER_NEEDS_MIB now comes from the same place.
2026-11-10 16:16:55 +01:00
Niko1221 c53e45a35d The picture reader falls back to the processor in every mode instead of ending the launch
The NVIDIA reader (strata-vision) is the CPU reader too, without --gpu, but only the on-demand reader had it as a fallback. A resident reader (two or more cards, parallel slots, a reader pinned to a card) that did not start ended the server and the launch. Vision now always has the CPU reader to fall back on (the person's image limit stays), with the existing log line; when the card had no room the sentence for the person goes with it: Vision.cpu_note, shown in /metrics (engine.vision_note) and by the Terminal's launch summary (Runner.report_vision): "Pictures are read on the processor, which is slower: graphics card N has no room for the picture reader (it needs about X GB; N.N GB are free). To read them on the card, close the other programs that use it and start again." The card number is looked up in the cards the reader was shown, the free memory is read after it failed; what cannot be known is left out.
2026-11-10 16:16:55 +01:00
Niko1221 78eaaf1b01 A picture reader that cannot start for lack of GPU memory is reported as that, with the card, the size and the next step
When another program has filled the card, the picture reader's cudaMalloc fails, ggml aborts, and the launch used to end with whatever line came last in the engine log (a debugger's error, a backtrace frame, or the assert text), because the cause search only trusted the engine's own prefixed lines.

strata_control/reader_room.py reads ggml's lines ("allocating N MiB on device D: cudaMalloc failed: out of memory", "failed to allocate CUDA0 buffer of size N"; the same for AMD) and holds the two sentences the person reads. explain_engine_exit uses it when the engine itself said nothing about memory (an engine out-of-memory line later in the log still wins): "The picture reader could not start: graphics card N has no room for it (it needs about X GB; N.N GB are free). Close the other programs that use the card and start again, or add --vision off to start without pictures." The card is looked up in the list the reader was shown, the free memory is read after the reader is gone; what cannot be known is left out. serve: vision_start_error names the cause for the server's log, a VisionNoRoom error carries it, and a start reads only the log lines it wrote itself (the engine log is shared by launches).
2026-11-10 16:16:55 +01:00
Niko1221 38ad0bcbd1 The product never starts a debugger: every child it starts gets GGML_NO_BACKTRACE=1
ggml's abort path forks gdb (then lldb, then backtrace_symbols) to print a backtrace. On a launch onto a card another program had filled, gdb attached to the crashing picture reader, wrote its own errors into the reader's output and the engine log, and the launch ended with "Couldn't get registers: No such process" instead of the cause.

strata_control/childenv.quiet_crash_env sets GGML_NO_BACKTRACE=1 unless it is already set or STRATA_BACKTRACE is on (a developer who wants the backtrace). It is applied where an environment is built (the engine and picture reader through child_env/vision_env, sd-cli, the runtime host's server, the tuning workers, the launcher's children) and once at the entry points (strata, serve.server, the runtime host, setup.py) so every program that inherits an environment gets it. tests/terminal/test_no_debugger_children.py checks the helper, each environment, and lists every place product code starts a process: a new one fails the test until it is looked at.

The snapshot goldens that record the engine's environment (env_set) are part of this commit: 116 entries in 32 golden files (launch, app_plain and app_models in all 32 machine classes x model sets, and the 20 setup entries that are driven), each exactly one added "GGML_NO_BACKTRACE": "1" in env_set (84 entries where env_set was empty, 32 where it already held other variables), nothing else. Regenerated with STRATA_SNAPSHOT_UPDATE=1 python -m pytest tests/snapshot/test_config_snapshot.py and reviewed as a diff; tests/snapshot is green against them.
2026-11-10 16:16:52 +01:00
Niko1221 7fddfd8292 Merge commit '81f7422c1' into f-0214-app 2026-11-10 01:49:20 +01:00
Niko1221 46e84e2398 Intel Arc: a model of the signed feed starts (Qwen4 day) - the Terminal's and the app's Arc run config takes a feed qwen4exp model (Unsloth layout, its one GGUF or its shards, no Flash-Next draft layer, drafter none -> drafting off, the neutral expert profile for another shape) and a model of its own shape on its engine component (component:strata-q4-<shape>; the app's Arc setup fetches that engine first); the built-in families' configs are unchanged 2026-11-10 00:02:17 +01:00
Niko1221 519c7e8c08 Control: a feed model whose entry says drafter: none starts with no drafter, and the Terminal plans none for it
Setup already left out the Flash-Next MTP head for it (Q4-P8 F3), but the start and the Terminal's plan still went through the usual
drafter decision (G14). Setup now also writes "drafting": "off", drafting.apply starts and reports none for a model whose draft layer
is off, and the Terminal resolves "off" for such a family.
2026-11-09 22:49:42 +01:00
Niko1221 d5d5b08379 Merge f-0213-shape (61d883315): a new-shape Qwen4 engine ships as its own component strata-q4-<shape> beside the Strata engine, picked by the model (owner 11-08: separate components; wording approved 'A ok, 1 yes, 2 later, 3 yes') - feed member shape_engines, setup/launch/update/Mac paths, strata --geometry checked against the signed manifest at install, older Controls never offer the model; l620 e2e (Flash-Next engine hash unchanged), Windows long-path install, Mac m1002 run 2026-11-08 22:20:12 +01:00
Niko1221 b82a368102 Merge f-0213-p8merge (b5f5e38a4): the Qwen4 rehearsal's fixes - F1-F5 (make_model_release schema, mmproj KeyError, drafter: none honoured, neutral expert profile for another shape with the owner's line, budget for feed qwen4exp sizes), STRATA_CMAKE_EXTRA in the Linux packaging scripts, G14 plan line, G12 release plan, G10/G3 docs, and G2: a real-file feed-model install gate in tools/check (tools/feed_model_install_gate.py; fails if any of F2-F5 is reverted); version bump left for the release candidate 2026-11-08 22:20:06 +01:00
Niko1221 8920bd493b shape engine: the owner's approved lines (11-08), the update label Model engine, a test that pins them; at install Control checks strata --geometry against the signed manifest's shape and refuses a mismatch (an engine from before the flag is accepted) 2026-11-08 20:56:46 +01:00
Niko1221 f16e297e5e Fit label: size is the download minus the lookup table's file; DeepSeek shows its whole size; no card or a small Mac says "may run slower"
Owner's answers of 11-08 evening:
- size = the model's download minus the n-gram / PLE / Engram table's file (28.8 GB for most sets, 54.4 GB for UD-Q5_K_XL / UD-Q6_K_XL / Q8_0, 51.2 GB for NVFP4, the stated
  memory figure for Gyro, the plan's Engram file for DeepSeek), against VRAM + RAM. UD-IQ4_XS and UD-IQ4_XS-v31 are 64.9 GB.
- the Terminal's "Needs" column and the app's version line show that same figure (DeepSeek: the whole size, not the CPU's share).
- no graphics card, or a Mac with too little memory: "may run slower" instead of "too big" / "Doesn't fit"; the app's "Doesn't fit" state and its "Uses SSD N GB" figure are gone.
  DeepSeek's "tight: needs more disk space" and the feed's "not available on this engine" rows are unchanged.
- docs/UNSLOTH_Q4.md names the rule instead of a 48 GB minimum.
2026-11-08 20:52:43 +01:00
Niko1221 a16f3fe39e One fit label for every model: "fits" or "may run slower" (a V100 32 GB with 31 GB of RAM no longer says "too big" for the Unsloth sets)
On a Tesla V100-PCIE-32GB with 31 GB of RAM every Unsloth set said "too big (can still try)" while IQ3_S, with the same 50 GB of experts, said "fits, a bit slower". The
catalog compared an Unsloth set's 48 GB RAM floor with the RAM alone and never counted the card. Not a hardware limit: UD-IQ4_XS is measured on that card.

Owner's rule (11-08): the model's weight files WITHOUT the n-gram / PLE lookup table (the "Needs (RAM + VRAM)" figure) against the graphics memory plus the RAM, nothing
taken off either side: "fits", else "may run slower". strata_control/fit_label.py holds it; the Terminal model menu, `setup.py --check`, the catalog's `on_this_pc` (tools/strata_mcp.py),
the install plan's RAM line, setup's size menus and the app's version list use it. Replaced: "fits, a bit slower", "too big (can still try)", "does not fit", the SSD-GB suffix,
the RAM-floor menu line ("<- needs 48 GB RAM, you have 31") and the install's RAM-floor warning where the set fits. Kept: "(recommended)" / "(installed)", DeepSeek's
"tight: needs more disk space" and "needs one or more graphics cards", a Mac's "too little memory", the feed's "not available on this engine", NVFP4's AMD notes in --check.
2026-11-08 20:52:43 +01:00
Niko1221 6dba262794 shape engine: the lines a person reads name the model's title (Q4 Lite Shape), not the geometry (q4_lite); one switch (shape_engine.USE_TITLE) puts the geometry name back. strata components engine and the JSON keep the shape 2026-11-08 20:41:51 +01:00
Niko1221 8a9feaedde A new-shape Qwen4 model ships with its own engine component (strata-q4-<shape>), picked by the model, next to the Strata engine
An engine is compiled for one geometry and refuses a GGUF of another, so the engine of a new Qwen4 shape must not replace the Strata engine (Flash-Next users keep theirs).

* feed: member shape_engines (engine entries plus shape); a feed model of family qwen4exp_<shape> runs on that shape's engine; build-feed --shapes refuses a model of a shape with no engine
* packaging: package_engine.py --shape (manifest id strata-q4-lite and the shape in the signed manifest), pack-engine names the archive by the component
* Control: strata_control/shape_engine.py installs it into <components>/shapes/<shape>/engine/ (resumable download, archive and manifest hashes, signature, shape, one test start), the run config says component:strata-q4-lite and engine_component.expand resolves it there; strata update brings an installed shape engine up to date beside the older one; strata components engine reports it
* setup (the app's Download, the Terminal's launch) fetches it when the model is chosen; the Terminal's first step checks it instead of the Strata engine; a shape model's min_engine is not compared with the Strata engine; not offered on a Mac yet
* older Controls ignore the member, read only strata-engine manifests and do not know the family, so they never offer the model

Tests: tests/terminal/test_shape_engine.py, tools/test_setup_shape.py.
2026-11-08 20:18:24 +01:00
Niko1221 35b776c34d Owner's wording for the two new setup lines; the plan line for a drafter-none feed model (G14); make_model_release plan: right boxes, no app rebuild for case A (G12); tests 2026-11-08 19:23:20 +01:00
Niko1221 0fdfa40b47 Merge f-q4-feedmodels (d4b72bc90): the signed feed's optional models member (strata_control/feed.py, feed_models.py), setup tables and prescan, tools/strata_mcp.py catalog, packaging/feed_tool.py --models/model-files/verify-feed, the app family menu (Qwen4 prep) 2026-11-08 11:50:30 +01:00
Niko1221 b0fc432ed9 Merge commit 'b8d604d28' into f-clean-1a 2026-11-07 17:25:04 +01:00
Niko1221 506f65781e Remove unused imports reported by Ruff F401 (cleanup 4.3)
60 files, 94 names: strata_control, strata_cli, serve, integrations/harness,
metal/setup_mac.py, packaging/make_local_feed.py, sycl/tools/fixups.py and the
tools/ scripts. Left alone: test files and tests/, bench/results, __init__.py
re-exports, apps/host/audit-fixes (moving in 3.5), tools/dflash2/final_tables.py
(its exec() uses the namespace), tools/nvfp4_verify_gguf.py (torch) and the
platform import in strata_control/doctor.py (tests patch doctor.platform).
2026-11-07 16:28:41 +01:00
Niko1221 d8db7ced36 The four owner-approved strings (11-07), word for word
1. strata launch --help: "dflash2 (downloads its drafter once, 0.3 to 1.2 GB depending on the model; the size is shown before the download)"; the docs row: "...and downloads its drafter once (0.34 GB for the models that have a tuned drafter, 0.52 GB on Intel Arc, else 1.2 GB)".
2. The Arc launch line ends "No model files were downloaded." (was "Nothing was downloaded.").
3. After "Drafting: off (no drafter is downloaded yet)", only when a recent miss mark exists and the choice is DFlash2 or Auto on a tuned set: "Run strata drafting fetch to get the DFlash2 drafter now."
   (drafting.fetch_hint, printed by the server's start; the miss mark and its 12 h window move to drafting.py, drafting_fetch keeps its names).
4. A bare strata drafting fetch with several DFlash2-capable models set up: "Several models are set up here. Say which one: strata drafting fetch --model <name>, or --config <file>."
   (exit 2, nothing downloaded; before, it fetched the stock drafter).
2026-11-07 13:30:48 +01:00
Niko1221 9b02c62ab5 DFlash2 tuned drafter: plan and size follow the drafter Auto really fetches; every app load path fetches it
- drafting plan --model (+ tuned, drafter_gb, tuned_needed, file); mtp or nothing needed says so; launch --plan sees a model not installed yet and a stock pack from 0.2.11
- drafting fetch --throttle (12 h rule, silent when the feed is not there); a bare fetch uses the one installed model's run config
- app: plain load, restart of stopped models and tuning run fetch the tuned drafter when Auto resolves to it; install plan passes the model; Drafting hint number from the plan
- launch plan text shows 0.34 / 0.52 GB, not 0.3 / 0.5
2026-11-07 01:09:42 +01:00
Niko1221 a123ba696c feed models: the Mac setup paths, a row for a model the engine does not run (Terminal, app), UNAVAILABLE_POLICY switch 2026-11-06 17:30:11 +01:00
Niko1221 cc3f9142e3 Auto on the 12 GB / streaming CUDA class: IQ3_S starts the MTP, UD-IQ4_XS-v31 starts DFlash2 with the tuned pack at the class's own 0.8
drafting.CLASS_DEFAULTS: one removable entry per set, read from the signals the confidence already reads (a CUDA card whose engine slots are under the last-but-one CONF_STEPS step).
IQ3_S: on P2003 the file cache makes the MTP faster than DFlash2 by 12-44% (RTX2 t4b). UD-IQ4_XS-v31: DFlash2 beats the MTP by about 6.5% (t8, 3 starts; DF-VAL forced-fast tuned 0.8 x1.037).
The v31 entry DEPENDS ON RTX2's FILE-TIER FIX (unbuffered reads) BEING IN THE SAME RELEASE; without it remove that entry.
Anything chosen by name wins. Resident CUDA, Strix, gfx1201, Arc and Metal entries and the conf tables are unchanged. The sm_86 support line reads the set: UD-IQ4_XS-v31 gets the existing
'faster on some kinds of text and slower on others' line, every other model keeps 'slower'.

(cherry picked from commit 42412d42ff835d6a66a78fbf6d119911908eda1b)
2026-11-06 15:47:42 +01:00
Niko1221 ce6bbd7d54 DFlash2 on Intel Arc: the tuned bf16-selector pack for SYCL + IQ3_XXS at Arc's own confidence 0.6
The SYCL 0.2.11 engine reads only bf16 selector codebooks, so Arc gets its own tuned file (qwen3.8-flash-next-dflash2.strata1.q4_0-bf16sel.pack, 522,458,112 bytes, own SHA-256 pin) through
SetDefault.pack. Only IQ3_XXS, the set measured on the A750 (tuned 0.6 x1.054, 3 of 3 rounds); other Arc sets keep the stock pack. SYCL never gets the selq4 file, CUDA / HIP / Metal never the
bf16sel one. NOTICE names the second file and no longer overclaims about the text.

(cherry picked from commit 6111c583b70e3c88a3d54039e13d76b19f15742d)
2026-11-06 15:47:42 +01:00
Niko1221 31928fbe34 DFlash2: Strata's tuned drafter pack on CUDA (every expert resident) and Strix Halo, at their current confidence
SET_DEFAULTS entries carry a card condition (tuned_applies: the CONF_STEPS first-step slots or the Spark's shared memory for CUDA, gfx1151 for HIP); no entry names a conf, so
conf_for / CONF_STEPS / BACKEND_CONF run as before and only the pack changes. Enabled only for the cells measured at the shipped conf (CUDA-resident IQ3_S and UD-IQ4_XS-v31, Strix IQ3_S, UD-Q4_K_XL, UD-IQ4_XS).
12 GB and 24 GB cards, several cards, gfx1201, other AMD and SYCL never fetch or use it. Fetch keeps tuned, then stock, then MTP; silent offline; feed backends are asked per start's backend.

(cherry picked from commit f096dcd750b5928ace6f9eca1e2936b9e35578d4)
2026-11-06 15:47:42 +01:00
Niko1221 3e8d3b2940 Mac: DFlash2 is the default drafter for UD-Q4_K_XL and UD-IQ4_XS-v31, with Strata's tuned drafter at --draft-conf 0.7
SET_DEFAULTS is the one per-(backend, set) table (Metal only; IQ3_S stays on the MTP). Setup, strata launch and strata drafting fetch fetch the tuned pack through the signed feed
(pinned size and SHA-256, resumable, silent offline, the standard drafter and then the MTP as fallbacks). Apache-2.0 licence and the modified-by-Strata notice ship in
data/dflash2-tuned and are copied beside the file. The Metal 'not tested' line is replaced for these sets.
2026-11-06 07:52:31 +01:00
Niko1221 39ea3e5216 launch: Unsloth's sets are written for an Intel Arc card (adopt.FAMILIES), without --ple-gguf; test 2026-11-05 08:30:25 +01:00
Niko1221 9ed3c77899 catalog: Unsloth v3.1 Qwen3.8-Flash-Next sets (UD-IQ1_M, UD-Q2_0, UD-IQ2_XS, UD-Q2_K_XL, UD-IQ3_XXS, UD-Q3_K_XL, UD-IQ4_XS-v31) at d9620119 with a per-model revision; UD-Q4_K_XL's four-shard layout accepted from local files; manual-load refusal lifted (UD-IQ1_S stays refused); mac_fit switch for the Q5_0 down sets; header-only fixtures and tests (about lines pending wording) 2026-11-05 07:23:41 +01:00
Niko1221 cabb271145 launch: 'A new API key was made' is said only once the run config holding the key has been written (never in the plan or before a refusal) 2026-11-04 17:19:20 +01:00
Niko1221 b75e8a975d launch: a profile or run config of the launch that cannot be read stops it before anything is written, so the API key is not replaced (F1, found on l620); owner-approved wording 2026-11-04 16:04:18 +01:00
Niko1221 66331f9bc0 Merge f-0213-life (final 576d06553) into f-0213-int
Conflict in strata_cli/bench_facts.py (the redaction helper): kept both sides' intent. The host name comes from sysinfo.node() (LIFE) and the key is redacted with usable_key(key), word=True, exact=True (SECURE).
2026-11-04 12:24:01 +01:00