48 Commits
Author SHA1 Message Date
Niko1221 55b193d489 scan and screens: per-layer embeddings (PLE), not an n-gram table; one consistent line while a file is verified; Queued with its size
The second file of a UD GGUF and every PLE-*.gguf are the per-layer embeddings table: the role names (scan, screens, nine locales) say so and tests keep
"n-gram" out of them. A download that is being checked reads "0.9 GB downloaded · verifying 41%" with the bar on the check, never 99% next to a check at
41%; a download that is still coming never rounds up to 100% before it is whole; a queued one reads "Queued · 87 GB".
2026-12-05 00:16:51 +01:00
Niko1221 69bd91ef80 app: the picker says where the prepared files go from Control's own install plan; French spaces before a colon; the allowed install arguments test follows
"Prepared files go to" asks Control's install plan for the data folder (the answer Start uses) and adds setup's fixed layout (models/qwen4-35b-a3b/prepared/<quant>);
without an answer it says Strata's own folder. files-fr.json uses a no-break space before the colon. scripts/files-shots.mjs takes the screenshots of the two screens.
2026-12-05 00:16:51 +01:00
Niko1221 2e37f811e5 own files: the run config remembers the person's folder and files; the prepared files are deleted with the version, the shards never
An install from the person's own Qwen4 GGUF folder writes own_gguf_dir (and own_gguf_files for files under names of their own) into the run config,
because the model view for the engine now lives in Strata's prepared/<quant> folder and the folder of the --native file no longer says where the shards
are. The host reads them (ownGgufDir, ownGgufFiles) and hands them to setup again on a later load or setting change. strata_remove's plan removes the files
in Strata's prepared/<quant> folder ("prepared by Strata") and keeps the person's shards.
2026-12-05 00:16:51 +01:00
Niko1221 ee9ad09347 pictures (0.2.28, owner): the vision files always download with the model; the Read pictures box only decides use; attaching an image where the engine cannot read pictures yet says so in one line
Owner: "If they tick the box for reading images, the vision should be downloaded. We should download vision always when the model is being downloaded, and they tick it on or off if they wish to include it in the chats."

Control: install_qwen4 (the .strata tiers, the Mac tiers, the UD GGUF builds) fetches the picture file (Qwen4-35B-A3B-Vision.strata / the mmproj) whatever `--vision` says; it is an optional file, so offline or a failed fetch never stops the install. The `--vision` flag, the vision section and the Mac conversion follow the USE choice and the engine (no flag on a tier whose engine reads no pictures yet). The download label, the fit row and the plan count it always (qwen4_fit.strata_install_names, strata_mcp.qwen4_download_gb, setup.qwen4_gguf_bytes); a tier that already has the file on disk subtracts it as before.

Host: a Qwen4 instance carries visionReady (qwen4VisionReadyFor: false for a .strata tier on cuda / hip); sending or attaching a picture to it says "Picture reading for this version comes later." (pictures.ts, index.mjs, q445 in the ten catalogs); the load itself is never refused for pictures (8e6b871d84, runtimeVision) and a request for pictures with the file missing fetches it (the reverted no-fetch commits).

Tests: setup tests now assert the reader is fetched with --vision no and no flag / section is written (test_setup_qwen4: strata, GGUF, flags-coming; test_setup_qwen4_mac); the label test proves label = fetched files for every tier and PC class; tests/pictures-status.test.mjs (the one line for visionReady false, the ordinary rule otherwise, index.mjs and native-control pinned).
2026-12-05 00:02:11 +01:00
Niko1221 33d5ddcc2c launch: a start never downloads a drafter or a draft layer (#7918); one line offers it with the exact command
Owner decision: starting a model NEVER triggers a draft-layer download. strata launch's fetch_missing_drafter (re-ran setup to fetch the 5.2 GB layer) and ensure_drafter (the DFlash2 drafter) now fetch only a drafter the person NAMED in this launch (drafter_fetch_allowed: --drafting mtp | dflash2, --mtp on; Docker's DRAFTING=mtp). Auto, a saved choice and a plain start only use what is on the disk, start at once, and say once, with the exact command: "Faster replies are available: the draft layer (about 5.2 GB) is not downloaded, so the model starts without it. To get it: strata setup --family F --model M --mtp on" (or `strata drafting fetch --family F --model M` for DFlash2). Never when Drafting Off was chosen. Every family (Flash-Next included); the native families that carry their drafter in the file are as before. A named drafter that fails (offline, partial, hash) never stops the launch; setup resumes a partial layer and checks it.

docs/DOCKER.md and the entrypoint: DRAFTING=auto uses a drafter that is already in /data and never downloads at a start; mtp / dflash2 name it and fetch it once.

Tests: tests/terminal/test_no_drafter_download_at_start_7918.py (drafter on the disk: no prompt, no network, no setup; missing + Auto: no fetch, no setup, no connection check, one line with the command, once per launch; a saved choice is not a request; Off: nothing; who may fetch; a named drafter is still fetched and a failed one does not stop the launch; the layer goes under the data folder for own-folder models). tests/snapshot: the first-start safety-net tests now say Auto offers and a named drafter fetches; the golden launch / app snapshots regenerated: 54 cells lose the DFlash2 fetch and its --draft arguments (Auto starts with the MTP where the layer is on the disk) and gain no other change. test_fix2_tui_0216: its drafter-words tests name the drafter (the explicit download they are about).

--- host and page ---

