Commit Graph
1482 Commits
Author SHA1 Message Date
Niko1221 f65f2d614b README: line the Linger sponsor logo up with Olares
Both sponsor logos are centred on the line (align="middle"), and the Linger wordmark files get 88 units of empty space above the artwork, so the tops and the bottom lines of the two wordmarks match in light and dark mode (checked in a headless render).
2026-11-23 09:58:56 +01:00
Niko1221 e8bab87288 README: add the Linger (heylinger.com) sponsor logo next to Olares, in all languages
Both wordmarks are in docs/media/sponsors: the site's own file for light backgrounds and a white-ink copy for dark mode (the site has no light version); the provenance is in docs/media/sponsors/README.md.
2026-11-23 09:42:13 +01:00
Niko1221 94e1fc4fbf fix(tests,docs): register STRATA_PREFILL_RAM_RESERVE_MIB and prefer Git usr/bin in test_docker_files 2026-11-23 02:12:25 +01:00
Niko1221 db4b257754 fix(docker): fix MODEL_PATH validation, package shape engines in Dockerfile.src, update docs to 0.2.20 2026-11-23 01:04:51 +01:00
Niko1221 923e2df4d0 docs: add Hy4-Flash, Inkling 2 Mini, and Olares sponsor across README and all translations 2026-11-23 00:18:31 +01:00
Niko1221 2e87c08db1 Release Strata 0.2.20 (Control and engines 0.1.66) 2026-11-22 20:46:53 +01:00
Niko1221 5ea521afe4 Wire RDNA2-4 HIP Unsloth WMMA/DP4A dispatch, v_perm LUT16, and settings register 2026-11-22 20:02:36 +01:00
Niko1221 5cf4cd3343 Align Q36 expert type mirror, offline split-engine probe, quiet_crash_env, and app snapshot goldens 2026-11-22 19:43:49 +01:00
Niko1221 41aa4c850c Fix #6623, #6614, #6619, #4891, #6629, #6628, and #6626 sweep 2026-11-22 18:53:59 +01:00
Niko1221 eafad26be5 Merge branch 'f-0220-qwen-wddm' into f-0220-int 2026-11-22 17:24:29 +01:00
Niko1221 53f59c0640 engine: fix Windows WDDM VRAM paging, sm_89 defaults, gfx1200/RDNA4 crashes & NaNs, sm_70 V100 kernels, and MSVC CUDA LNK2005
- Windows WDDM VRAM safety floor & post-cache shrink (#6128, #5915): join warm_gemm_libraries before sizing, enforce per-tier WDDM discrete free-VRAM floors (>=1280 MiB >=16 GB, >=960 MiB 10-12 GB, >=640 MiB 6-8 GB, >=448 MiB 4 GB; opt-out STRATA_WDDM_VRAM_FLOOR=0), raise legacy --vision --vram-reserve-mib 700, reserve 384 MiB late-alloc headroom on WDDM, and include mtp_bind + prefill_mib + late_alloc in both sized_slots and post-memset shrink with 0 slack so Driver 595+/621.01 never pages VRAM to host RAM.
- Prefill chunk cap & sm_89 / multi-GPU tiny-cache fixes (#5199, #6509, #6208, #6431, #6583): keep bare --prefill auto at 8192 on <=16.5 GiB NVIDIA GPUs so prompt loans do not cannibalize hot expert slots; remove regressive STRATA_L2_PF=1 and conflicting STRATA_QFUSE=1 from sm_89 Ada defaults; extend tiny-cache (<25% resident) swap dampening and 25% Zipf-head pinning to multi-GPU layer splits.
- RX 9060 XT / gfx1200 RDNA4 fixes (#6254, #6526, #5162, #6127, #5649, #5718): serialize warm_gemm_libraries on Windows HIP to avoid amdhip64_7.dll/rocblas.dll cold-boot 0xC0000005; default DEBUG_HIP_DYNAMIC_QUEUES=0 before first HIP call (opt-out STRATA_HIP_DYNAMIC_QUEUES=1); use __builtin_memcpy in RDNA4 load_int_b2 and hoist Q6KTraits scales into registers to avoid gfx1200 NaNs; add STRATA_VERIFY_TIMEOUT_S (30s HIP default) with one-shot flag re-publish grace.
- Volta sm_70 opt-in bitwise kernels (PR#6603 STRATA_GR_V70, PR#6604 STRATA_Q8_V70) + PR#6505 cudaGetDevice error checks.
- Windows MSVC CUDA LNK2005 fix: default CMAKE_CUDA_RUNTIME_LIBRARY=Shared on MSVC across engine/cmake/backends/cuda.cmake and engine/src/inkling2/CMakeLists.txt so strata.exe and strata-inkling.exe link cleanly without cudart_static.lib/cudart.lib collisions.
2026-11-22 17:22:37 +01:00
Niko1221 adab4d45e0 Merge branch 'f-0220-new-issues' into f-0220-int 2026-11-22 16:24:45 +01:00
Niko1221 e3ef567e35 Merge branch 'f-0220-8g12g-qwen' into f-0220-int 2026-11-22 16:00:41 +01:00
Niko1221 63b73ba73f Merge branch 'f-0220-multigpu' into f-0220-int 2026-11-22 15:59:06 +01:00
Niko1221 cc62949293 engine: fix multi-GPU usage race (#6560), PHB peer fault, SYCL stage_dev, #6427/#6501/#6504, and Win HIP split-2 2026-11-22 15:52:07 +01:00
Niko1221 40fa01b31e hy4flash: enable multi-GPU across CUDA, AMD HIP, Intel SYCL, and DGX Spark (#6562, #6565, #6568) 2026-11-22 15:52:06 +01:00
Niko1221 99ee215756 Merge branch 'f-0220-ink-gguf-ep2' into f-0220-int 2026-11-22 15:22:40 +01:00
Niko1221 2a8265942f mtp: add Arabic-script draft vocabulary (--draft-vocab arabic) and auto-detection (#6578) 2026-11-22 15:17:13 +01:00
Niko1221 5f6c45ff95 hip: guard gfx1103 hipBLASLt auto-table on cwsr_enable!=0 and fall back on pre-launch error (#6574) 2026-11-22 15:11:59 +01:00
Niko1221 a727ce5d1b sm_86: fix 2-GPU lend-slot mismatch and QFUSE decode regression (#6583), add STRATA_SM86_DOWN_WS (#6581) 2026-11-22 15:08:21 +01:00
Niko1221 ddca992850 Merge branch 'f-0220-nextgen' into f-0220-int
# Conflicts:
#	engine/src/hy4flash/run/hy4_gpu_model.hip.h
#	engine/src/hy4flash/run/hy4_main.hip.cpp
#	engine/src/inkling2/cuda/ink_hybrid.cuh
#	engine/src/inkling2/cuda/ink_runner.cuh
#	engine/src/inkling2/hip/ink_hip_backend.hip.cpp
#	engine/src/program/generate.cpp
2026-11-22 15:05:59 +01:00
Niko1221 861e889f54 Merge branch 'f-0220-app-serve' into f-0220-int 2026-11-22 14:16:24 +01:00
Niko1221 49f28f17fd [TUI] resolve Del reset (#6519), Qwen file detection (#6518), port 8080 probing (#6475), strata connect/OpenCode v2 (#6512), and PRs #6387 #6395 #6451 2026-11-22 14:15:06 +01:00
Niko1221 f1f91d97b5 [Engine] serve: fix crash exit codes, tool/MCP parsing, compaction, vision log fd, thread caps, and PRs #6401 #6452 #6471 #6474 #6486 #6544 2026-11-22 14:15:05 +01:00
Niko1221 44710df59b engine: fix #6489 sm_86/89 staged 128-row prefill tile, #6487 warmup error masking, and update settings register 2026-11-22 13:43:00 +01:00
Niko1221 14618d7d2f Merge branch 'f-0220-eng-q36' into f-0220-eng-fixes 2026-11-22 13:39:01 +01:00
Niko1221 43da4fda21 q36: integrate --kv (#6430), --peer-device (#6425), GDN checkpoints (#6508), and STRATA_Q36_MTP_SAMPLED (#6536)
Integrate PR #6430 (--kv fp32|fp16|fp8|fp4 with rotated q4_0 and bit-exact fp32 default), PR #6425 (--peer-device card-1 expert tier, with portable cpu_out mapping, stale h_kind guard on early peer_share return, card-0 staging headroom, graceful E.stage[0..1] fallback, and --prefill hint on OOM), PR #6508 (GDN state checkpoints for longest-common-prefix resume with post-resume invalidation of stale suffix checkpoints), and PR #6536 (STRATA_Q36_MTP_SAMPLED=1 opt-in sampled drafting in single and batch MTP paths).
2026-11-22 13:37:42 +01:00
Niko1221 64363f6809 Merge branch 'f-0220-eng-sycl' into f-0220-eng-fixes 2026-11-22 13:23:14 +01:00
Niko1221 534802c8dc engine: integrate #6406, #6529, #6550, #6523 and fix #6515, #6431, #6462, #6423, #6417, #6493, #6533, #6470 2026-11-22 13:23:13 +01:00
Niko1221 062b6ec729 sycl: persistent SSD spill (PR #6538), GENI/cvec bounds checks (#6493), and DEVICE_LOST guard (#6445) 2026-11-22 13:12:35 +01:00
Niko1221 f44ed40b8d sycl: Battlemage grouped routed-expert prefill and weight reuse (PR #6567) 2026-11-22 13:06:10 +01:00
Niko1221 4de1074d80 sycl: Battlemage GDN recurrence pairing and prefill tiling (PR #6566) 2026-11-22 13:05:36 +01:00
Niko1221 e7391915eb sycl: Xe3 Panther Lake unified memory pool, telemetry, and BMG kernel routing (PR #6453, #6454, #6455) 2026-11-22 13:05:21 +01:00
Niko1221 0f1738e611 engine: integrate #6547, #6548, #6538, #6465 (batched MTP, QSA stream batch, persistent spill, bounded swap) 2026-11-22 13:02:10 +01:00
Niko1221 ad4c565e86 engine: integrate #6549, #6532, #6543, #6545, #6546, #6554 2026-11-22 13:01:28 +01:00
Niko1221 26350e4387 Release Strata 0.2.19 (Control and engines 0.1.65) 2026-11-22 10:11:54 +01:00
Niko1221 e616bfda7b Merge main (3142b66b9) into 0.2.18 RC 2026-11-21 01:29:32 +01:00
Niko1221 fcf5bbe86c Release 0.2.18 (Control and engines 0.1.64) 2026-11-21 00:14:58 +01:00
Niko1221 b4a305a1a0 The source Docker build works again: the ignore list stops cutting out engine/
Since the layout move /engine/ is the engine's source, but tools/docker/Dockerfile.src.dockerignore still carried the old /engine/ line (the built engine of setup.py), so the build context had no engine/ and `cmake -S engine` could not run. The list now names the folders .gitignore names for the built engines (/terminal/engine/, /terminal/engine-sycl/, /terminal/engine-cuda12/, /engine-sycl/, /engine-cuda12/) and the vendored llama.cpp at its new place (engine/third_party/llama.cpp, terminal/third_party/llama.cpp).

There is no Dockerfile at the repository root, so the commands in docs/DOCKER.md and in the Dockerfile.src header now name it with -f tools/docker/Dockerfile.src (the ignore list next to it is only read then) and pass STRATA_COMMIT, which the Terminal stage needs because .git is not copied. The CUDA 12 example uses nvidia/cuda:12.9.2-devel-ubuntu24.04 (the tag exists) and no longer says BUILD_VISION=0: the picture reader is built for the same architectures as the engine, sm_60 / 61 / 70 included, and package_engine.py checks vision_archs against the package's archs; BUILD_VISION=0 stays documented as the opt-out.

terminal/tests/terminal/test_docker_src_context.py reads the ignore list the way docker does and checks that no tracked file under engine/, tools/ or terminal/ is cut out, that the engine source is in, that the built-engine folders are out, and that every documented source build names the Dockerfile with -f. It fails on the old files and passes now.

Based on the report and change of #6064 by rafal-prasal (credited in the release notes).
2026-11-20 07:11:56 +01:00
Niko1221 58bb60a2dc settings register: STRATA_HY4_KERNELS (Metal runner) and the four STRATA_CPUEXP_* names (CPU expert pool) enter the register as research; SETTINGS.md regenerated 2026-11-20 01:09:20 +01:00
Niko1221 01d81206d4 Version 0.2.17 (app and Terminal), 0.1.63 (Control and engines)
App, Terminal and the desktop shell 0.2.17; Control and every engine package 0.1.63. The release manifest (docs/data/release.json, published 2026-11-20,
the aarch64 DeepSeek package no longer an asset of the release: its feed entry names the v0.2.13 file, #6267), the version lines and installer names of the
current pages, the capability table, the settings register (line numbers), and the two tests that pin the versions follow. MIN_ENGINE stays (0, 1, 46).
2026-11-19 22:16:47 +01:00
Niko1221 8a38bc52b6 Merge f-fetch16: STRATA_ADAPT_FETCH=2 default on 12.x CUDA cards with 16 GiB or less
The settings register conflicted on line numbers only. It was taken from the rc,
STRATA_ADAPT_FETCH's status and note were carried from f-fetch16, then
settings_register.py and --docs were run over the merged tree (1125 names);
--check passes.
2026-11-19 20:50:36 +01:00
Niko1221 794c85df0a DETAILS.md: the STRATA_ADAPT_FETCH row now carries the default and its numbers
2x RTX 5060 Ti 16 GB (BW-9): decode +4 to +43% by kind, hit rate 54.4% to 62.0%, KL ratio 0.948
[0.830, 1.063]. RTX 5070 12 GB (IQ3_S, 28 GiB RAM budget, 3 paired rounds): the switch is not used
in the resident RAM mode, decode medians 0.966 to 1.054 of =0, hit rate 53.6% and 53.5%.
Register line numbers regenerated.
2026-11-19 20:40:39 +01:00
Niko1221 5a79b7f3c0 Settings register and docs/SETTINGS.md regenerated after the merge of f-bw-h
python tools/settings_register.py and --docs over the merged tree (1125 names):
line numbers, reads and the table of docs/SETTINGS.md follow the merged files.
settings_register.py --check passes; no name has an empty status.
2026-11-19 19:48:50 +01:00
Niko1221 f705bf0a81 Merge f-bw-h (link-aware CPU prompt share limit) into the 0.2.17 release candidate
f-bw-h (a620ffb61, 595d40922) and f-bw-f (38e6a0506) both arm the CPU prefill
share on a layer split. One conflict, engine/src/program/generate.cpp, the
share arming block of the serve start-up, resolved to one rule:

- BW-H first: on a layer split the stages' stream floors are summed; where the
  link rule raises the limit above 3,072 (Prefill::arm_cpu_share_split) it arms
  the share by itself and sets the limit and the expert width. This is what arms
  a split of three or more cards, and it gives a two-card split with a slow link
  its larger limit.
- BW-F second: arm_cpu_share(share_pool, share_pool && share_layout &&
  share_has_work): one card, or exactly two CUDA cards (STRATA_SPLIT_CPU_SHARE=0,
  kSplitShareDefault), armed by default with the default limit. A two-card split
  of fast links therefore keeps the share armed, as BW-F measured it.
- set_card_expert_share takes pool.workers() (BW-H) in the one-card condition.
- BW-F's start-up line is kept.

docs/SETTINGS.md is generated (conflict only in its table): regenerated from the
register.
2026-11-19 19:48:39 +01:00
Niko1221 595d409226 CPU prompt share on a layer split: the link rule arms it from the stages' summed stream floors (cc 12.0 cards, STRATA_PREFILL_CPU_SHARE_AUTO=0 keeps it off)
The share is off on a layer split by default.  With explicit STRATA_PREFILL_CPU_SHARE=auto and the limit above the split's 8,192-token chunk, experts of up to 64 tokens, 2x RTX 5090 on one board (GPU0 PCIe 4.0 x2
3.6 GB/s first stage, GPU1 x8 14.1 GB/s, 32 pool workers, UD-Q4_K_XL, --layer-split auto, 3 rounds) the prompt takes 0.25-0.68 of the split's default time at 84 / 1,024 / 2,048 / 4,096 / 8,192 / 12,288 /
16,384 / 32,768 tokens (843 -> 327, 1,957 -> 829, 5,549 -> 1,395, 5,949 -> 2,345, 6,783 -> 4,599, 11,052 -> 5,999, 11,233 -> 7,578, 20,026 -> 13,125 ms), decode level; the share with the default limit 3,072 costs
3-4% from 4K up.

Prefill::arm_cpu_share_split(applies, floor_ms, pool_workers, all_cc120) (called before arm_cpu_share in the serve path when the engine runs a layer split): floor_ms is the sum over the stages of (pairs of the
stage's layers - its cache slots) x blob / its link; the share is armed by default only when share_rules::link_rule_floor raises the limit above 3,072 (here 3,556 ms -> 12,032 tokens, 64-token experts), so a
split of fast links keeps the share off as before.  With the rule (nothing set against STRATA_PREFILL_CPU_SHARE_AUTO=0): x0.38 / 0.41 / 0.25 / 0.38 / 0.63 / 0.52 / 0.64 / 0.62 of the default at the same
lengths, decode chat 129.2 -> 132.5, code 189.7 -> 203.9, agent 136.3 -> 138.2 tok/s.  Forced-token KL on the split against the FP16 prompt path (48 prompts, 12,288 positions, fixed share 0.5): exact 0.01119,
share with 8-token experts 0.980 [0.938, 1.024] of it, share with 64-token experts and limit 16,384 0.979 [0.907, 1.053].  Docs updated (DETAILS.md).
2026-11-19 19:23:55 +01:00
Niko1221 ca99e886f7 STRATA_ADAPT_FETCH=2 is the default on compute capability 12.x CUDA cards with 16 GiB of memory or less
RTX 5050 / 5060 / 5060 Ti / 5070 / 5070 Ti / 5080 and the laptop parts. A card with more memory,
and every other vendor and architecture, keeps it off. A value the user sets (0 included) always wins;
STRATA_ADAPT_FETCH=0 is the way back, STRATA_SM120_PERF=0 and STRATA_DEFAULTS=026 leave it out with the
rest of the sm_120 table.

The switch is read once per process and only a one-card run uses it (a layer split, helper cards, a peer
tier and --batch turn it off), so the engine's main card (STRATA_PRIMARY_DEVICE) decides; its memory is
cudaDeviceProp::totalGlobalMem, read without making a context.

BW-9, 2x RTX 5060 Ti 16 GB, UD-Q4_K_XL, tail skip off, product flags, 3 paired rounds: decode +4 to +43%
by kind (medians 1.087 to 1.325), expert cache hit rate 54.4 -> 62.0%, forced-token KL against the FP16
prompt path 0.948 [0.830, 1.063] of the default's, prompts level except json 169 at +3 to +5%.

The start-up line of the sm_120 defaults names it and says it is not bit-exact; the lines that say the
switch cannot run in a given start (a layer split, --batch, ...) say the default is not used there.
Unit test adapt_fetch_default_test (the card rule, the table, apply_nv_defaults with the user's value,
the off switches); settings register: status default.
2026-11-19 19:22:00 +01:00
Niko1221 6e61e0b73a Settings register and docs/SETTINGS.md regenerated over the merged 0.2.17 tree
python tools/settings_register.py and --docs after the merge of the engine
head into the app head: the reads, launch sets (setup.py now sets
STRATA_RAM_KEEP_GIB and the tail-skip "0" for the Unsloth configs) and doc line
numbers of the 1123 names follow the merged files. The app policy
(strata_control.app_policy) and the setup golden JSON regenerate to the same
bytes, so they are not in this commit.
2026-11-19 18:43:13 +01:00
Niko1221 f85f9dd332 Merge f-eng-0163 (engine 0.1.63 head) into f-0217-int2: the 0.2.17 release candidate
Both halves come from main 58ee32277: the app side (f-0217-int2) and the engine
side (f-eng-0163, on f-bw-a). Four conflicts, all in the serve parser and one
doc table:

- terminal/serve/frontend.py, _track (#4923): the app lane and FIX-ENG fixed the
  same stray-backtick rule; the FIX-ENG form is kept (it also carries a span
  that is already open across lines), the same parity as the app lane's.
- terminal/serve/frontend.py, _quoted_think_end (#5605): the app lane's pair
  rule ("</think>" inside a pair of quotes) and FIX-ENG's closing-quote rule
  and #6218 backtick-span rule are all kept, in one function.
- terminal/serve/test_parser_track.py: the reference model follows the kept
  _track rule.
- terminal/serve/test_parser_stray_backtick.py: both lanes added a file of this
  name; the app lane's stays, FIX-ENG's is test_parser_stray_backtick_eng.py.
- docs/DETAILS.md, "On by default" table: FIX-SPEED's longer prefill-share row
  and its two new rows are kept; the STRATA_ROUTE_TAIL_SKIP row is not there
  any more (tail skip is off by default in 0.2.17, its own section below).
2026-11-19 18:42:38 +01:00
Niko1221 c619aebeb9 "Leave 20% for my work" starts the engine with the old RAM budget on the started copy only; the saved run config keeps setup's number, so the Terminal always reads the new one
Owner rule: the Terminal always uses the new number. The work-mode swap is no longer part of resourceSettings (what every write of the run config takes): it is
launchBudgetArgs(cfg, profile), applied by buildConfig to the config of the start being made, after the person's options are merged in. The saved args keep setup's
--resident-budget-gib (47 on 64 GB), args_written is unchanged, and ui_resource_baseline carries no budget bookkeeping (nothing is saved, so nothing is put back).
"Full performance" and a load with no preference leave args as they are. The same rules as before: the person's budget (user_args, an edit of args), a --ram-keep-gib, and a
STRATA_RAM_KEEP_GIB / STRATA_RESIDENT_HEADROOM_GIB in the env keep their value; no work number (a 0.2.16 config not yet moved, a budget asked of setup, unified memory) leaves the
budget alone; a config moved by strata_cli/ram_budget_move.py works as a new one.

Tests: app/host/tests/resource-rammode.test.mjs now loads through the host (a work load starts with 40, the file read afterwards has 47, performance 47, the person's value in both),
terminal/tools/test_setup_rammode.py: a Terminal start (engine_args) of the config the app saved gets 47. Docs (UNSLOTH_Q4.md, DETAILS.md) say the swap is not saved.
2026-11-19 17:48:56 +01:00