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).
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.
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.
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.
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.
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).
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.
(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.
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.
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.
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.
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).
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.
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.
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.
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).
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).
- 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
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)
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)
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)
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.
'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.
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.
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.
- 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.
- 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
`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.
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).
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).
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).
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