Commit Graph
202 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 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 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 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 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 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 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 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 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 c6dda74bf2 tune: when candidates were skipped for memory the result says so instead of 'already the fastest' (#5122)
'N settings could not be tried: not enough free memory' is the result message (and the Terminal's tuning line) only when some candidates were skipped for memory
in a result that otherwise keeps the current settings; the structured outcome is unchanged and values.not_tried carries the count. Owner decision 11-04.
2026-11-04 11:06:16 +01:00
Niko1221 380212689a launch: --set mmap-experts takes a word for strata-dsv41 and stays a bare switch for Qwen (#5027)
The engine's flag schema picks which options are valueless: on DeepSeek --mmap-experts on|off|auto keeps its word through derive_config, the one argument
precedence (arg_layers) and a second launch. Approach as in PR #5028, written here.
2026-11-04 10:54:12 +01:00
Niko1221 ad142b468c launch: one precedence for engine options; an explicit --set draft-conf and calibrated values survive (#5178, #5132, #4985)
Explicit launch values, then persisted overrides (user_args and hand edits to the launch config), then calibrated values (recorded by
engine calibrate --apply-result with the model and context they were measured for), then Auto. derive_config builds the argv once through
strata_control/arg_layers.py; explicit values go to user_args so the DFlash2 policy keeps them, and are not remembered when left out next time.
2026-11-04 10:36:06 +01:00
Niko1221 ac1dfef883 launcher: draft layer also found in --data-dir, split engine counts free VRAM, plan card numbers are the --gpu numbers
- discovery.prepared_beside(gguf, data_dirs): after the models-folder walk it also looks in --data-dir and the remembered data folder for mtp/rt, the pack and the picture reader (setup writes them there); plan, download_plan and the own-files preview pass them. A model folder outside the data folder no longer asks for the 5.2 GB layer a second time.
- split_engine: Card.free_mib from the same nvidia-smi call (memory.free; AMD: the render node's vram_used), fit = min(size, free) - 700 MiB; busy cards get the layer split with DFlash2 and no draft-layer part. Runner.card_probe leaves free memory out while a server of this launch (same profile or port) is about to be stopped. Free cards decide as before.
- plan: the cards line prints the numbers --gpu takes and leaves out cards CUDA_VISIBLE_DEVICES (AMD: ROCR/HIP_VISIBLE_DEVICES) hides; the split probe respects the same variables when no card is named. Digits only.
- tests/terminal/test_fix3_0212.py (41 tests); launch_support.Home clears the visibility variables.
2026-11-04 07:11:31 +01:00
Niko1221 ae5e73de20 drafting: a DFlash2 the person chose by name keeps the number of requests they chose (DFlash2 with N requests); Auto and the MTP unchanged
- drafting.blocked_by(named=True): only --pipeline-windows still blocks; Metal keeps the old rule (no per-request drafters there)
- apply/launcher/plan pass the choice; the all-cards split engine runs --draft dflash2 --draft-model PACK only for DFlash2 by name AND --split-engine on
- the split engine's own DFlash2 start line counts as "DFlash2 on"; a split run config with --draft dflash2 is left as it is
- app Drafting hint and Terminal --drafting help say it (owner-approved wording, English only)
- tests: terminal drafting/single/split-parallel, split engine, serve parallel, node parallel-default
2026-11-03 16:28:14 +01:00
Niko1221 fc5dac23c5 Layer split spill walk: stage-weight trim for short cards, drafter drop and head on host per card, KV window and fewer-cards steps; launcher retry without a drafter and the engine's own reason as the last line 2026-11-03 10:02:18 +01:00
Niko1221 3f15274e8f 0.2.10.1 Control: the app starts the all-cards split engine like the Terminal
`strata split-engine apply --config IN --out OUT` turns the run config the app built into the split engine's (same steps as strata launch: rule, strata-split-N beside the
engine, draft layer on disk, lanes 1..8 from "parallel"); nothing is written on a no. Shared helpers in split_engine.py (exe_finder, draft_layer_present, apply_run_config,
split_plan_line), used by the launcher too. `strata drafting plan` asks the rule with the choice in hand (a saved DFlash2 under an Auto on the screen is Auto), says split for
an explicit MTP as the Terminal does, and uses the Terminal's plan line; expected() refuses a conversation memory other than int8 as the start does. --no-split stays.
Tests: AppPlanEqualsTerminalPlan, AppStartsTheSplit replace AppDoesNotSplit; docs/SPLIT_ENGINE.md describes the app.
2026-11-03 04:06:55 +01:00
Niko1221 82a028f96e The app and the launcher follow the plan: a plain Auto load fetches the MTP draft layer when the split will engage, the Models screen and the fit say split + MTP, and the summary says what runs after a split fallback
App (apps/host): a plain Auto load (no choice carried, none saved but Auto) fetches the draft layer when `strata drafting plan` says mtp_needed and split,
the same as the Terminal; a Load that carries a choice is as before. probeDrafting reads the plan's split word (capabilities.dflash2Split); the install's drafter
(resolveDrafter) takes it too, so a new install on 2 cards leaves DFlash2 out and gets the MTP layer. drafting.ts / native-settings.mjs
resolveDrafter(choice, family, served, split): Auto is the MTP where the split takes the start, a DFlash2 the person chose stays; NativeModels.tsx passes it, so the
label and the fit use the MTP. `strata drafting plan` gains "split".
Launcher: when the server starts the normal layer split because the all-cards split engine would not come up (metrics engine.split_fallback), the final summary
replaces "Using the all-cards split engine on N cards" with "The all-cards split engine could not start (<the engine's own reason>); running the normal layer split."
Tests: apps/host/tests/drafting.test.mjs; tests/terminal/test_split_parallel.py (PlanTellsTheApp, SummaryTellsWhatRuns).
2026-11-02 19:59:57 +01:00
Niko1221 63422c2443 Split engine as the automatic default really works on a fresh install: Auto that picks the split fetches the MTP draft layer, and a missing draft layer is a quiet layer split
The split runs the model's draft layer (--mtp) and exits at start without it ("sfnx: --native and --mtp are required"). The plan and the fetch for Auto
resolved to DFlash2 (drafter 1.2 GB, no draft layer), so on 2 x sm_86/sm_120 or 4 x gfx1201 the split was chosen at start, failed, and the server fell back
to the layer split after "Using the all-cards split engine on 2 cards".

(B) strata_control/split_engine.expected(): the rule apply_to_config uses, asked before anything is on disk (model assumed when its file is not there yet).
Runner.split_expected / resolved_drafting and drafting_inputs: Auto where the split will take the start is the MTP, so download_plan and the fetch include the
draft layer (5.2 GB) and not DFlash2's drafter, setup gets --mtp on without --drafter dflash2, and the plan says "Drafting: MTP (the all-cards split engine uses
the MTP draft layer, 5.2 GB)". The app's `strata drafting plan/fetch` (drafting_cmd._inputs) follows the same rule. A person's own DFlash2 / off, --split-engine
off, one card, other cards, three cards keep what they had.
(A) Runner.apply_split_engine: when the --mtp folder is missing or empty at start the split is not picked (Auto: silently, the layer split with DFlash2 starts as
the plan said; "on": one line saying to add --drafting mtp). _auto_gates() is the Auto-only part of the rule, shared by apply_to_config and expected().
Tests: tests/terminal/test_split_parallel.py (Terminal and app plan paths, AMD 4 x gfx1201 and 2, one card, sm_89, own DFlash2, off, missing draft layer).
2026-11-02 19:41:45 +01:00
Niko1221 742863adf3 Revert "Split engine as the automatic default really works on a fresh install: Auto that picks the split fetches the MTP draft layer, and a missing draft layer is a quiet layer split"
This reverts commit 770a9b8dc8.
2026-11-02 19:41:42 +01:00
Niko1221 45c71cf9c3 Merge f-0210-draftsw-dl: switching the model resets Drafting to Auto (Terminal and app); the Q4_0 selector pack is converted only for an engine that carries it 2026-11-02 19:37:43 +01:00
Niko1221 fca8b48c00 Drafting follows the model: the Terminal goes back to Auto when the model changes to one without a Drafting choice (DeepSeek, Coder, Swift, NVFP4) and a launch writes none into a DeepSeek run config; the app's Models page resets to Auto for a model that is not installed; the Q4_0-selector pack is made only where the installed engine reads it (never for the SYCL engine); tests 2026-11-02 19:37:22 +01:00
Niko1221 770a9b8dc8 Split engine as the automatic default really works on a fresh install: Auto that picks the split fetches the MTP draft layer, and a missing draft layer is a quiet layer split
The split runs the model's draft layer (--mtp) and exits at start without it ("sfnx: --native and --mtp are required"). The plan and the fetch for Auto
resolved to DFlash2 (drafter 1.2 GB, no draft layer), so on 2 x sm_86/sm_120 or 4 x gfx1201 the split was chosen at start, failed, and the server fell back
to the layer split after "Using the all-cards split engine on 2 cards".

(B) strata_control/split_engine.expected(): the rule apply_to_config uses, asked before anything is on disk (model assumed when its file is not there yet).
Runner.split_expected / resolved_drafting and drafting_inputs: Auto where the split will take the start is the MTP, so download_plan and the fetch include the
draft layer (5.2 GB) and not DFlash2's drafter, setup gets --mtp on without --drafter dflash2, and the plan says "Drafting: MTP (the all-cards split engine uses
the MTP draft layer, 5.2 GB)". The app's `strata drafting plan/fetch` (drafting_cmd._inputs) follows the same rule. A person's own DFlash2 / off, --split-engine
off, one card, other cards, three cards keep what they had.
(A) Runner.apply_split_engine: when the --mtp folder is missing or empty at start the split is not picked (Auto: silently, the layer split with DFlash2 starts as
the plan said; "on": one line saying to add --drafting mtp). _auto_gates() is the Auto-only part of the rule, shared by apply_to_config and expected().
Tests: tests/terminal/test_split_parallel.py (Terminal and app plan paths, AMD 4 x gfx1201 and 2, one card, sm_89, own DFlash2, off, missing draft layer).
2026-11-02 19:21:07 +01:00
Niko1221 cd35829bb8 Split engine and parallel: no collision on the first 2-card Auto start; --parallel N and Concurrent requests set the split's lanes
The split's run config always carries --batch N. ensure_profile still wrote the launch profile's parallel=<card fit> (4 on 32 GB or more) beside
it, and strata serve --profile (cli._effective) refuses a parallel override next to --batch: every 2-card NVIDIA start with the split on Auto
stopped with "parallel override conflicts with --batch/--slots in run config args" before the engine ran. Same for the AMD four-card default.

- runner.ensure_profile: no parallel override when the run config already names its slots (run_config_owns_slots)
- runner.apply_split_engine: the person's --parallel N is the split's lane count (cfg["parallel"] for the rule; taken out again on a refusal)
- cli._effective: a parallel override on the split's run config (split_engine_note) is not a conflict (the app's Concurrent requests); other configs keep the check
- server.parallel_args: "parallel" on the split's run config sets its --batch
- tests/terminal/test_split_parallel.py: Terminal path, app path, AMD four-card, lanes from the flag, the check kept for other configs
2026-11-02 19:04:34 +01:00
Niko1221 b1043775d9 DeepSeek with your own shards: the launch plan counts the shared files setup still fetches (the Engram, the DSpark drafter, the picture file), with the same search setup makes (setup.dsv41_shared_missing). Before: the plan said 'Nothing to download' and setup then fetched the 8 GB drafter, even with --dspark off (found on Strix, 2026-11-02; the drafter is part of the model's prepared data, so --dspark off does not skip it) 2026-11-02 18:09:02 +01:00
Niko1221 95901fe8a4 Merge f-0291-split-hip e3563ff3d: AMD split final candidate (batched draft layer, RCCL sums, strata-split-2/3/4-amd) 2026-11-02 17:03:21 +01:00
Niko1221 83cadd32fe split HIP: gfx11/gfx12 WMMA paths, one binary with code objects for gfx1100-1103 gfx1200 gfx1201, kernel self-test on cards not run (hip/selftest*), exe lookup strata-split-N-amd, experimental AMD only on explicit on, packaging for N=2,3,4 2026-11-02 12:39:12 +01:00
Niko1221 202bb94ae6 split HIP: AMD gfx1201 starts the split by default (AUTO_SPLIT_AMD_ARCHS), off by key, preset or STRATA_SPLIT_ENGINE=0; tests and docs 2026-11-02 12:27:01 +01:00