app host: a Load never downloads a drafter or a draft layer (#7918); the Models page offers it

Owner decision: starting a model never triggers a drafter / draft-layer download; the model loads at once and, when drafting would help and the file is not on the disk, the page offers "Download the draft layer (N GB) for faster replies". native-control.mjs: loadEngine's three implicit fetches (the MTP layer through the installer, Auto's drafter, the chosen drafter) run only with downloadDrafter:true; a restart of stopped models and a tuning run never fetch (autoDrafterFor); the instance carries drafterOffer {kind, gb} (and drafterMissing, which also survives a "not now"). No offer for Drafting Off (chosen in the Load, saved, or the Draft layer switch off) or after "Not now" (ui_drafter_offer in the model's run config, until the person asks: choosing MTP / DFlash2 in the Drafting menu, or the button). New operations: 'drafter' (the explicit download: the installer resumes a partial file and checks it, a bad or partial layer never starts drafting, offline says so plainly, the offer stays; the running model is not stopped or restarted: "Draft layer ready: used from the next load. Reload the model to use it now.") and 'drafter-decline'. The own-folder case: the installer gets the model's folder to find its files and the layer goes to Strata's data folder. The Load no longer hints the MTP to the slot chooser when DFlash2 is not fetched (the plain load and strata launch agree again).
NativeModels.tsx: under the Drafting choice a row with the sentence, "Download" and "Not now" for the loaded model's offer; the Drafting menu names the download ("MTP (download N GB)") while the file is missing. Locale q441-q444 in the ten catalogs, scripts/add-drafter-offer-strings.mjs.

Tests: tests/drafter-offer-7918.test.mjs, one per case the owner listed (on the disk; missing + Auto; Drafting Off; declined and a later request; choosing MTP offers again; a download that does not finish; finishing while the model runs; own folder; offline; the three fetch sites pinned) plus the page pins. Existing drafter tests that exercised the old implicit fetch now pass downloadDrafter (the fetch mechanics they test are unchanged) or assert that nothing is fetched (a tuning run, a restart, the first load after a setup).
2026-12-04 23:34:52 +01:00
Niko1221 ef12a9cfc7 qwen4 0.2.27 app: --parallel N, the RAM the system keeps, the .strata builds up to 1M
Wires the three engine features that int-0227 now carries (batch, strp, kvgrow) into Control, the Terminal and the app.

--parallel N (strata-q4-lite, the .strata builds on NVIDIA / AMD):
- The engine takes it (STRATA_BUILD_FLAG_READY["parallel"] True; --parallel is in STRATA_SERVE_FLAGS, --batch is no longer in the ignored list: it is an alias). Menu 1, 2, 4, 8, 16, 32, 64; the default is capped at 16.
- The default is Q4-CORE's measured rule, one table in qwen4_family.py (mirrored in server/qwen4.mjs, pinned by the host test): N0 = clamp(1 + floor((V - W - 0.625) / S(C)), 1, 16), V the card's free GiB after the trunk, W the tier's expert GiB (Compact 8.0, Balanced 18.2, Ultra 23.3), S(C) = 0.105 + max(0.078, 0.0107 * C) GiB a slot at C thousand tokens of context. Balanced 24 GB: 9 at 8K, 4 at 32K; Compact 24 GB: 16; Ultra 24 GB: 1; every 48 GB card: 16.
- serve/qwen4_kind.py applies it when nobody chose (the card total from nvidia-smi, the context from --max-ctx): one request on a card it cannot read and on AMD (not measured); an explicit number of the person's (an explicit 1 included) stays; Loop on is one request. A person asking for more than the default is told once that replies get slower (and that experts move to RAM when they and the slots no longer fit the card).
- The Terminal's fit line, the catalog / MCP row (parallel_default) and the app's Concurrent requests field show the same number.

RAM the system keeps (owner rule): 2 GiB for Full performance, 20 percent of the RAM for Leave room for my work, the person's own reserve over both, passed as --ram-reserve-mib to strata-q4-lite (cuda / hip); the engine's own default without the flag is 2 GiB, so the Terminal needs nothing. The qwen4exp strata (the UD GGUF builds, a Mac tier) has no such flag and gets none. STRATA_BUILD_FLAG_READY["ram_reserve"] is True.

Context: the .strata cap of 512K is lifted: every build goes up to 1M (kvgrow ran Compact and Ultra at 1M 3/3). qwen4_fit.contexts_for / max_context_for / clamp_context stay the one table (CONTEXTS_STRATA now equals CONTEXTS), read by fit, setup, the Terminal menu and written flag, the catalog row, the MCP row and the app's menu.

Tests: serve/test_qwen4_parallel.py (the measured numbers, the default at serve, the notes, the catalog row), tests/terminal/test_q4_ram_reserve.py, tests/terminal/test_qwen4_fit.py and test_qwen4_launch.py (1M for every build), tools/test_setup_qwen4.py, serve/test_qwen4_serve_e2e.py (a wrapper sets the flag and reads no card), the host tests qwen4-family.test.mjs and qwen4-ram-reserve.test.mjs (the Python tables pinned to both mirrors).
(cherry picked from commit d4bb2367f47c98eed6bdccdb8640c9b2908d81ee)
2026-12-04 21:26:02 +01:00
Niko1221 f1b52ba0ec Models page: Qwen4 and Ling show a Conversation context, a Drafting choice and Computer use, nothing else; Loop (2 steps) with an info popover for Qwen4 only
The owner's rule: each model on the Models page has a Conversation context dropdown, a Drafting dropdown and a Computer use choice, and no explanatory paragraph, fit warning or format note under it. Only Qwen4-35B-A3B has one more choice, Loop (2 steps), with an info icon after its label; hovering it shows exactly: "Looped transformer loops over each word twice. Performance will be slower but the quality of response will be higher with much less thinking."

app/host/src/components/NativeModels.tsx:
- Removed under Qwen4: the memory plan, the Unsloth GGUF note, the Q8 PLE note, the drive note, the no-engine / Radeon / old-card / no-card lines, the draft-layer hint (Auto notes), the whole Context memory (K/V) dropdown with its int8 and Mac notes (the build's default, int8, stays the start's own), the Loop hint.
- Removed under Ling: the memory-tier line, the Mac line ("whole model stays in memory", "runs best on a Mac with 128 GB or more"), the Intel / AMD / old-card / no-card lines, the draft-layer hint and status line, the Expert skip row (it stays in the settings).
- The draft layer (MTP) of Qwen4 and Ling is the Drafting dropdown (Auto (recommended), MTP, Off), with the same behaviour as before (off where the engine has none; off while Loop is on); Computer use is shown for both; the "may run slower" line is not shown under them.
- Loop (2 steps): label, info icon (LoopInfo, the version tooltip as popover, hover and keyboard focus), the Off / On select as before.
- The Settings hint of Loop is the same sentence.

Locales: q440 (the popover sentence) in all ten languages; the strings that only the removed paragraphs, rows and the old Loop description used are removed from every locale file (lg01-lg13, lg17-lg21, q401-q412, q414-q416, q420, q422, q427-q432, q434-q436).

Tests: the host tests that pinned the removed paragraphs and rows (qwen4-family, ling32-family, ling32-skip, ui-r3) now pin the new page and the removed strings; tsc is clean, node --test 2606 tests, 2458 pass, 0 fail, 148 skipped.
2026-12-04 21:22:19 +01:00
Niko1221 36020ad7f8 Qwen4: Loop (2 steps) end to end for the Unsloth UD-Q4_K_XL GGUF build (owner-approved post-freeze fix)
The Loop switch, the table (gguf cuda and metal ready, gguf hip coming), setup, launch,
catalog row and the app already carried the GGUF build. This commit fixes and adds:

- --loop-direct-t1 never reaches an engine argv (setup, adopt, launcher, serve, app host):
  the qwen4exp strata engine rejects it (exit 2); it is the Python server's own option.
  The run config now carries loop_direct_t1: true while Loop is on (setup, adopt, launch,
  app Load), serve also derives it from the Loop key for the GGUF build, and an older
  config with the flag in its arguments gets it taken out at the start.
- Loop on turns the draft layer (MTP) off on the GGUF build and on the standalone
  strata-q4-lite (plain --spec 2 where the pack needs it); a Mac .strata tier keeps MTP with
  Loop (measured). The sidecar key stays in the config, so Loop off brings it back. Setup,
  serve and the Models panel (new string q436, ten languages; the MTP select shows Off and
  disabled) say so.
- Tests: serve/test_qwen4_kind.py test_no_engine_argv_ever_has_loop_direct_t1_through_the_real_engine_args_path,
  test_gguf_loop_on_starts_without_the_draft_layer_and_says_so_once; setup GGUF Loop on/off
  and per backend; Mac setup and launch config key; host table states and argv.
- settings register and docs/SETTINGS.md say the real status instead of coming soon.
2026-12-04 12:16:19 +01:00
Niko1221 1935041889 qwen4: the KV table (int8 default on both sources, five formats, Metal int8 only) and Loop on every backend of the .strata tiers
- KV: KV_READY all true for (gguf | strata) x (fp16, int8, fp8, k8v4, q4_0) since the kvfix (#50); the default is int8 for both sources, fp8 NVIDIA first, never chosen automatically; the step-down is int8 -> k8v4 -> q4_0 (qwen4_fit.kv_step_down, gguf_plan, kv_fits); `--kv X` is passed to both engines (the engines' own default is fp16); Metal keeps K/V in int8 only, no --kv written or passed, the choice is not offered and a short note says so (string q434); catalog row fields kv, kv_stepped, kv_note, kv_default; the app panel "Context memory" select lists only what the build and backend take.
- Loop: LOOP_READY is true for (strata, cuda), (strata, hip) and (strata, metal) (HIP runtime evidence: the R9700 only, RDNA2 / RDNA3 / gfx1151 compile-checked); the standalone strata-q4-lite takes --loop-adapter F --loop-passes 2 (no coda, no direct-t1: the engine picks, the server sends loop_passes=1 for thinking-off requests); a .strata tier on a Mac runs the qwen4exp `strata` with --loop-adapter, --loop-passes 2, --loop-coda compact|universal and --loop-direct-t1, and its MTP stays on; the Mac install fetches Qwen4-35B-A3B-Loop.safetensors when Loop is on and writes the qwen4_loop key; the server drops the Loop flags unless Loop is ready for the build and backend and sends the loop_passes GEN key only when the engine's INFO reports a loaded Loop.
- serve: an engine that cannot be asked (the Metal `strata` has no --info) keeps --vision instead of losing the picture reader.
- tables mirrored once in server/qwen4.mjs and src/lib/qwen4.ts; the host test pins them to the Python.
- tests follow (both table states).
2026-12-04 11:20:58 +01:00
Niko1221 bc049a5aea qwen4: KV cache choice, the BF16-route MTP drafter for the GGUF build, MTP Auto on the app side, and the real fit facts
- KV: per-format bytes from Q4-KV (fp16 20480, int8 and fp8 10560, k8v4 8160, q4_0 5760 per token); GGUF default int8, .strata builds fp16; KV_CHOICES, KV_DEFAULT, KV_READY (fp8 not ready), KV_BACKENDS; setup, launcher, catalog and the app panel ("Context memory" select, strings q427 to q430).
- MTP: the GGUF build builds the 923 MiB BF16-route drafter at install (mtp_fetch at the pinned Qwen revision, mtp_pack q8_0, mtp_rt); any failed step is MTP off with one warning; Unsloth's 1.95 GB sidecar is out of the download set; --spec 3 --spec-min-p 0.5 on every card (Q4-SMALL measurements), qwen4_mtp_spec; MTP Auto on for 6 GB and up with an empty per-card fallback table; app Auto help lines (q431, q432).
- fit facts: .strata floors (Compact 13, Balanced 22, Ultra 29 GiB: below it the build shows as short until the engine's memory tiering lands), the GGUF build needs about 64 GB of RAM, informational expert slot counts per card size.
- the model host name stays in setup.py only.
2026-12-04 09:09:19 +01:00
Niko1221 58f142e6dd qwen4: the Compact / Balanced / Ultra start follows CORE-API (--model, --ple-gguf, --max-ctx), CUDA 13 for Blackwell, MTP Auto from 6 GB
- qwen4_family: STRATA_BUILD_FLAGS and STRATA_BUILD_FLAG_READY (mtp, vision and loop stay off for the .strata builds until the engine takes them; serve is on); loop_engine_args uses --loop 2 --loop-file for .strata builds and keeps --loop-adapter for the GGUF build; strata_serve_ready, mtp_ready, vision_ready, model_arg.
- setup, launcher, strata_mcp, serve and the app write no MTP key, no --vision and no Loop flag for .strata builds; the app shows "Draft layer (MTP) - coming with the engine" for them (strings q425 and q426, ten languages).
- Blackwell (arch 100 and up) picks the CUDA 13 engine for Qwen4: ENGINE_PICK cuda12_allowed False, setup.cuda_choice returns 13 even with an old driver (an explicit --cuda 12 still wins with a speed warning), shape_engine.choose drops CUDA 12 packages for a Blackwell card (q4_lite shape only).
- MTP Auto: on for a discrete card of 6 GB or more and for unified pools (MTP_AUTO_MIN_VRAM_GIB, per-card fallback table MTP_AUTO_OFF_CARDS empty), explicit on or off wins; catalog rows carry mtp_default.
2026-12-04 08:52:27 +01:00
Niko1221 7c8efa80e4 qwen4: the real Loop flags (--loop-adapter, --loop-passes 2, --loop-coda universal|compact, --loop-direct-t1), still behind LOOP_ENGINE_READY False
- one table in qwen4_family (ENGINE_FILE_FLAGS loop, ENGINE_LOOP_STEPS_FLAG, coda and direct-t1 flags, loop_coda(build): compact only for the Compact .strata build, universal for Balanced, Ultra and UD-Q4_K_XL); the same four flags mirrored once in app/host/server/qwen4.mjs.
- setup, launcher, serve and the app strip all four when Loop is off or coming, add them once when on; a person's own --loop-* flags are kept.
- help text: about 40 percent fewer words per second while writing, prompt reading about half as fast, a little closer to the original model, no effect while Effort is Off; ten languages.
- flip LOOP_ENGINE_READY in qwen4_family.py, qwen4.mjs and qwen4.ts when the Q4-LOOP engine is merged.
2026-12-04 08:07:18 +01:00
Niko1221 beb8e2f794 qwen4: Loop (2 steps) is visible but "coming" until Q4-LOOP's engine flags land (one switch, LOOP_ENGINE_READY)
- qwen4_family.LOOP_ENGINE_READY False, mirrored once in app/host/server/qwen4.mjs and src/lib/qwen4.ts, pinned together by a host test; flip it to True when the Loop flags are in ENGINE_FILE_FLAGS / ENGINE_LOOP_STEPS_FLAG.
- Terminal: --loop on in setup and strata launch warns once and behaves as off (no qwen4_loop key, no flags, no Loop download); register and help say coming; the fit row reports loop_available false; serve strips an old qwen4_loop key with one log line.
- App: the option is disabled and labelled "Loop (2 steps) - coming soon" in the Models panel and Settings; Download and Load never send it on; strings q423 and q424 in all ten languages.
- launcher notices: the Qwen4 import is before its try block, so the notices are no longer swallowed.
- tests run in both states.
2026-12-04 07:52:05 +01:00
Niko1221 d6d571eb35 qwen4: the app host and the Models page (four builds, Effort picker, MTP, Loop, Vision), ten languages
- server/qwen4.mjs and src/lib/qwen4.ts: family, builds, fit table pinned to qwen4_fit.py, Effort Off / Low / High / X-High (default High, never collapsed), MTP Auto / On / Off, Loop (2 steps) off by default and shown only for Strata-quant Qwen4, Vision shard, UD-Q4_K_XL build.
- Models page panel, composer Effort menu, load / install / settings rules, the needs-a-newer-engine text.
- strings q401 to q422 in all ten languages; host tests qwen4-family (16) and the existing family tests widened for the added clause.
2026-12-04 07:19:08 +01:00
Niko1221 833c90ef1b Ling in the app: Expert skip Off / Medium (--skip-tau 0.05), off by default
The Terminal already has Ling's expert skip (--expert-skip medium = the engine's --skip-tau 0.05, one level above Off). The app now offers the same choice next to the Draft layer (MTP):
- Models page (Ling panel) and the model's settings: Expert skip Off (default) / Medium, with a plain explanation (faster answers, small accuracy cost, off by default) in the ten languages (lg22-lg24).
- The saved form is the Terminal's: the pair `--skip-tau 0.05` in the run config's args and user_args, no other key, so the app and `strata launch` are one setting. A pair written by the Terminal reads as Medium; another value written by hand shows as Custom and is left alone until Off or Medium is picked.
- A Load that carries a changed choice saves it with the model (and starts with it); a Load without a choice never touches the config, so the default engine argv is unchanged. Not offered on a Mac (the Metal engine has no skip kernel), not without an engine.
- Terminal: --expert-skip off / medium also replaces the pair in user_args, or Off would come back from it; settings register note and docs/SETTINGS.md regenerated.

Tests: app/host/tests/ling32-skip.test.mjs (choice/patch round trip, persistence, host and screen wiring, strings), drafting and ling32-family pins updated; terminal/tests/terminal/test_ling32_expert_skip_app.py.
2026-12-04 00:07:20 +01:00
Niko1221 571e98c70d Ling in the app: Draft layer (MTP) Auto / On / Off, and what the engine really does
The engine decides about the sidecar at its start where the host-to-device link has room (L32-CUDA's --mtp-auto, L32-TERM's launcher keys ling32_mtp + ling32_mtp_mode "auto"|"on"). The app:
- Models page and settings: one choice "Auto (on when it pays)", On (forced), Off, default Auto. ling_mtp is a virtual field: the host turns it into the run config words (off = the app's mtp false, on = mtp true + ling32_mtp_mode on, auto = neither) in the settings save and in a Load's values; installedInfo carries lingMtp; the install passes --mtp only for on / off (nothing = auto).
- A line under the choice says what the loaded engine does from its own status (spec, mtp.on, h2d_gbps), in the ten languages, never from the setting alone: "Draft layer: on." / "off. This card's link moves N GB/s, which is too little for a gain." / "off.". lg16 (field hint) replaced, lg17-lg21 added.
- ling32-real-run.py: the MTP check follows the engine's own state (forced on: spec=mtp), prints MTP-STATE.
Tests: ling32-family.test.mjs (choice/patch round trip, panel and settings contracts), drafting.test.mjs pins.
2026-12-02 21:09:51 +01:00
Niko1221 63fc847108 Real-run script for Windows, macOS and AMD: control folder on Windows, own model folder adopted in place, backend and picture options
app/host/scripts/ling32-real-run.py now also runs on Windows (a Control folder with a venv launcher, node.exe) and takes LING32_OWN_DIR (the model files are adopted where they are, read only), LING32_SIDECAR, LING32_MTP, LING32_SHOW, LING32_BACKEND (cuda | hip | metal: what the catalog row must say) and LING32_NO_VISION (the Mac engine reads no pictures yet).
2026-12-02 20:51:38 +01:00
Niko1221 69b5594b4f Ling in the app: a longer stop for the engine, decode-speed bench scripts (host against plain serve)
- server/ling32.mjs LING32_DRAIN_S = 90 and native-control.mjs: a start or restart of a Ling instance passes drainSeconds 90 (the runtime's --shutdown-timeout; the other models keep 15). Found by the real-model run on an RTX 4090: stopping the engine gives back about 77 GB of pinned memory and took 23 s to 31 s; the reload after a settings change (Draft layer off) failed with "server_stop_deadline_expired" at 23 s. Same run with the change: the stop took 30.8 s and the reload finished.
- scripts/ling32-bench-common.py, ling32-direct-bench.py, LING32_BENCH=1 in ling32-real-run.py: five greedy requests of 256 tokens with the engine's own decode_tok_s, the PCIe link read under load, once through the host's instance and once through serve started from the saved run config (what `strata launch` does), MTP on and off.
  RTX 4090, PCIe 4.0 x16, engine 0.1.72 cuda13, tier B: host instance 53.6 to 64.3 engine decode tok/s (runs 2 to 5), plain serve 54.4 to 64.3, plain serve with the MTP off 53.6 to 63.9: the app starts the engine as the launcher does; MTP gains nothing on this link (acceptance 0, 1.0 tokens per verify). The 14.7 tok/s of the earlier run was a PCIe 3.0 box.
2026-12-02 20:42:24 +01:00
Niko1221 518bd2828f Ling install in the app: tools folder on the path for the tokenizer step, Control mode may run strata-ling32 --export-tokenizer
Found by the real-model run (packaged host, real engine, rented RTX 3090): after the download the install died at step 6.
- setup.py ling32_tokenizer_dir: `import ling32_tokenizer` had no tools/ folder on sys.path (the packaged Control has none); the path is added first.
- setup.py run(): Control mode refused `strata-ling32 --export-tokenizer` ("only runs its bundled preparation tools"), the fallback the bundled Python (no zstd) needs; strata-ling32 joins strata-hy4 and strata-inkling in the allow-list.
Tests in tests/terminal/test_ling32_gui.py. The second pass of the run, with these two fixes: 21 of 21 steps (install with resume, Load, chat, picture, MTP stats, MTP off, unload).
2026-12-02 20:04:55 +01:00
Niko1221 cc7c499bb2 Real-model run fixes: the Ling row keeps its notes and mtp_default, a HEAD-refusing pre-signed link downloads with a ranged GET
Found by the packaged host with the real engine on a rented RTX 3090:
- tools/strata_mcp.py: a comment I had put on the return line of ling32_platform swallowed notes / mtp_default / mac (the row had only backend and engine_exists). Fixed; test_ling32_gui.py covers the keys.
- setup.py download(): a pre-signed storage link (the private Ling source) answers HEAD with 403, so the whole download stopped with "cannot reach". 403, 405 and 501 on HEAD now go on to the ranged GET that gives the size (range_total); a real refusal still ends at the GET. Test: PresignedSource in tests/terminal/test_ling32_gui.py.
- app/host/scripts/ling32-real-run.py: models folder path of the install check.
2026-12-02 19:42:10 +01:00
Niko1221 32cd07ce96 Ling-3.2-Air snapshot goldens (the app's Load on all eight machine classes), the real-model host run script, Intel switch
tests/snapshot/test_ling32_app_snapshot.py: for every machine class the host's own Load of an installed Ling model, plain and with the Draft layer (MTP) switched off in the settings, recorded in golden_ling32/<machine>.json (own files: the Qwen goldens did not move). The switch off drops ling32_mtp from the start; the context window is 1860 s for the start (30 minutes plus the server's margin).
app/host/scripts/ling32-real-run.py: the packaged host against the real engine and model (install with the download, cancelled and resumed, Load, chat, picture, MTP stats, MTP off, unload).
strata_mcp: engine_exists also follows ling32_family.SYCL_ENGINE_SHIPPED when that flag exists, so Intel lights up with the engine.
2026-12-02 19:21:43 +01:00
Niko1221 f3f8e102b2 Ling-3.2-Air in the app: the installed model's context is read from --ctx, a packaged-host run against the mock engine, source-pinned tests follow the predicate
Found by the host run: Control read the context of an installed Ling model from --max-context (Ling's engine spells it --ctx), so the Models page showed 0 and opened at the wrong size. models._summary and the strata_models row now read --ctx for arch ling32.
app/host/scripts/ling32-fake-run.py drives the packaged host (Control, pinned sandbox) against tools/ling32_mock_engine.py: catalog row, installed, Load, chat, picture, stats, MTP off through the settings, unload (24 of 24 steps on Linux).
Tests: the source-pinned host tests (drafting, hy4-family, ui-r3, inkling-family, inkling-shape-engine-ux, load-pictures) follow isNativeStrata / the Ling lines; the Ling strings of the German catalogs use Sie and the French ones a no-break space before ;.
2026-12-02 19:05:10 +01:00
Niko1221 8d252c634b Ling-3.2-Air in the app host: the native-strata predicate, Load/install/settings/thinking rules, Models-page panel, 10 languages
One shared predicate (server/native-strata.mjs: isNativeStrata for hy4 | inkling | ling32, plus the vision-shard helpers) is used where the code asks "is this a native strata program"; family-specific code (server/ling32.mjs) only where Ling differs: the MTP sidecar switch (ling32_mtp), thinking off by default, a 30 minute start window, no K/V choice, no Flash-Next memory options, no Qwen draft pack, one slot.
Control: the Models row carries backend, engine_exists, platform note codes (Mac memory, AMD level, old NVIDIA, no card, small-card MTP) and mtp_default; the install tool takes tier and passes --mtp to Ling; Load fetches a missing Ling picture reader (pictures.py).
Tests: tests/ling32-family.test.mjs, tests/terminal/test_ling32_gui.py; the source-pinned host tests follow the predicate.
2026-12-02 18:44:32 +01:00
Niko1221 4f9f935d65 app: Hy4-Flash GGUF builds on the Models page ("GGUF · NVIDIA"), set up and loaded by the host
Host (app/host/server):
- hy4.mjs: isHy4 now means both forms of Hy4-Flash (arch hy4flash, the `.strata` builds on
  strata-hy4, and arch hy4-flash, AngelSlim's GGUF builds on the Strata engine), so none of
  the Flash-Next options (reserve, pool workers, batch, draft pack, cache spread, resource
  profiles, safer-start retries, request slots) reaches a GGUF start. New isHy4Gguf,
  isHy4GgufModel, withoutHy4GgufDrafting (--mtp with --draft-tokens, or Dfly all go when
  drafting is off); hy4VisionShard / withoutHy4Vision know --vision-shard.
- native-control.mjs: a GGUF build's install runs the engine step first (the CUDA 13 Strata
  engine carries the Hy4 GGUF engine), no Qwen draft pack is planned or fetched for it, only
  Off of the drafting choice reaches setup (as --mtp off), a context the person did not pick
  is left to the engine's own fit (128K or the largest step the card holds), a missing picture
  reader is not fetched as a .strata file. native-settings.mjs: the Qwen environment switches
  do not apply to arch hy4-flash.

Models page: the Hy4-Flash group lists the GGUF builds as "GGUF · NVIDIA · Full model" /
"Less RAM" (only where the Terminal's catalog offers them: NVIDIA); Context memory offers
INT8 or FP16 for them; a PC with less RAM than the build wants is told in words and the
less-RAM build is named. Ten languages (scripts/add-hy4-gguf-strings.mjs, gtui-*.json
hg01-hg06).

Tests: tests/hy4-gguf.test.mjs (9).
2026-12-02 12:41:23 +01:00
Niko1221 918c906292 [GUI] add sidebar-stage gutter and upgrade page headers to frosted Liquid Glass with bar shadow 2026-11-30 19:54:43 +01:00
Niko1221 29a71cda48 [GUI] elevate interactive update card, make code copy icon-only, and unify Settings in More 2026-11-30 16:36:27 +01:00
Niko1221 70eeac8a2a [GUI] polish artifact cards, fix 2D code scroll, inline stream dot, compact errors, and Bezier browser cursor 2026-11-30 08:01:17 +01:00
Niko1221 274e11105b [GUI] refine neutral update pill, move Skills/Serving to More, and polish browser cursor 2026-11-30 07:20:37 +01:00
Niko1221 ec2c65eca6 [GUI] add one-click seamless update resume and live sidebar visual browser 2026-11-30 01:02:00 +01:00
Niko1221 b8b05f6c0f [GUI] overhaul preview sidebar, work log timeline, and deliverable cards 2026-11-29 20:51:17 +01:00
Niko1221 6cd84860b9 [GUI] add true Liquid Glass shell, layered palette, glass reasoning and Studio code blocks 2026-11-29 19:48:12 +01:00
Niko1221 867bfb502e [GUI] overhaul Liquid Glass material language, chat streaming animations, and error hygiene 2026-11-29 18:35:33 +01:00
Niko1221 f930e34d31 [GUI] update contrast and luminance scripts for theme switch inside More menu 2026-11-29 16:35:34 +01:00
Niko1221 63efcd48bf app: use local model files (.strata or .gguf), name them, pick them next to the official builds
The local files screens take .strata and .gguf, and the unsupported message names the four families the engines run. A custom build has an editable
display name, is listed under its family in the version and chat pickers with a Custom badge and its file size, and can be removed from Strata
without touching the files. The host accepts .strata files and the Inkling-2-Mini and HY-4 Flash architectures.
2026-11-27 16:05:03 +01:00
Niko1221 0a8b39376c [GUI] resolve subagent work view (#6516), model server port (#6475), prompt-cache-spread (#6469), and PRs #6390 #6391 #6394 2026-11-22 14:15:07 +01:00
Niko1221 3142b66b96 Paths in comments, usage lines and READMEs: apps/host and apps/desktop are app/host and app/desktop since the layout move
The move of apps/ to app/ in 0.2.16 left the old names in comments, docstrings, usage lines of scripts ("python apps/desktop/scripts/stage-control.py ...", "cd apps/host") and in a few READMEs. A search of every code path (string literals, join() arguments, imports, workflows, build files) found none still pointing at apps/: the only code use of "apps" left are the Harness's own apps/cli folder and tools/layout (the move scripts, kept as they were). So this changes text only: 131 replacements in 88 files. history/apps/..., @tauri-apps/... and apps/cli are left alone. terminal/strata_control/app_policy.py writes a header line that is also in app/host/server/policy-generated.mjs; both changed together (tests/terminal/test_app_policy.py passes).
2026-11-20 07:11:56 +01:00
Niko1221 05c98301b7 Chat: a picture an earlier message lost from browser storage no longer stops every later message; the Models page fits a 360 px window (GUI-TUI QA)
Seen in the QA pass: after a chat with a picture, the same host opened in another browser profile (or after the browser data was cleared)
answered every new message of that chat with "red-square.png is no longer in browser storage. Attach it again. Try sending the message again.",
and an earlier message cannot get its picture back, so the chat was stuck.

- lib/history-pictures.ts: readHistoryPictures reads what it can; a picture it cannot read is left out of the history, named to the model
  in the earlier message's text, and the page shows a toast (gtui03, gtui04 in 10 languages).
- app.css: at 360 px the Version row and the Computer use switch of the Models page wrap instead of running past the card.
- Tests: guitui-0217-pictures.test.mjs.
2026-11-19 14:14:07 +01:00
Niko1221 af84e7e7ff Desktop: the shell takes only the App Host's own answer for its host; a model started from the Terminal on the port is named (#6278)
`strata launch` serves on 8080 and answers /api/health with 200, like the App Host. The shell's health wait and the Linux session check
(live_session) took any 200 as "Strata is running", so a stale app session (old process id reused) or a port the person had chosen in
Settings (8080) showed the Terminal model server's own web page in the app window, which asks for that server's API key.

- identity.rs: classify_health tells the App Host ("uptimeSec") from a Strata model server ("service": "strata").
- wait_for_health and live_session accept only the App Host.
- When the wanted port is busy and a Terminal model server holds it, the notice is busy:<wanted>:<used>:terminal and the page says so
  in plain words (new gtui locale family, 10 languages); the old busy-port text stays for any other holder.
- Tests: identity.rs unit tests, a main.rs test with a stub server on a loopback port, guitui-0217.test.mjs.
2026-11-19 14:14:07 +01:00
Niko1221 20bd33abf0 Expert settings and the Terminal: the route tail skip is Off by default, On is 7 (0.2.17)
Owner decision 2026-11-19: the tail skip ("Skip rarely used parts of the model", STRATA_ROUTE_TAIL_SKIP) is off by default; users reported lower quality.

- strata_control/speed_switches.py: route_tail_skip has default "off"; its entry is STRATA_ROUTE_TAIL_SKIP=7 (On); the choices are 7 (On) and the ranks
  1-6, 8, 9; "0" is no longer a choice (a 0 in a config, setup's or the person's, reads as Off). The Terminal's Default cell says "off".
  engine_env_defaults() holds the start default (unset -> 0), used by the next commit.
- app: the dropdown's default option is the word of the switch's default state ("Off (default)"; it was "Automatic (recommended)"), On is the choice 7.
  policy-generated.mjs is regenerated with python -m strata_control.app_policy; the hint's last sentence is "Off by default." (it was "On by default where it helps.");
  the ten languages of both strings are in scripts/make-guic-locales.py (same two entries, same numbering).
- tests: test_tail_skip_choice.py, test_speed_switches.py, tail-skip-choice.test.mjs (default label, 7 writes the entry, Off removes it).
2026-11-19 09:02:31 +01:00
Niko1221 f2919b3585 Connection banner: after two failed Retries it says the background part has stopped and what helps (packaged-app walkthrough A63)
With the host process gone, Retry only asks the same address again, so it does nothing visible; the Windows and macOS app is one process with no host watcher (a 0.2.17 item, as in v0.2.15).
The banner now counts the Retries that finish with the connection still down (lib/connection-retry.ts, cleared when the connection is live) and, from the second one,
shows "Strata's background part has stopped. Close Strata and open it again." on its own row. Ten languages. TEXT-PENDING: the owner is asked about the line.

Test: tests/connection-retry.test.mjs.
2026-11-17 21:01:04 +01:00
Niko1221 6fc8add9b9 Tasks: a line says why Run now is disabled when no model is loaded on this computer (packaged-app walkthrough A70)
With only an API model picked, "Run now" stays disabled on the Tasks list and said nothing. That is right: a task run on the host uses the model loaded on this computer
(server/index.mjs runTurn without a remote model; the agent-task runner takes an API model only from the developer variable STRATA_TASK_REMOTE_MODEL). A plain line now reads
"Tasks run on a model loaded on this computer. Load one in Models." when there are tasks, no model runs here and no editor is open. Ten languages. TEXT-PENDING: the owner
is asked about the line. Running a task on an API model (a model per task, and whether unattended tasks may use an API provider) is a 0.2.17 decision.

Test: tests/tasks-model-note.test.mjs.
2026-11-17 21:01:02 +01:00
Niko1221 b056792b57 First run: an unreadable download list has its own words and one next step; the offline and error cards can go on without an engine (packaged-app walkthrough A10, fix 2)
Any first-run error that is not "no internet" (an unreadable feed) showed the "can't pick an engine from its update list ... press Update Strata in Settings" card. It now has a card
of its own: "Strata couldn't read its download list, so it can't pick an engine yet. Press Try again, or choose another way below." (raw reason behind Details), with Try again,
Choose a downloaded file and Continue without an engine. The offline card gets Continue without an engine too (until now only the generic card had it, so an offline person
had no way on except connecting to another computer). The card for "the feed was read and nothing fits" keeps its wording. Ten languages through make-guic-locales.py.
TEXT-PENDING: the owner is asked about the one new English line.

Tests: tests/engine-first-run-card.test.mjs; tests/connect-only.test.mjs counts the new branch.
2026-11-17 20:55:33 +01:00
Niko1221 f994d618c3 Languages: the engine settings texts and the Monitor's "Last:" line are translated (GUI-VIS-1117 finding 10)
Draft layer (MTP) and MTP per request (label and hint), the groups Recovery and GPU & memory, the drafting hint (its drafter size is a {0} slot, so any size
matches, whether the host or Control writes it) and the Monitor lines "Last: {0} tokens at {1} tok/s" / "Last: {0} tokens" had no catalog entry and showed in
English in every other language. Nine strings, ten languages (make-guic-locales.py); English unchanged, no new English text. Translations are lane drafts for review.

Test: tests/engine-settings-locale.test.mjs (every such text in all nine languages, the size carried through, the Last line with its numbers).
2026-11-17 18:01:15 +01:00
Niko1221 b60358f271 Chat: with no model loaded, a line under the box says why Send is grey and what to do (GUI-VIS-1117 finding 6)
Typed text (or a picture) with no model loaded left Send greyed with no sentence; the placeholder only shows in an empty box. A plain line now reads
"No model is loaded. Load one in Models to send this message." (role status, same place and style as the busy hint). It is not shown while an answer runs,
for the bare slash, or for /time-skip (which works without a model). Ten languages through make-guic-locales.py; the English is the coordinator's draft
(TEXT-PENDING: owner's yes).

Test: tests/composer-no-model-hint.test.mjs.
2026-11-17 17:59:10 +01:00
Niko1221 a26b822caf Language switch: a live switch redraws the chat messages, and the tool-summary lines and the code label are said in the chosen language (GUI-VIS-1117 finding 2)
The chat's Message and the Markdown preview slices are memo() components that change no prop on a language switch, so they kept the words of the
language before until a reload (German with Japanese code labels and "thought for", Hebrew with Korean). They now read the language from the store.

The host writes an activity group's line in English from its counts ("Ran a command, edited a file"), and the saved chat keeps it, so that line and the
"code" label were English in every language. lib/group-line.ts reads the line back into its parts and says each in the person's language (ten languages,
make-guic-locales.py; Spanish, French, Portuguese and Russian join with a small letter after the first part, Japanese and Chinese with their own comma).
An unknown sentence stays as written. English is unchanged. New texts are drafts until the coordinator confirms them.

Test: tests/language-switch-live.test.mjs (memo components read the language; the line in all ten languages; no cache across switches).
2026-11-17 17:52:18 +01:00
Niko1221 252fc0c09d First run: the Prepare page says what is already on this computer, the file check has its own title, the tuning card has no gap, 30d / 7d are translated (GUI-VIS-1117)
Found by the visual walkthrough on 18526b879; the same in 0.2.15.

1) With the model's files already in the folder the Prepare page said "Downloading the model... 111.3 GB to download" and offered "Download model" while the plan
   said the files were here (9 GB needed) and the next screen said nothing is downloaded. Control's plan (strata_mcp.install_plan) now also carries files_complete (every file of
   the install whole at the size setup pins: no .part, the pinned size, the picture reader included; strata_mcp.files_here) and download_left_gb. The page uses them:
   files complete = title "Preparing the model...", the counter says "Already on this computer" with a check mark and no GB, the footer says "Strata checks the files first." and the
   button "Continue"; some files there = "Part of the model is already here" with "GB left to download" when Control gives the figure; nothing there = as before. Size alone
   is the cheap check: setup still checks the files by their hashes (the "checking files" step), so "Continue" is not a promise that they are good.
2) In the file check the bar's figures ("16% . 8.4 / 49.4 GB . About 5 min left . Stop") sat under the last part row (Engine, Done) and read as that row's. The bar and its figures now
   come first and the Model files / Picture reader / Engine rows below them; while the job is checking the files the title says "Checking the model files..." instead of "Downloading".
3) "A little tuning": the grid row under the artwork took the spare height of the taller tour card, leaving a gap: grid-template-rows auto 1fr.
4) "30d" and "7d" of the Usage periods had no catalog entry, so every language but English showed them as they are: translated in all ten (ja 30日 / 7日, he 30 ימים / 7 ימים, ...).

New English (approved by the coordinator): Preparing the model..., Checking the model files..., Already on this computer, Part of the model is already here, Strata checks the files
first. (the other words reuse existing strings); ten languages through make-guic-locales.py.

Tests: tests/first-run-prepare.test.mjs (7) and terminal tests/desktop/test_control_install.py files_here (sizes, .part, missing picture reader, unpinned file, GB left); Linux host suite 1953 passed / 0
failed, py-tests of test_control_install 25 passed on p1004; Windows host files 76 of 76. Live (throw-away host, headless Chrome at 1440 x 900, par/guie1117/live-firstrun3-head) with fake plans:
complete, partly, none, the check running (figures above the rows, title Checking...) and the tuning card (gap 0 px).
2026-11-17 17:46:37 +01:00
Niko1221 98ad62b613 Merge f-0216-layout (7d77f51ca) into f-0216-int (61c13b33b): the 0.2.16 layout move (the top level becomes app/, engine/, terminal/, docs/, tools/ and .github/) and the serve/server.py split into serve/server_parts/
Rename detection carried the release-check fixes 1 to 3 (routerace, commitwarn, killtimeout) onto the moved paths: app/host/server/agent/agent-bridge.mjs, gateway-client.mjs, harness-runtime.mjs, control-runtime.mjs, app/host/server/index.mjs and terminal/serve/server.py merged by content; the six files those fixes ADDED (app/host/src/lib/commit-warning.ts, app/host/tests/agent-route-race.test.mjs, commit-warning.test.mjs, control-call-log.test.mjs, terminal/serve/commit_limit.py and test_commit_limit.py) were the six "file location" conflicts and are kept at the new paths. Path fix-ups of the added files follow in the next commit.
2026-11-17 14:56:19 +01:00
Niko1221 4058aa782b Layout move for 0.2.16: the top level becomes app/, engine/, terminal/, docs/, tools/ and .github/
Made by tools/layout/move_0216.py (the commit before this one) on db8e0be9c, the final code head of 0.2.16:
- 75 git mv (renames, so `git log --follow` and blame keep working; packaging/acceptance_matrix.md shows as delete + add because its links
  changed too) and 3 removals: SETUP.bat, UPDATE.bat and update.sh (setup.py --update pulls the code now);
- 1,425 path edits in 307 files: root-relative paths in CI, Docker, .gitignore and the release scripts; Markdown links; Python and
  Node joins from a root that moved with its folder; explicit edits for code that computes a root or names a moved path; tables of
  repository paths inside tests.

engine/ holds what CMake builds (src, include, cmake, metal, sycl, spark, third_party, the C++ tests and benches). app/ is the desktop
app and its host (was apps/). terminal/ is the Terminal in the layout of the installed one (strata.py, setup.py, strata_cli,
strata_control, serve, bin, data, ref, crates, the Python tools and tests). docs/ has the documentation, docs/lang/ the translated
READMEs, docs/history and docs/bench-results. tools/ has the repository's own checks, packaging, docker, research and nix.
tests/core/test_tqp_ref.py is a pytest file and stays with the Python tests (terminal/tests/core/).
AGENTS.md, README.md, LICENSE, setup.sh and START-HERE.bat stay at the root.

No behaviour change: the same command lines, the same sources. For this head a replay of the script gave the same numbers and the path
scan (tools/layout/checks/path_scan.py) reports no hit; the suites and the builds run on this commit next.
2026-11-17 13:19:21 +01:00