Commit Graph
605 Commits
Author SHA1 Message Date
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 fefaa985c1 Merge main c1ff07f1a into f-own-int 2026-11-11 16:44:44 +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 cd97450504 Merge main 6c642df75 into f-own-int (round 16: network waits, robustness, Windows kill-on-close job start, GitHub and transfer fixes)
Conflict: tools/test_setup_llama_archive.py, deleted on f-own-int (e43ff9885, no llama.cpp archive
download in the own stack) and changed on main (fd40eb0fd, its urlopen mock moved to netpolicy):
kept deleted.
2026-11-11 10:21:31 +01:00
Niko1221 aed74bb742 Merge f-ok-mark (picture-reader file mark keyed on the change time) into f-main-1111b 2026-11-11 10:20:17 +01:00
Niko1221 4972c0b4eb Merge f-gh5715 (Qwen3.6 context fitted to the card, #5715) into f-main-1111b 2026-11-11 10:20:16 +01:00
Niko1221 b94c2931fb setup: the alternative picture-reader mark also keys on the file's change time
An accepted mmproj-F16.gguf is hashed once and remembered in marks/, keyed by
the real path, size and modification time. A file rewritten in place that
keeps its size and modification time kept the old mark and was not hashed
again.

The reader file now has a mark of its own (_alt_reader_mark): real path,
size, modification time and change time (_change_time_ns). On Linux and Mac
that is st_ctime_ns. On Windows os.stat's ctime is the creation time, which
an in-place rewrite keeps, so the file system's ChangeTime is read through
GetFileInformationByHandleEx(FileBasicInfo). _kept_mark is unchanged, so no
other kept mark (an Engram's too) is voided by this change; an existing
reader mark is hashed again once.

Tests (tests/terminal/test_net_alt_reader.py): an in-place rewrite with the
size and modification time put back is hashed again and refused (fails on
the old code); the change time moves on such a rewrite on this system, and
on Windows differs from os.stat's ctime; other kept marks keep their key.

Owner 11-11, item 20 "the reader-file mark keyed on change time": Ok.
2026-11-11 08:20:26 +01:00
Niko1221 9e8502b76e Qwen3.6: recommend the context that fits the card, and say it before the start when it does not (#5715)
Setup marked 128K "(recommended for your GPU)" for Qwen3.6 on every card
and checked nothing against the card's memory, so a 12 GB card was set
to 128K and the engine stopped with a bare out-of-memory line.

- setup.py own_path_context: 128K where it fits the card; on a card where
  128K does not fit, the largest menu size that does (12 GB: 32K; 16 GB:
  128K for UD-Q4_K_XL, 64K for UD-Q6_K_XL and Q8_0); the smallest size when
  none fits. --yes takes it; every size can still be chosen.
- A chosen context that does not fit gets one line before the start, in
  setup and in the server's start (serve/server.py), the owner's wording:
  "At {context}, this model's conversation memory needs about {X} GB of
  graphics memory. With the model itself that is more than this card's
  {N} GB, so it will probably not start. {fit} fits on this card: choose
  {fit} or less." The context is kept as chosen. Nothing is said where no
  size fits.
- tools/strata_mcp.py install_plan without a context: the same rule.
- A model the rule has no figures for (a feed model) keeps 128K as before.

The rule is strata_control/own_path_fit.py; its card share (8.55 GiB) is
derived from one field log and is the strict end, so on some cards the
mark can be smaller than what would start.
2026-11-11 00:29:21 +01:00
Niko1221 736266e87f Merge f-own-5 56630caca into f-own-int (round 14: Strata's own VAE decoder for sd-cli and the images "vae_decoder" switch) 2026-11-11 00:18:56 +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 56630caca0 Image generation: images "vae_decoder" switches sd-cli to Strata's own VAE decoder (CUDA / HIP builds; default stays stable-diffusion.cpp's)
The images section takes "vae_decoder": "sdcpp" (default, also when absent) or "strata".  "strata" adds strata_vae=1
to the one --model-args string sd-cli gets (serve/images.py sd_cli_args), next to qwen_image_2_1_native=1 and
strata_noise=1.  Hidden flags build it in: setup.py --image-vae on|off and tools/image/install.py --vae on|off, honoured
for cuda and hip only; the sd-cli build stamp gets "vae_decoder" = qimage.vae_hash() (apply.py and every file it
copies, CRLF-neutral), so a build without the switch keeps its stamp and nobody compiles again unasked.

A config that asks for the decoder where it cannot run is refused before sd-cli starts (ImageGen.vae_problem(), also
printed once by the server at start), in the owner's wording of 11-11:
- the sd-cli here was built without it: "Image generation is set to use Strata's own picture decoder ("vae_decoder":
  "strata" in the images settings), but the image program here was built without it. Run setup again with: --images
  qwen-image --image-vae on"
- another backend: "Image generation is set to use Strata's own picture decoder ("vae_decoder": "strata" in the images
  settings), which needs the CUDA (NVIDIA) or ROCm (AMD) build of the image program; this one was built for {backend}.
  Set "vae_decoder" to "sdcpp" in the images settings."
- setup --image-vae on for another backend warns and carries on without it: "Strata's own picture decoder runs with
  CUDA or ROCm only; image generation on {backend} keeps stable-diffusion.cpp's decoder"

Tests: serve/test_images.py VaeDecoderSwitch, tools/test_qimage.py VaeDecoder (the exact sentences included).
p1004-20261111-0012-8a8a: tools/image/gate, tools/test_sdcpp_vae.py, tools/test_qimage.py, serve/test_images.py
102 passed, 51 subtests passed.
2026-11-11 00:14:22 +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 4c06268498 net: updates, components, the draft layer and the other transfers follow the one network rule (lane 15, item 2)
The rest of the call table goes through strata_control/netpolicy.py:
- transfer.read_small and transfer.download: 12 s then a 30 s retry for the connection; a download resumes from the byte it reached, in the same
  run, while bytes keep coming, and stops after 5 minutes in a row with no new byte (W6), never on a total time. transfer.Unreachable /
  Interrupted carry the host and the words.
- feed.fetch (the update check): W7 and its two companions (offline; "did not answer a moment ago"), raised as feed.FeedUnreachable(FeedError,
  exit code 6). Callers that must stay silent at a launch catch the class, not the words: dsv41_engine.upgrade matched the text "could not be
  read" and would have printed "A newer DeepSeek engine may be available but could not be checked: ..." offline with the new sentence; drafting_fetch
  names the class too. feed_models.load reads under shorter limits, prints the waiting line and no failure sentence. Silence offline / refused /
  never answering is tested for dsv41_engine.upgrade, shape_engine.ensure, drafting_fetch, feed_models.load, driver_floor.from_feed and the daily
  check (tests/terminal/net_dead.py, test_net_silent_callers.py and the callers' own test files).
- updater, pictures and drafting_fetch say what they download, so the failure reads "... so <what> could not be downloaded".
- components._fetch and tools/mtp_fetch.py use netpolicy.urlopen through open_url in full (the draft layer's 120 s x 6 loop is gone); setup runs
  the draft-layer fetch again only when the last run moved bytes, and stops on its NO_ANSWER exit (4) with the fetch's own lines.
- setup's parallel and single downloads end after 5 minutes without a new byte (W6) instead of 30 rounds or 35 minutes of silence.
- Host memory: only a call that used the whole window (12 s, then 30 s) writes it; shorter calls only read it.

transfer._copy keeps what arrived before a stall. It read 1 MiB blocks with read(): when a connection stalled mid-block the received bytes were
thrown away, so a stalled download lost up to 1 MiB and the 5-minute clock (counted on the .part size) saw no progress. It now gathers read1 pieces
up to 1 MiB and hands them on at once when a read had to wait; on an error the gathered bytes are written first. Measured on loopback, 2 GiB per
run, 3 runs alternating, client CPU, MiB/s (copy CPU s):
  p2006 HTTP  old 4044 (0.51)  read1 only 3945 (0.52)  gathered 3899 (0.52)
  p2006 TLS   old 1751 (1.14)  read1 only 1264 (1.60)  gathered 1523 (1.32)
  l620  HTTP  old 2918 (0.57)  read1 only 2896 (0.70)  gathered 2937 (0.65)
  l620  TLS   old 1160 (1.74)  read1 only  826 (2.45)  gathered  970 (2.10)
HTTP is within noise; TLS is 13-16% under the old loop at 1.5 and 0.97 GiB/s, above any link a user downloads over. The gathering is kept on
purpose: it is what keeps received bytes across a stall; do not remove it to win the TLS figure back.

Existing tests that encoded the old behaviour are updated to the new rule: the "cut download resumes" tests (updater, dsv41 engine and upgrade,
shape engine, update-with-model) now assert that the first run completes, that exactly one more request follows with the header
"Range: bytes=<kept>-" and that no byte is fetched twice; the W6 test also resumes on the next run from the kept size. The unreachable-feed tests
assert the approved sentences.

Tests: tests/terminal/test_net_transfer.py (including the 365 s real-time trickle tests with STRATA_SLOW_NET_TESTS=1, which passed on the final
tree), test_net_silent_callers.py, tools/test_setup_dl_fix.py, tools/test_mtp_fetch.py, tools/test_setup_pins.py, tests/tuning/test_components.py,
tests/terminal/test_net_launch_waits.py (the short model-list read keeps the download its own attempt).
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 5fa30bc8d4 Merge f-v100-chunk 3a1e3cc64 (larger prompt chunk default for compute capability 7.0) into f-own-int 2026-11-10 18:07:20 +01:00
Niko1221 150c2394fc Merge f-own-5 fccdb48a3 (image noise switch, step 1 only) into f-own-int 2026-11-10 18:07:20 +01:00
Niko1221 2503b206b0 Merge main dbb2d168c (picture-reader fix, GGML_NO_BACKTRACE) into f-own-int 2026-11-10 18:07:19 +01:00
Niko1221 b7713cf427 setup: a build folder whose CUDA toolkit changed drops the cached CUDA paths (#5717)
FindCUDAToolkit keeps CUDA_cudart_LIBRARY and the other CUDA_* / CUDAToolkit_*
entries of the toolkit a folder was first configured with; a new
-DCUDAToolkit_ROOT does not search them again, so after a CUDA update that
removed the old toolkit ninja stopped on the old libcudart.so, twice.

cmake_build now compares the cache with the requested toolkit: another
CUDAToolkit_ROOT, or a cached CUDA path that no longer exists, adds
-UCUDA_* -UCUDAToolkit_* before the -D definitions and removes
CMakeFiles/*/CMakeCUDACompiler.cmake so CMake detects the compiler again.
The objects stay, so only what changed is rebuilt. An unchanged or new folder
gets the same configure line as before.

Test: tests/terminal/test_issue_5717.py (fake cache and toolkit folders).
2026-11-10 17:45:53 +01:00
Niko1221 3a1e3cc648 setup: bare_auto_is_32768 follows the engine's rule for compute capability 7.0 too
The engine now gives a bare --prefill auto the 32768 ceiling on one Volta card (nv_chunk_card_ok(7, 0)), so setup must not print the "--prefill auto:32768
read prompts 21-35% faster" tip for a V100 config.  arch "70" is now yes; "75" (Turing) and "6x" (Pascal) stay no.  tools/test_setup_bench_tips pins both.
2026-11-10 17:39:28 +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 4b9682183d Image generation: the noise switch. images "noise": "strata" (default "sdcpp", nothing changes) adds strata_noise=1 to sd-cli's --model-args, merged with the native runner's; setup --image-noise on (hidden) builds sd-cli with the generator and stamps the build, only then, so nobody compiles again unasked; a config that asks for it with an sd-cli built without it fails with a plain message and one next step 2026-11-10 16:02:24 +01:00
Niko1221 ffb3d9b31b Merge main (87dfca0e7) into f-own-int: the 0.2.14 app branch, fixtures and CI fixes, the Qwen4-readiness tools, the shape-engine build scripts
Conflicts (each resolved by keeping both sides):
- .gitattributes: f-own-1b's LF rules for third_party/strata-gguf-py and
  third_party/strata-llama, and main's *.jinja LF rule.
- packaging/build_cuda_linux.sh: f-own-1b's optional STRATA_GGML_DIR
  override ($ggml) and main's shape_setup line; the cmake line is
  $ggml ${STRATA_CMAKE_EXTRA:-} $shape_cmake (no third_party/llama.cpp path).
- packaging/build_hip_linux.sh: ${GGML[@]+...} (the optional override) plus
  main's $shape_cmake.
- spark/build_engine.sh: $ggml plus main's ${STRATA_CMAKE_EXTRA:-} $shape_cmake.
packaging/build_sycl_linux.sh, setup.py and tools/test_setup_choices.py
merged by themselves.
2026-11-10 08:37:32 +01:00
Niko1221 c8d1d73122 Merge commit '95e9b7341' into f-0214-app 2026-11-10 01:51:44 +01:00
Niko1221 95e9b7341f setup: the first range probe of a parallel download is tried again after a hiccup (proposal, from lane 8)
One failed range probe (a reset, a timeout, a busy server) made parallel_download give up and the whole 50-100 GB download ran as
one stream. The probe is now tried up to 3 times (waits 1 s and 3 s) for a timeout, a reset or dropped connection, or HTTP
429/500/502/503/504. No internet (no DNS answer, no route, refused), a 4xx, or a server without ranges still ends at once, with no
wait and no message. No user-visible text.
2026-11-10 01:49:32 +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 3d87620995 setup.py: intel_control_setup's docstring no longer says gguf-py is downloaded (nothing is, since the vendored and own GGUF tools) 2026-11-09 22:20:31 +01:00
Niko1221 0f1e5e4cb8 Merge f-own-2b (cc8c29f31) into f-own-int: our own GGUF reader/writer and quantizers (gguf-py out of the pack tools)
No conflicts.
2026-11-09 22:04:18 +01:00
Niko1221 b2de2641f6 Merge f-own-1b (033cfdd8c) into f-own-int: nothing downloads llama.cpp
Conflict: packaging/build_dsv41_hip_linux.sh, header comment only: kept
f-own-1b's optional LLAMA override wording and main's PKGVER=0.1.59.
2026-11-09 22:02:56 +01:00
Niko1221 1130d824aa App: set up a model on an Intel Arc card (Linux, SYCL engine)
The app's install job ran setup.py with no --backend, so on an Arc PC it
stopped with "no NVIDIA GPU found (nvidia-smi did not answer)" while the
Terminal worked. tools/strata_mcp.py knew only cuda and hip.

- strata_mcp: the hardware report lists an Intel Arc when the PC has no
  usable NVIDIA or AMD card and Control's own engine choice is SYCL;
  recommend() and install_plan() pick sycl, pass --backend sycl, force
  pictures off, send no --drafter, and refuse (plain words) when the model's
  files are not on the computer, as Intel cards do not download models;
  the tool schema enum gains sycl.
- setup.py: --backend sycl in CONTROL mode (the app and the Terminal's
  installer mode) prepares the pack and writes the run config the way
  strata launch does (strata_cli/launch/adopt.py). A checkout keeps the
  from-source sycl_setup.
- strata_control/intel_app.py: the shared card rule and the wording.
- Tests: tests/terminal/test_intel_app_install.py (vendor choice, args,
  NVIDIA/AMD requests unchanged, the setup path, the dispatch) and
  apps/host/tests/arcfix-updated-control.test.mjs (the app runs a
  feed-updated Control for model setup).
2026-11-09 13:33:12 +01:00
Niko1221 237ecb176a tools, setup: the preparation tools use strata_gguf / strata_quants; STRATA_GGUF_PY stays an override
iq_pack, embd_bf16_pack, mtp_pack, mtp_rt, nvfp4_local_pack (slim, verify), nvfp4_verify(_gguf), q8_dense_gguf, iq_fixture, the oracles and dev tools
(canonical_xcheck, ref/load.py, metal check_ref, dflash2_ref, dsv41/ref_gguf, tests/split) get their GGUF library from _paths.gguf_lib(): ours, or
llama.cpp's gguf-py when STRATA_GGUF_PY names it. setup.py stops putting STRATA_GGUF_PY into the tools' environment (gguf_py_env(): only the user's own
override). The install gate checks tools/strata_gguf.py instead of third_party/strata-gguf-py. nvfp4_convert and its converter stay on the vendored gguf-py.
2026-11-09 04:09:03 +01:00
Niko1221 463940282d strata-vision: llama, mtmd and ggml vendored at the pin (third_party/strata-llama); no llama.cpp download is left
third_party/strata-llama holds what tools/vision builds - llama (src, include), tools/mtmd, vendor/{hash,miniaudio,nlohmann,sheredom,stb} and the whole ggml
with its backend registry and the CPU (x86, Arm), CUDA, HIP, SYCL and Metal backends - as 916 files (20.5 MB) byte-identical to llama.cpp 3cf03257f, upstream
CMake unedited, MIT licences kept; UPSTREAM.md lists every file with its sha256 and says phase 3 deletes the tree with tools/vision. tools/check_vendored.py
covers it (also against a llama.cpp tree with --upstream). tools/vision/CMakeLists.txt takes it as the default LLAMA_DIR; setup.py (vision_llama,
VISION_SOURCES), the vision/HIP/CUDA/Spark/Mac/Windows scripts, sycl/setup_intel.py and the Dockerfile build from it (STRATA_GGML_DIR / LLAMA / --llama stay as
overrides). setup.py has no llama.cpp zip any more; tools/test_no_llama_download.py fails if a script, Docker file or workflow fetches or requires a tree.
2026-11-08 23:29:17 +01:00
Niko1221 712fec6b42 Version 0.2.13 / engine 0.1.59: Terminal and app 0.2.13, Control and every engine package 0.1.59 (the 0.2.12 bump list, plus the v0.1.59 line in the setup.py version history and docs/data/release.json for v0.2.13) 2026-11-08 23:22:26 +01:00
Niko1221 6f273fc270 setup: no llama.cpp download to prepare a model or build the engine
gguf_py_dir() is the vendored third_party/strata-gguf-py (STRATA_GGUF_PY overrides); the engine builds pass -DSTRATA_GGML_DIR only when
STRATA_GGML_DIR names a checkout (ggml_defs); ENGINE_SOURCES includes third_party/strata-ggml; setup.run() no longer fetches the zip. The Terminal
and Control packages carry third_party/strata-gguf-py (+1.8 MB: gguf-py 0.74 MB, the converter 1.0 MB). get_llama_cpp() is only called for a
strata-vision build until that tree is vendored. The feed-model install gate needs no STRATA_TEST_LLAMA_CPP and fails if setup fetches llama.cpp.
2026-11-08 23:15:53 +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 63de72ce17 Mac: a feed model of another shape than the shipped expert profile gets the neutral profile on the Mac path too (the engine refused the shipped one at load) 2026-11-08 21:09:56 +01:00
Niko1221 ab56b84831 Mac: a model of its own shape installs on a Mac too: setup's Mac path fetches the shape engine (shape_engine_fetch, shared with the other platforms), the Mac rows are registered, a one-file model uses its own PLE table and a model whose entry says drafter none gets no draft layer (the approved line) 2026-11-08 20:59:37 +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 a1b9cc89ac A data folder on an external drive is no longer refused as a system folder (Linux)
/run/media/<user>/<drive> (udisks) sat inside /run, which was refused whole, so the AppImage, the Terminal and the AI-tool installer all said "is a system folder" for a
drive the person plugged in. A path strictly inside /run/media is not a system folder now (strata_control/folders.py, tools/strata_mcp.py, the chat project folder in
apps/host/server/chat-files.mjs); whether the drive is theirs is the existing write test. /run, /run/media itself, /run/user, /run/systemd, /usr, /etc, /var/lib and the
rest are still refused, /media/<user> and /mnt stay allowed when writable.

The refusal from setup's data folder said "Nothing was downloaded or changed." twice (the folder words end with it and setup added its own sentence); the first is dropped
for that caller only.
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 03882d09db feed models: drafter none leaves the Flash-Next MTP draft layer out (setup fetched it for every qwen4exp model) 2026-11-08 15:23:11 +01:00
Niko1221 b40d65ea4c setup: a feed model without a picture reader no longer stops install with KeyError 'mmproj' (found installing a feed qwen4exp model from a test feed) 2026-11-08 15:18:18 +01:00