Commit Graph
1278 Commits
Author SHA1 Message Date
Niko1221 34ae0dcc03 docs: the Windows install line carries a time limit (lane 15)
irm -TimeoutSec 120 https://github.com/Niko1221/Strata/releases/latest/download/install.ps1 | iex
In Windows PowerShell 5.1 the limit bounds the wait for the answer; in PowerShell 7 it is a total cap, which is fine for a script of a few KB.
Changed in README.md and its seven translations, AGENTS.md, SECURITY.md, docs/AI_SETUP.md, INSTALL.md, TERMINAL_LAUNCH.md and the comment at
the top of packaging/install.ps1. Owner approved the line. tests/terminal/test_net_install_sh.py class DocumentedLines checks both
documented lines and that no copy of an old one is left outside the old release notes.
2026-11-10 19:44:31 +01:00
Niko1221 84069c4fd7 docs: the Linux and Mac install line carries a connect and a total limit (lane 15, W12)
curl -fsSL --connect-timeout 15 --max-time 120 https://github.com/Niko1221/Strata/releases/latest/download/install.sh -o install.sh && sh install.sh
(the script is a few KB, so a total cap is fine here); SECURITY.md's `curl -fsSLO` line gets the same flags. Changed in README.md and its
seven translations, AGENTS.md, SECURITY.md, docs/AI_SETUP.md, DGX_SPARK_LINUX.md, INSTALL.md, TERMINAL_LAUNCH.md, docker/compose/MAC.md and
the comment at the top of packaging/install.sh. Owner approved the line.
2026-11-10 19:44:31 +01:00
Niko1221 3a0916c5e7 docs/IMAGES.md: the background request field, the answer's background and strata.flatten_s, and the picture on white (the API's PNG is no longer byte for byte sd-cli's unless background is transparent) 2026-11-10 12:21:20 +01:00
Niko1221 b5bff964a0 release manifest: a Control-only hotfix (terminal_version 0.2.13.1, control_version 0.1.59.1, engines 0.1.59) passes the check; UPDATES.md example lines follow 2026-11-09 15:42:37 +01:00
Niko1221 37d5c9e845 docs: regenerate CAPABILITIES.md for release v0.2.13 (the version bump updated docs/data/release.json but not the generated page; the Docs workflow's capability-table check failed on it) 2026-11-09 11:14:34 +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 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 9947e7d6f5 docs/DETAILS.md: the #4051 section no longer says the load never refuses; says when the experts load anyway (#5327) 2026-11-08 19:02:59 +01:00
Niko1221 321794636c READMEs: DeepSeek on Mac reads pictures too (dropped 'text only'); the 7 translations now name Strix Halo and the Mac like the English page; MAC.md and MODELS.md say the same in plain words 2026-11-08 08:34:44 +01:00
Niko1221 ff6cd56cb3 root: chat.py and highlight.py move to tools/ (docs updated); the user entry points (setup, START-HERE, UPDATE, strata.py, BENCH.bat and bench.sh, which docs and setup name) stay 2026-11-07 23:37:51 +01:00
Niko1221 b3f696ecad link check: tools/check_links.py for the current pages (a docs step in tools/check, a docs.yml workflow, a test), a baseline report for the archived pages, and the one broken anchor it found 2026-11-07 23:37:51 +01:00
Niko1221 8c743a697d history/: the finished UI audit-fix campaign, the dated app design documents, the Mac-first rebuild (docs/work) and its acceptance-matrix generator, each moved with a pointer left at the old path; open requirements copied to apps/host/docs/BACKLOG.md; host module map and contracts kept in apps/host/docs/README.md 2026-11-07 23:37:50 +01:00
Niko1221 de9c0448b2 docs: public speed and quality claims that cited private lab files now say they are internal measurements whose run logs are not published 2026-11-07 23:37:50 +01:00
Niko1221 f19907ba77 capability table: one data file and generator for what each model family runs on per hardware, read against the 0.2.12 packages; AI_SETUP, AI_REFERENCE and MEDIA_KIT take their summaries from it (DeepSeek runs on a Mac) 2026-11-07 23:37:50 +01:00
Niko1221 e40597a066 release manifest: docs/data/release.json, a generator and a check for version lines and installer names (docs said 0.2.5 and 0.2.9; the release is 0.2.12 / 0.1.58) 2026-11-07 23:37:50 +01:00
Niko1221 fd5b3c4559 docs: Intel Arc source build needs oneAPI 2026.1 (2025.3 does not build the SYCL engine) 2026-11-07 23:37:50 +01:00
Niko1221 b0fc432ed9 Merge commit 'b8d604d28' into f-clean-1a 2026-11-07 17:25:04 +01:00
Niko1221 41b87a4bd2 Retire STRATA_METAL_ROUTE, STRATA_METAL_PARTIAL, STRATA_METAL_WPF_MIB: Metal decode variants (cleanup 4.5 batch A)
Removes the window.cpp branches of the fused router, the partial GDN commit and the
weight-prefetch dispatch, and the wpf kernel (gr.metal). The router_route kernel stays:
metal/tests/token_chain.cpp (its default) and metal/tests/fuse_parity.cpp still use it.
docs/MAC.md loses the row that described ROUTE and PARTIAL. The register marks the
three retired in 0.2.13.
2026-11-07 16:28:46 +01:00
Niko1221 d8db7ced36 The four owner-approved strings (11-07), word for word
1. strata launch --help: "dflash2 (downloads its drafter once, 0.3 to 1.2 GB depending on the model; the size is shown before the download)"; the docs row: "...and downloads its drafter once (0.34 GB for the models that have a tuned drafter, 0.52 GB on Intel Arc, else 1.2 GB)".
2. The Arc launch line ends "No model files were downloaded." (was "Nothing was downloaded.").
3. After "Drafting: off (no drafter is downloaded yet)", only when a recent miss mark exists and the choice is DFlash2 or Auto on a tuned set: "Run strata drafting fetch to get the DFlash2 drafter now."
   (drafting.fetch_hint, printed by the server's start; the miss mark and its 12 h window move to drafting.py, drafting_fetch keeps its names).
4. A bare strata drafting fetch with several DFlash2-capable models set up: "Several models are set up here. Say which one: strata drafting fetch --model <name>, or --config <file>."
   (exit 2, nothing downloaded; before, it fetched the stock drafter).
2026-11-07 13:30:48 +01:00
Niko1221 6ea300dde5 Settings register: every STRATA_* setting the engine reads, with a scanner, a test and a draft settings page
tools/settings_register.py scans src, include, metal/src and sycl/src for the 1,009 STRATA_* names read through getenv and the env helpers
and writes data/settings-register.json: backends, read sites, parse kind, code default where it can be read off the call, the engine's
own arch default tables, what the Terminal, the app and the server set, doc mentions, first and last commit and the first release. The
status, owner, note, retire_after and retired_in fields are hand-kept and survive regeneration.

tools/test_settings_register.py fails when the engine reads a name that is not in the register, when the register lists a name no code
reads (unless it is retired with a version), and when an entry has no valid status or a retire-candidate without a file:line citation.

docs/SETTINGS.md is generated from the register (opt-in and rollback entries only) and is a draft: new visible wording, for review.
No product code is changed.
2026-11-07 13:09:12 +01:00
Niko1221 75acfca321 Config undeclared_tool_calls (env STRATA_UNDECLARED_TOOL_CALLS): "call" returns a well-formed call of a tool the request did not declare as a tool call; the default "text" is as before (#4622) 2026-11-06 19:36:04 +01:00
sergqwer 24c6c2f682 Admit the PCIe share's fetched misses to the GPU cache (opt-in STRATA_ADAPT_FETCH=1|2)
Decode reads missed expert blobs from host RAM three ways; the PCIe share's
blobs cross into VRAM anyway and were dropped after the window. With the
switch set, the share takes each layer's most-routed misses and a fetched
expert routed enough more than the layer's least-routed resident expert that
the window does not route is copied straight into that expert's slot
(fetch_blobs gets an optional dst2 target per blob). =2 leaves the tier's own
swaps out of a layer where an admission ran. STRATA_ADAPT_FETCH_VERIFY=1 reads
every admitted slot back. Off, with a log line saying why, where it cannot run.
Unset changes nothing.

Ported from PR 2964 (sergqwer) onto f-0216-core; the strata generate verify
loop was merged by hand (main's speculative-q lines kept) and the DETAILS.md
note became a row of the opt-in switch table.

l620 (RTX PRO 5000, IQ3_S, 3,896-slot cache, --pcie-frac 0.25): decode =2 +10.2%,
=1 +5.0% (4 rounds); token forcing over 14,167 tokens: mismatch 2.73% vs 2.53% /
2.53% for two unset arms (+0.19 pt, 90% CI -0.02..+0.42), PASS.

(cherry picked from commit b2bfaef906acee4f86bdf9f052aee6a4d295fb4e)
2026-11-06 15:47:43 +01:00
bitaccesscomau 386f9959f1 Exact two-pass QSA prompt selection (opt-in STRATA_SELECT_TWO_PASS=1)
Prompt-path block scores in single-pass TF32 with a per-block error bound,
3xTF32 rescoring only near each query's top-k cut-off, so qsa_block_topk
returns the same cells in the same order, ties included. Off unless the
variable is set; says once where it cannot run (HIP, Metal, SYCL, layer-major
path). Adds qsa_two_pass_test, qsa_two_pass_status_test and the GPU parity
test qsa_two_pass_parity.

Ported from PR 4119 (bitaccesscomau); the log line of the per-prompt counters
is shortened without dropping a field.

l620 (sm_120, IQ3_S), greedy ids identical off vs on in every pair:
prompt 128K +1.65% (n=12), 256K +4.10% (n=8), 32K -0.14% (noise).

(cherry picked from commit bbf7c55f1351d913233250fe7869642f7c2b98a1)
2026-11-06 15:47:43 +01:00
Niko1221 78c5a834e3 Merge f-0216-dfship into f-0216-all 2026-11-06 09:36:34 +01:00
Niko1221 3e8d3b2940 Mac: DFlash2 is the default drafter for UD-Q4_K_XL and UD-IQ4_XS-v31, with Strata's tuned drafter at --draft-conf 0.7
SET_DEFAULTS is the one per-(backend, set) table (Metal only; IQ3_S stays on the MTP). Setup, strata launch and strata drafting fetch fetch the tuned pack through the signed feed
(pinned size and SHA-256, resumable, silent offline, the standard drafter and then the MTP as fallbacks). Apache-2.0 licence and the modified-by-Strata notice ship in
data/dflash2-tuned and are copied beside the file. The Metal 'not tested' line is replaced for these sets.
2026-11-06 07:52:31 +01:00
Niko1221 d735d66a4d docs: STRATA_IQ4_W4A8 on sm_120 and its exit counters; STRATA_FILE_TIER_IDLE and the idle policy of the file tier 2026-11-06 01:49:09 +01:00
Niko1221 ad142b468c launch: one precedence for engine options; an explicit --set draft-conf and calibrated values survive (#5178, #5132, #4985)
Explicit launch values, then persisted overrides (user_args and hand edits to the launch config), then calibrated values (recorded by
engine calibrate --apply-result with the model and context they were measured for), then Auto. derive_config builds the argv once through
strata_control/arg_layers.py; explicit values go to user_args so the DFlash2 policy keeps them, and are not remembered when left out next time.
2026-11-04 10:36:06 +01:00
Niko1221 ac1dfef883 launcher: draft layer also found in --data-dir, split engine counts free VRAM, plan card numbers are the --gpu numbers
- discovery.prepared_beside(gguf, data_dirs): after the models-folder walk it also looks in --data-dir and the remembered data folder for mtp/rt, the pack and the picture reader (setup writes them there); plan, download_plan and the own-files preview pass them. A model folder outside the data folder no longer asks for the 5.2 GB layer a second time.
- split_engine: Card.free_mib from the same nvidia-smi call (memory.free; AMD: the render node's vram_used), fit = min(size, free) - 700 MiB; busy cards get the layer split with DFlash2 and no draft-layer part. Runner.card_probe leaves free memory out while a server of this launch (same profile or port) is about to be stopped. Free cards decide as before.
- plan: the cards line prints the numbers --gpu takes and leaves out cards CUDA_VISIBLE_DEVICES (AMD: ROCR/HIP_VISIBLE_DEVICES) hides; the split probe respects the same variables when no card is named. Digits only.
- tests/terminal/test_fix3_0212.py (41 tests); launch_support.Home clears the visibility variables.
2026-11-04 07:11:31 +01:00
Niko1221 1fef27e836 setup: no "--prefill auto:32768" tip where a bare auto already takes 32768 (one NVIDIA card of compute capability 8.0+, no STRATA_NV_CHUNK=0 / STRATA_DEFAULTS=026, no layer split); docs: DETAILS.md describes the NVIDIA ceiling
Logic only, no text changed: bench_tips takes the GPU and leaves the tip out for those configs; older cards, AMD, a layer split and no GPU information keep it. The explicit auto:32768 warning is unchanged. test_setup_bench_tips covers it (10 passed on l620).
2026-11-03 20:37:45 +01:00
Niko1221 ae5e73de20 drafting: a DFlash2 the person chose by name keeps the number of requests they chose (DFlash2 with N requests); Auto and the MTP unchanged
- drafting.blocked_by(named=True): only --pipeline-windows still blocks; Metal keeps the old rule (no per-request drafters there)
- apply/launcher/plan pass the choice; the all-cards split engine runs --draft dflash2 --draft-model PACK only for DFlash2 by name AND --split-engine on
- the split engine's own DFlash2 start line counts as "DFlash2 on"; a split run config with --draft dflash2 is left as it is
- app Drafting hint and Terminal --drafting help say it (owner-approved wording, English only)
- tests: terminal drafting/single/split-parallel, split engine, serve parallel, node parallel-default
2026-11-03 16:28:14 +01:00
Niko1221 75bbf42912 docs: the split engine's opt-in DFlash2 draft source (engine flag only; Auto keeps the MTP draft layer) 2026-11-03 14:55:40 +01:00
Niko1221 f6cea71a78 Merge f-0212-tailskip (final) into f-0212-int 2026-11-03 12:56:48 +01:00
Niko1221 c2de8af1c4 setup: the route-tail skip stays on for Unsloth files on Linux gfx12 (R9700, RX 9000)
Owner 11-03 ("3 Yes"). Since 0.1.44 setup wrote STRATA_ROUTE_TAIL_SKIP=0 into the run config of every Unsloth file whose experts are all in RAM. On Linux gfx1200 / gfx1201 it no longer
does: the engine's own default (rank 7, applied only while the variable is unset, so =0 still turns it off) runs. UD-Q4_K_XL on one R9700: decode +6.2% (2 rounds x 8 classes, interleaved) and a
median +15.6% over the 61 suite tasks; the suite scores 56/61 against 55, 57 and 56 for the default arms; start line "STRATA_ROUTE_TAIL_SKIP=7 is ON (default)". Teacher-forced decode-window
KL against no skip 0.0773 (noise floor 0.00000, top-1 91.1%; agent segment 0.20) on a static, low-hit-rate cache, an upper bound for real use. Windows and other cards keep the 0.
unsloth_default_env takes the card's arch (default "": the old behaviour); test_tail_skip_stays_on_for_linux_gfx12 pins the rule.
2026-11-03 11:57:52 +01:00
Niko1221 ee0b367fb7 Layer split walk: early trim for every card, stage late-allocation reserve, fewer-cards step, min card 3 GiB; docs 2026-11-03 11:48:08 +01:00
Niko1221 55a2bcd474 Merge f-0211-nvdual into f-0211-int
Conflict in src/split/src/prefill.cu (pf_ring and the ring wiring): kept both sides. The HIP all-to-all small-chunk path stays, guarded by !own_out (the own-rows output is the NVIDIA hyper-connection split's), and the ring runs with nvdual's own_out argument; in the next-card wiring the HIP a2a box/flag copies and the hyper-connection split's input pointers are both kept.
2026-11-03 08:46:45 +01:00
Niko1221 07e1508893 Merge f-0211-hybrid into f-0211-int 2026-11-03 08:46:30 +01:00
Niko1221 c2d44e93ac gfx12: K-quant experts read the prompt on MMQ by default; bare --prefill auto takes 32768-token chunks
Owner 11-03 ("do all 5"), two prompt defaults for Linux gfx12 (R9700), both changing rounding slightly and both with their off switch.

STRATA_MMQ_KQ=1 joins the gfx12 value-changing defaults (gfx12_extra.hpp, applied by apply_arch_defaults, so a raw engine gets it too; Linux only like the
other approved gfx12 prompt defaults; STRATA_MMQ_KQ=0, STRATA_GFX12_DEFAULTS=0 or STRATA_DEFAULTS=026 turn it off, a value the user sets wins). The experts of
Unsloth's UD-Q4/Q5/Q6_K_XL files (Q4_K, Q5_K, Q5_1, Q6_K) then run their prompt products on llama.cpp's MMQ kernels instead of being dequantized to FP16 and
multiplied by hipBLASLt (UD-Q4_K_XL ran 25K dequant launches and ~50K small Tensile GEMMs per 8K prompt). R9700, same job, interleaved: prompt 4K +10.3%,
8K +14.3%, 32K +16.8%; first-token KL against the FP16 path 0.031 over 24 prompts of ~2K (agent turns 0.065), top-1 23/24. A pack without K-quant experts never
reads the variable. The fused variant (STRATA_PF_FUSED_KQ) stays a flag.

The gfx12 ceiling of a bare --prefill auto goes from 16384 to 32768 (gfx12_chunk.hpp, pure functions with tests). A 20K prompt is one chunk instead of
16384 + a 3.6K tail, and every chunk of 1,024 tokens or more streams all the experts the card does not hold. R9700, IQ3_S, 3 rounds interleaved: 20K +12.1%,
64K +2.6%, 32K +1.3%, 8K +0.9%; UD-Q4_K_XL 20K +26%; first-token KL against 16384 at most 5e-5. The lent slots are taken only for what a prompt needs and are
refilled after it; the RAM guard (#2090) now steps 32768 -> 16384 -> 8192 until the extra loan fits. STRATA_GFX12_CHUNK=16 keeps 16384, =0 keeps 8192.

gfx12_extra_test covers both (gfx only, Linux, off switches, user value wins, the ceiling and its step-down); docs/DETAILS.md lists them.
2026-11-03 08:32:12 +01:00
Niko1221 213f1a3905 Engine: the auto CPU/PCIe miss share follows the CPU pool by default on a discrete card: ceiling 0.95, factor k falling from 1.85 at 30 GB/s of expert bytes to 0.8 at 12, and a CUDA layer split refines its stage shares (STRATA_PCIE_AUTO_SPLIT=0, STRATA_PCIE_K_RULE=0 and STRATA_PCIE_SHARE_MAX=0.60 restore 0.2.10; integrated GPUs, HIP layer splits and STRATA_DEFAULTS=026 keep it). Pure rule in pcie_share_rule.hpp with a test. 2026-11-03 08:27:33 +01:00
Niko1221 3f15274e8f 0.2.10.1 Control: the app starts the all-cards split engine like the Terminal
`strata split-engine apply --config IN --out OUT` turns the run config the app built into the split engine's (same steps as strata launch: rule, strata-split-N beside the
engine, draft layer on disk, lanes 1..8 from "parallel"); nothing is written on a no. Shared helpers in split_engine.py (exe_finder, draft_layer_present, apply_run_config,
split_plan_line), used by the launcher too. `strata drafting plan` asks the rule with the choice in hand (a saved DFlash2 under an Auto on the screen is Auto), says split for
an explicit MTP as the Terminal does, and uses the Terminal's plan line; expected() refuses a conversation memory other than int8 as the start does. --no-split stays.
Tests: AppPlanEqualsTerminalPlan, AppStartsTheSplit replace AppDoesNotSplit; docs/SPLIT_ENGINE.md describes the app.
2026-11-03 04:06:55 +01:00
Niko1221 3482b3dff8 Merge f-0210-ds-mac-vision: the Mac DeepSeek picture tower (engine commit f457ed7b9) 2026-11-02 22:04:03 +01:00
Niko1221 4045621eba docs/SPLIT_ENGINE.md describes what 0.2.10 does: Auto starts the all-cards split on 2 RTX A6000 or RTX PRO 6000 cards and on 4 R9700 cards with a UD-Q4_K_XL-type file, the MTP draft layer is fetched for it, --split-engine off turns it off, other AMD cards are opt-in with the self-test line 2026-11-02 22:04:03 +01:00
Niko1221 6ca50487ef Mac DeepSeek: the vision tower on Metal (kernels, BF16 GEMM, host side), capability marker STRATA_DS4_METAL_VISION_V1; credit to antirez/ds4 (MIT, 890898cf) 2026-11-02 19:16:42 +01:00
Niko1221 541eb00c91 DeepSeek's pictures on a Mac follow the installed engine: on exactly when the strata-dsv41 program carries STRATA_DS4_METAL_VISION_V1 (read, never started, cached per path; no engine yet: on, and setup looks again once it is fetched). Setup settles it after the engine step (no marker: the picture file is not fetched, pack and engine text only, with the plain line), the Mac model rows and the install tool ask the same function, the Coder's Mac line and docs/DEEPSEEK_MAC.md follow. The static DSV41_MAC_VISION is gone; other platforms are unchanged 2026-11-02 19:05:35 +01:00
Niko1221 50af790125 The Coder's Mac plan words, menu text and docs say what was measured (M5 Max 19-22 tok/s with the published 0.2.9 Metal engine, Ryzen AI Max about 20) instead of 'not run yet' 2026-11-02 18:26:19 +01:00
Niko1221 95901fe8a4 Merge f-0291-split-hip e3563ff3d: AMD split final candidate (batched draft layer, RCCL sums, strata-split-2/3/4-amd) 2026-11-02 17:03:21 +01:00
Niko1221 f31abf7bd2 Version 0.2.10 / engine 0.1.56 follow-through: test_tui2_023_versions and AGENTS.md follow the bump; the '0.2.9.1' tags that meant this release now read 0.2.10; the test comment names 0.2.9.1 as the unpublished DeepSeek hotfix label 2026-11-02 14:54:37 +01:00
Niko1221 21d53d9812 docs: the hf command as the manual way to fetch model files (DETAILS.md)
A short section next to the Linux setup: what Strata's own downloader does, the measured speeds (anonymous, 16-24 MB/s whatever the method), and the manual route
with `hf download` and `--gguf-dir`, which setup already supports (checks the SHA-256, never deletes a file in your own folder). No code change.
2026-11-02 14:05:10 +01:00
Niko1221 202bb94ae6 split HIP: AMD gfx1201 starts the split by default (AUTO_SPLIT_AMD_ARCHS), off by key, preset or STRATA_SPLIT_ENGINE=0; tests and docs 2026-11-02 12:27:01 +01:00
Niko1221 3227bd2187 rc1 merge split-hip (2c1771dce): AMD split, opt-in 2026-11-02 12:23:11 +01:00
Niko1221 2c1771dce2 Merge f-0291-split (up to ea2aed12c: auto/on/off switch, drafting fix, i-quant sets, PF_JOB) into f-0291-split-hip; AMD opt-in rule (AUTO_SPLIT_AMD_ARCHS), strata-split-N-gfx1201 lookup, packaging/build_split_hip.sh, AMD tests 2026-11-02 12:13:42 +01:00