100 Commits
Author SHA1 Message Date
Niko1221 781d7d55ab Merge f-ling-release-switch (28c83e7548): Ling is released (terminal/data/ling32-sources.json "released": true)
The owner flipped the Ling release switch before publishing. The one word `released` is the whole switch for the CLI / TUI model lists (setup.py menu) and the app (strata_mcp
ling32_visible); with true, Ling-3.2-Air is in every model list and the shipped Hugging Face source is offered by default (a source set by hand still comes first, a bad
configured source adds nothing). The note text follows and test_ling32_launch.py pins the released state instead of the unreleased one. terminal/ only (data and tests).
2026-12-03 21:12:35 +01:00
Niko1221 28c83e7548 Ling-3.2-Air is released in 0.2.25: ling32-sources.json "released": true
The one word data/ling32-sources.json "released" is the whole release switch: strata_control/ling32_family.py
released() / sources() read it; setup.py (CLI and TUI model menu) and tools/strata_mcp.py ling32_visible()
(the model list the app takes from Control) test `released() or sources()`; app/host has no switch of its
own. True puts Ling-3.2-Air in every model list and makes the shipped Hugging Face source count (the repo
has to be public from the first build that ships this).

- terminal/data/ling32-sources.json: released true, the note says what true and false do.
- test_ling32_launch.py: the shipped file is released, the shipped source is offered by default, a source set
  by hand still comes first, a bad configured source adds nothing.
- The config snapshot goldens (tests/snapshot) are unchanged: regenerating them with the switch flipped
  rewrote nothing, and the whole tests/snapshot directory passes.
2026-12-03 21:12:15 +01:00
Niko1221 08ed878b45 Merge f-launch-qwen-engine (44fcfeea48): a Qwen launch on an Inkling-only PC installs the Strata engine
RC blocker. qwen_engine_wanted() (3fe4a1c7a7) made the update call that ensure_engine() runs skip the engine on an Inkling-only PC, so the first Qwen launch there
could not install it. The launch (strata launch, and the app's model-install job for Qwen models) now asks for the engine explicitly (strata update --want-engine);
a plain strata update or check still leaves it out. The host retries once without the flag when an older Control answers "unrecognized arguments: --want-engine".
terminal/ and app/host (install job) only; no engine/ change.
2026-12-03 17:12:12 +01:00
Niko1221 44fcfeea48 App host: a Control that does not know --want-engine is called again without it (rc1 fix #8, skew)
The host runs the newest of the bundled, the app's and the updated Control, so an app that carries this
fix runs a Control that has --want-engine. Should an older one ever be run (a pre-fix Control from a feed),
argparse exits 2 with "unrecognized arguments: --want-engine"; the update check and the update then repeat
the call once without the flag. Such a Control has no "not-used" rule and installs the engine anyway.
The launch runner always runs its own tree's strata.py, so it has no skew.
Test: an old Control is retried once for the check and the update, a current one is called once, a plain
update never carries the flag.
2026-12-03 16:38:08 +01:00
Niko1221 aaabb73259 Launch of a Qwen model on an Inkling-only PC installs the Strata engine (rc1 fix #8)
On a PC whose only engine is a model shape's (Inkling), `strata update` leaves the Strata engine out
(qwen_engine_wanted, 3fe4a1c7a7: the Monitor's `u` must not install an engine nobody has). A Qwen launch
runs `strata update --no-control` to get it, so it got nothing, update exited 0 and the launch said there
was no engine for the graphics card although the feed has the package.

- updater: qwen_engine_wanted / decide_engine / check / run_update take want_engine; strata update and
  strata components update take --want-engine. A plain update and a plain --check still skip the engine
  (status not-used).
- launch runner: ensure_engine passes --want-engine; no_engine's words say what really happened (the engine
  step failed and why, the update left the engine out, or it was installed but is unusable) and keep the
  graphics-card sentence for a feed that truly has no package.
- app host: the model install job's engine step (Qwen models only) asks for the engine in the update check and
  the update (control-runtime updateCheck/update wantEngine). Starting a model never downloads an engine; the
  setup.py feed-engine path uses a fresh components store and was not affected.
- tests: Inkling-only Qwen launch gets the engine; plain update/check still skip it; the CLI flag; the launch
  argv; the three message cases; the app engine-step request.
2026-12-03 16:31:48 +01:00
Niko1221 2789a88038 Merge f-ling32-hip8 (10b6694fa9): --mtp-auto does not load the sidecar on a HIP unified-memory device
Post-freeze fix #7. On a HIP unified-memory device (Strix Halo, gfx1151) some engine starts decoded a different greedy text with the MTP sidecar than without it (the
warm-up ran 32 tokens instead of 12 in two of three app starts, 2 of 912 drafts accepted). Until that is understood --mtp-auto declines the sidecar there
("not loaded: unified-memory HIP (0.2.25 safety)"); --mtp FILE still forces it; discrete HIP (R9700), CUDA, Metal and SYCL are unchanged. engine/src/ling32/ling32_main.cpp
only; the decision is under STRATA_USE_HIP.
2026-12-03 13:02:02 +01:00
Niko1221 10b6694fa9 ling32 --mtp-auto: HIP builds do not load the MTP sidecar on a unified-memory device (0.2.25 safety)
On the Strix Halo (HIP, unified memory, tier A) some engine starts decoded a different greedy text with the MTP sidecar than without it: the app's warm-up 'Say hello.' (temperature 0) ran 32 tokens instead of 12 in two of three starts of the same package, with 2 of 912 drafts accepted; every other platform and the MTP-off Strix runs give 12.  Exact speculative decoding must not change greedy text, so --mtp-auto now declines the sidecar there until that is understood:  'MTP sidecar (--mtp-auto): not loaded: unified-memory HIP (0.2.25 safety)'.  --mtp FILE still forces it.

Scope: compiled only under STRATA_USE_HIP and only when the device is integrated; CUDA, Metal and SYCL builds and every discrete HIP card (R9700) keep the existing rule.
2026-12-03 12:46:34 +01:00
Niko1221 8580da079d Merge f-ling32-replan-cap (f4eb3bada1): the Windows Ling replan keeps the RAM pin cap
Post-freeze fix #6. On Windows, when --mtp-auto decides not to load the sidecar, the engine replanned from the plain options and lost the RAM pin cap of the first
plan, so it pinned 16.9 GiB on a 32 GB PC and every device allocation after the tier store failed (B70 Load: "cudaMemset: SYCL runtime error"; the same code path
serves Windows NVIDIA). The replan now starts from the capped plan options with the sidecar cleared. engine/src/ling32/ling32_main.cpp only, behaviour inside
_WIN32; Linux, macOS and aarch64 compile the same code as before.
2026-12-03 12:21:44 +01:00
Niko1221 f4eb3bada1 ling32: on Windows the replan after --mtp-auto dropped the sidecar starts from the capped options of the first plan
On Windows the first plan cuts the RAM tier to what the GPU driver can pin (about half of the system RAM, "the RAM tier is planned within 15.3 GiB"), in a copy of the options (plan_opts). When --mtp-auto then decides that the sidecar does not pay, the plan was made again from the plain options and the cap was lost: a 32 GB RAM B70 PC pinned 16.9 GiB and every device allocation after the tier store failed with UR_RESULT_ERROR_OUT_OF_DEVICE_MEMORY, then DEVICE_LOST ("strata-ling32: cudaMemset: SYCL runtime error" at Load). Without the MTP flags there is no second plan and the cap held (12.4 to 13.4 GiB pinned: Load fine).

The replan now starts from plan_opts (hoisted next to win_pin_cap) with only the sidecar removed (mtp_file cleared, spec off), so it keeps the RAM budget of the first plan. The change is inside _WIN32: Linux, macOS and aarch64 compile the same code as before.
2026-12-03 11:22:30 +01:00
Niko1221 3070d6d4a0 test_track5a_tui_cli: the Swift shard path test's mocked computer has a ram_gb
launch/runner.py passes float(cat.computer().ram_gb or 0) to adopt.plan (the RAM warning for Intel Qwen under 32 GB). The test built the computer as
mock.Mock(main_vram_gb=24.0), so ram_gb was a Mock and float() raised TypeError. The mock now says ram_gb=32.0. Test only; no code under terminal/strata_* changes.
2026-12-03 10:58:42 +01:00
Niko1221 5be47cbd69 Release manifest 0.2.25: the capability table follows (no Windows SYCL rows in the asset list yet)
tools/capability_table.py reads the package names of release.json and has no Windows Intel column, so the two Windows SYCL rows (Qwen engine and Inkling) that the previous
commit listed made the docs step fail ("a package lands in column None"). They come back with the capability data when the Windows SYCL packages ship. docs/CAPABILITIES.md
is rebuilt by --write for release v0.2.25 (0.2.25 / 0.1.73); capability_table.py --check and release_manifest.py --check pass. Docs and release.json only.
2026-12-03 10:18:11 +01:00
Niko1221 d4ec197cd3 Release manifest 0.2.25: docs/data/release.json, the pages and the installer names say 0.2.25 (engine and Control 0.1.73)
docs/data/release.json now names tag v0.2.25 (published 2026-12-03), app and Terminal 0.2.25, Control and engines 0.1.73, the 0.2.25 installer names and the 0.1.73
Control, Qwen engine and Inkling package names (plus the new Windows SYCL rows of both engines). tools/release_manifest.py --write put the versions into the
current pages (README, docs/, AGENTS.md and the three markdown pages of tools/packaging that the check covers: README.md, ENGINE-COMPONENT.md, UPDATES.md);
--check passes. Nothing in engine/, terminal/, app/ or any packaging script changes, so the engine/ subtree is identical to the previous commit.
2026-12-03 10:15:52 +01:00
Niko1221 5fc48465d8 Engine 0.1.73: the one version of strata-engine, strata-inkling, strata-ling32 and Control
The 0.2.25 engine, Inkling and Ling packages are rebuilt from changed sources, so they carry a new version: with 0.1.72 the feed would not offer them to anyone
who already has the 0.2.24 packages (same version, same file names, different sha256). The version is the project line of engine/CMakeLists.txt (Ling and the
packaging scripts read that line; Control prints it as strata_cli.version()). Also stamped: the Metal STRATA_VERSION, the standalone Inkling project line,
INKLING_VERSION and the serve banner, the HIP Linux package default, the About example, AGENTS.md, the bug form placeholder, and the pins of
test_tui2_023_versions.py. Historic "0.1.72" comments and fixtures stay.
2026-12-03 10:02:25 +01:00
Niko1221 ec28264f1b Inkling HIP: strata_inkling_hip links strata_inkling_core (the Linux link of strata-inkling failed on VramGuard::report_applied)
vram_guard.cpp is compiled into the static library strata_inkling_core. The HIP backend (47c22697cc) calls VramGuard::report_applied but did not link that
library, and GNU ld read core before hip on the link line, so the Linux HIP build of strata-inkling ended with an undefined reference. One link line makes the
dependency explicit. MSVC never showed it (it does not care about link order). Built for gfx1201 on p620 with the line: strata-inkling links, and
ink_hip_promote_policy_test passes.
2026-12-03 10:01:07 +01:00
Niko1221 e21b0cbe9f 0.2.25 version stamp: the app, host, desktop and terminal say 0.2.25
The desktop package and Cargo manifest and lock, the host package and lock, the Terminal's PRODUCT_VERSION (what `strata --version` and the Control bundle print),
the About line's example, AGENTS.md's version line and the bug report form's placeholder moved from 0.2.24 to 0.2.25. The two tests that pin these places
(test_tui2_023_versions.py, qa1-storage.test.mjs) follow. The engine stays 0.1.72; nothing under engine/ or tools/packaging/ changes. The README download
names, docs/data/release.json and the historic "0.2.24" comments are the release step's and stay as they are.
2026-12-03 09:55:29 +01:00
Niko1221 c84eb2cd0f Merge f-ink-b70-c (36273f169d): Inkling SYCL Q8_ROW XMX matmul bit-consistent with the one-token kernel and on in the default again 2026-12-03 09:36:41 +01:00
Niko1221 36273f169d Merge int-0225 (05361524ea) into f-ink-b70-c
No conflicts. The new int-0225 commits do not touch engine/src/inkling2/sycl. Register check clean.
2026-12-03 09:32:03 +01:00
Niko1221 05361524ea Merge f-ling32-fast (20f1700ac7): Windows Intel Qwen IQ2_XS / IQ3_S default to fast mode (DFlash2, --spec 6); Ling expert skip Medium, optional and off by default 2026-12-03 09:22:19 +01:00
Niko1221 20f1700ac7 Ling-3.2-Air expert skip "Medium": an optional Terminal setting, off by default (--expert-skip off|medium -> the engine's --skip-tau 0.05)
Owner decision 2026-12-03 09:05; the engine side is in f-ling32-int c966eccc17 (STRATA_L32_SKIP_TAU / --skip-tau: at decode and speculative-verify rows, a token's routed experts whose
routing-weight share is below T are dropped, the top expert kept, the weights rescaled; NOT exact).  One level only, medium = 0.05 (L32-CUDA, RTX 3090 24 GB, PCIe 4.0, tier B, 131072
context, plain decode: 53.0 / 58.0 tok/s at 0 / 0.05, top-1 agreement 97.5-98 %, mean KL 1.6e-2 at 0.08, about 1 word in 60 differs on code).

ling32_fit.expert_skip_applies(backend, card_gib, tier, platform): the NVIDIA CUDA engine on Linux (EXPERT_SKIP_PLATFORMS; measured on Linux only), a card of the 24 GB class
(CLASS_24_GIB up to CLASS_32_GIB: the 3090 and 4090), a plan that streams experts (tier B or C; tier A gains nothing).  skip_tau_args() gives ["--skip-tau", "0.05"] only for
"medium" where it is offered.  Terminal: LaunchSettings.expert_skip and `strata launch --expert-skip off|medium` (saved with presets, in the launch summary); derive_config writes
the pair into the saved run config's engine args only when asked and offered, "off" removes an earlier pair, unset leaves the install as it is; setup.py --expert-skip does the same
for an install; settings.expert_skip_applies() is the one helper the callers use (the app reads the same representation: the pair in the engine args, no other key).  The notice says
"Faster, slightly less exact (about 1 word in 60 differs)." or that the setting changes nothing here.  Nothing changes unless the person turns it on: the default rows and every
snapshot are unchanged.  Registered: two opt-in launch_settings entries (--expert-skip, setup flag) and STRATA_L32_SKIP_TAU's note; docs/SETTINGS.md regenerated.

Tests: tests/terminal/test_ling32_expert_skip.py (the rule for every class of card, tier, backend and platform; the Terminal's default, medium, off and not-offered rows; the CLI flag and the
summary; the notice; setup writing the same pair), the snapshot suite (no row moves), the register and status test.
2026-12-03 09:21:48 +01:00
Niko1221 f875ea080e Windows Intel: Qwen IQ2_XS and IQ3_S default to fast mode (DFlash2, --spec 6), the same as Linux Arc; plain decode stays an option
Owner decision 2026-12-03 09:05.  drafting.INTEL_PLAIN_BY_DEFAULT is False (it was True: plain decode by default on Windows Intel, the mode QFN-B70 gated; with DFlash2 the
B70 gives IQ3_S 60 tok/s against 31 plain and 32K runs with no OOM, QFN-B70's pre-freeze check).  Auto drafting is the engine's own rule on those packs again; the Terminal's
safety net and the drafter plan follow it.  The plain decode stays available: the Windows Intel install writes `--suffix-draft 0` (a 2-token window, no draft proposed) when the
person chose drafting Off or the constant is True (adopt.plan); the machinery behind INTEL_PLAIN_BY_DEFAULT / INTEL_PLAIN_PLATFORMS is unchanged.  Coder IQ1_M is unchanged
(--spec 2 with the suffix drafter, gated).

IQ2_XS / IQ3_S with the drafter keep a lot of host RAM busy (QFN-B70, 32 GB box: free RAM down to 10.6 GiB for IQ2_XS, 6.2 GiB for IQ3_S, commit 44 GiB), so setup's Intel install
now warns (does not refuse) on a PC under 32 GB (INTEL_FAST_MIN_RAM_GB) and says drafting Off is the plain mode.

Tests: the Windows Intel rows of test_qwen_windows_intel.py (fast default, Off, the constant, Linux and the other cards untouched), test_intel_download.py (no --suffix-draft in
the default install, the RAM note), the snapshot suite and the register check pass.
2026-12-03 09:15:57 +01:00
Niko1221 851feea32c Inkling SYCL: --turbo keeps the owner's split-K side projections; the one-token-order kernel is the default's
The one-token-order side projections cost --turbo decode 1-5% on SQ-20 and SQ-10 (4K 199.8 vs 211.1 tok/s). The fast set now runs the original kernel again
(--turbo exactly as the owner measured it); only the default uses the new order, which is what makes the Q8_ROW XMX window bit-consistent.
2026-12-03 09:01:13 +01:00
Niko1221 e40b2167ce Merge f-ling32-vc (edec883b5f): Windows NVIDIA 12 GB class and up take chunk 2048 in tier C (no extra flag), 8 GB class keeps 256 2026-12-03 07:57:04 +01:00
Niko1221 8bb83984f4 Merge f-ling32-int (c966eccc17) into int-0225
L32-SMALL's make_room (default off: STRATA_L32_ALLOC_MARGIN_MB=0), the Windows NVIDIA planner headroom (STRATA_L32_WDDM_HEADROOM_MB, 1536), L32-METAL's decode commits already present. Only conflict: terminal/data/settings-register.json: three-way merge of names and hand-kept fields, regenerated (check clean, no empty status, no status lost or changed against 269e35441b, 3 new names all 'research'), docs/SETTINGS.md regenerated.
2026-12-03 07:56:53 +01:00
Niko1221 edec883b5f Windows NVIDIA: the 12 GB class and up take chunk 2048 in tier C too (no extra flag); the 8 GB class keeps 256 there
With the engine's Windows planner headroom (f-ling32-int c966eccc17, STRATA_L32_WDDM_HEADROOM_MB 1536) the owner's 5070 (12 GB, 64 GB Windows PC, tier C)
reads the 33,784-token prompt in 100.1 s at chunk 2048 with the regrow on, the headroom line in the engine log and the shared memory flat
(GUI-LING owner-20261203-0747-5743, out-cuda13j, exe hash verified); without it, 577-622 s.  So the launcher's Windows exception for the 12 GB class
(256 since c908bbf7f9) is gone: ling32_fit.small_card_class is the 8 GB class only (CLASS_8_GIB up to CLASS_8_TOP_GIB), whose Windows tier-C chunk stays
WINDOWS_TIER_C_CHUNK = 256 (untested with the headroom; its loader reserve needs the regrow on).  The tier is still predicted with the engine's half-RAM
pin cap on Windows (plan(..., pin_half=True), set by setup and the Terminal).  No --regrow, no --vram-budget-gib: only --chunk is written.

The Terminal's config writer (adopt.plan) takes the chunk from the same plan as setup (the computer's RAM is passed from the launcher), so the app and the
TUI write the same chunk on every row.

Tests: the fit rows (12 GB and up: 2048 on Windows and Linux, 8 GB Windows tier C: 256), setup and the Terminal writing the same chunk and neither
flag, the grid of cards x RAM showing only the 8 GB class's chunk moves with the pin cap, and eight snapshot rows (new test
tests/snapshot/test_ling32_chunk_snapshot.py, golden in tests/snapshot/golden_ling32_chunk/chunk_rows.json: 12, 8 and 16 GB cards on Windows and Linux
in tier B and C).
2026-12-03 07:56:28 +01:00
Niko1221 c966eccc17 ling32: the allocation margin (make_room) defaults to 0 = off, the old behaviour; the Windows planner headroom is the fix
L32-SMALL's Linux gate (RTX 5070, tier B, chunk 2048): margin 256 cost 1-3 % of prefill (16K 1199 against 1240 tok/s, 4K 945 against 958) and decode 39.5 against 40.3, and the check never fired on the owner's Windows card (the over-commit is at load, not at an allocation).  STRATA_L32_ALLOC_MARGIN_MB keeps the guard as an opt-in; STRATA_L32_REGROW_TRACE=1 still prints the checks.  Register note regenerated.
2026-12-03 07:11:43 +01:00
Niko1221 037779a020 settings register: STRATA_L32_REGROW_TRACE (research), read by make_room since defc0ba4c8 2026-12-03 07:10:02 +01:00
Niko1221 b5c4fe5ebc merge f-ling32-small-room adfc00e747 (Windows planner headroom, make_room diagnostics) 2026-12-03 07:09:42 +01:00
Niko1221 f9ae6d7984 Revert "ling32 Windows NVIDIA: the card plan leaves about 1.5 GiB below the free memory unplanned (STRATA_L32_WIN_VRAM_EXTRA_MB)"
This reverts commit 5afc765de1.
2026-12-03 07:09:42 +01:00
Niko1221 adfc00e747 settings register: STRATA_L32_WDDM_HEADROOM_MB (research) 2026-12-03 07:09:19 +01:00
Niko1221 defc0ba4c8 ling32: Windows planner headroom (STRATA_L32_WDDM_HEADROOM_MB, default 1536) and the first make_room checks are printed
- Windows (WDDM), discrete card, any tier except --tier vram: the planner plans against the card's free memory minus 1.5 GiB.  A 12 GB RTX 5070 was planned to 10.52 of 10.53 GiB and showed "GPU memory 11.54 / 11.91 GiB used" at ready; WDDM pages allocations beyond the dedicated memory into shared system memory instead of failing them, so the prefill scratch, the graphs and the desktop's own use lived in shared memory and a 33,784-token prompt took 620 s instead of 100 s (regrow off or a 9.6 GiB budget: 100 s / 116 s).  0 switches the headroom off.  A card that only just fits tier A may now plan tier B; HIP and the integrated GPUs are not touched.
- make_room prints its first four checks (allocations of 8 MiB and more: size, card free / total as cudaMemGetInfo gives them, margin, whether it released) and every check with STRATA_L32_REGROW_TRACE=1, so a log shows what the driver reports.
2026-12-03 07:09:04 +01:00
Niko1221 5afc765de1 ling32 Windows NVIDIA: the card plan leaves about 1.5 GiB below the free memory unplanned (STRATA_L32_WIN_VRAM_EXTRA_MB)
On Windows the NVIDIA driver's system-memory fallback lets an allocation that does not fit into dedicated memory succeed in shared system memory instead of failing.  The tier plan fills the card to about 97 % (free memory minus 600 MiB), so on the owner's 12 GB card part of the prompt-time buffers (lazy KV growth, driver and desktop) lands in shared memory and the kernels read it over PCIe: a 33,784-token prompt at chunk 2048 with scratch regrow on took 577 to 661 s (Windows counters: dedicated 12.18 of 12.82 GB, shared +1.6 GB); with --vram-budget-gib 9.6 it took 116.7 s (shared +0.65 GB), with regrow off 99 s.  The make-room check (8fe91ef9d1) did not change this: the over-commit is at load, before any allocation fails or runs short of free memory.

Windows NVIDIA builds (not HIP, not an explicit --vram-budget-gib, not --tier vram) now plan against the free memory minus STRATA_L32_WIN_VRAM_EXTRA_MB (default 900 MiB, on top of the planner's own 600 MiB, about 1.5 GiB below free), print one line, and leave everything else as it was.  0 switches it off.  Linux and HIP are compiled out.  Register entry added; tools/settings_register.py --check and --docs --check pass.
2026-12-03 07:08:39 +01:00
Niko1221 269e35441b Merge f-ling32-qwenwin (33974a5be1): Intel Arc downloads what is missing (Terminal and app), plain decode for the Windows IQ2_XS / IQ3_S packs 2026-12-03 07:07:53 +01:00
Niko1221 33974a5be1 Intel Arc: download the models Strata runs there, and plain decode for the Windows IQ2_XS / IQ3_S packs
Download.  setup.fetch_gguf_shards is step 5 of main() moved out unchanged (the pinned HF / ModelScope sources, done() / mark(), the original's
shard 2 linked from a size already on the disk); main() calls it as before.  intel_control_setup (the app's install and the Terminal's
installer mode on an Intel Arc) calls it through intel_download_gguf when the model's files are not there: the disk is checked first (what is
still missing, the pack and a margin; nothing downloads when it does not fit) and the RAM is said (24 GB), then the pack and the run config as
before.  intel_app.can_download(family, model, family_def, platform) decides who downloads: Ling-3.2-Air, Inkling-2-Mini and Hy4-Flash through
their own installs where their Arc route runs; the GGUF families (Qwen, Swift, Coder, Gyro, Unsloth) on Linux every size and on Windows the
gated packs (QWEN_SYCL_WINDOWS_PACKS, qwen and coder families); a feed model has no source here.  The block (NO_DOWNLOAD, now "can't download this
model for an Intel Arc card on this computer yet") stays only for what does not download: the install route (strata_mcp) and the recommend note
follow can_download, so Ling and Inkling never say "can't download" on an Arc.  The Terminal's launcher runs setup --backend sycl for a download
(Runner.intel_downloads) and the prepared-files path when the files are there; Windows Arc now takes the Intel route for Inkling and the gated
Qwen packs (Runner.intel_route_here).

Plain decode.  On Windows Intel, Auto drafting for Qwen IQ2_XS and IQ3_S is NO drafter (drafting.intel_plain; the B70 gate was plain decode;
the app's Load had put DFlash2 and --spec 6 on, ungated): choice_of / decide, the Terminal's safety net and the drafter plan honour it.  A named
drafter and Off stay the person's own.  drafting.INTEL_PLAIN_BY_DEFAULT turns it off, INTEL_PLAIN_PLATFORMS = ("win",) (Linux Arc keeps its tested
DFlash2 rule) is where it applies.

Tests: tests/terminal/test_intel_download.py (new: can_download, fetch_gguf_shards, the Arc install with disk / RAM, the Terminal's decisions),
test_qwen_windows_intel.py (plain decode, the switches), the Arc rows of test_intel_app_install.py, two snapshot goldens (arc_a750 launch rows
for the Unsloth sets: setup_args gain --backend sycl, because the Terminal now installs through setup's Intel path when the files are missing).
2026-12-03 07:07:30 +01:00
Niko1221 121e5428b1 Inkling SYCL: the Q8_ROW XMX matmul for 4..16 tokens is bit-consistent with the one-token kernel and runs in the default again
The side projections of the fused QKVRG XMX kernel (sinks, k/v conv taps) now sum in the one-token sub-group order. SQ-10 passes --spec-check with the XMX kernel on,
which wins back most of the decode speed the gate of 1df20c491f cost. STRATA_INK_NO_Q8_XMX=1 stays as the rollback. No new setting.
2026-12-03 06:51:55 +01:00
Niko1221 ca77be6429 Merge f-ling32-sycl-kda0 (fe5c6b02f0): the SYCL KDA chunk scan default goes back to the validated scan (STRATA_L32_KDA_SEQ=0), the MLA expanded prefill stays on 2026-12-03 06:49:48 +01:00
Niko1221 fe5c6b02f0 ling32 sycl: KDA chunk scan default back to the validated scan (STRATA_L32_KDA_SEQ=0); the split scan (4 / 8) is opt-in until its long-prompt deviation is fixed
On the B70, a 4096-token prompt (first tokens of long_16k) teacher-forced against the long_16k_fp64 golden: the split scan gives top-1 99.878 %, mean KL 2.7e-4, 127 positions above KL 1e-3 starting at position 2717; the old scan with the same MLA gives top-1 100 %, mean KL 2.2e-7, none above 1e-3. The register note of STRATA_L32_KDA_SEQ is updated (opt-in).
2026-12-03 05:28:57 +01:00
Niko1221 8fe91ef9d1 merge f-ling32-small-room cd3fbe4c60 (allocation margin: make room before a big allocation) 2026-12-03 05:12:12 +01:00
Niko1221 e82739694b settings register: statuses, owners and notes of 16 entries synced from int-0225
f-ling32-int carried 15 blank statuses (STRATA_L32_MOE_DEC, STRATA_L32_MOE_GRF, STRATA_L32_MOE_TN, STRATA_L32_MOE_XCH, STRATA_L32_MOE_XMX, STRATA_L32_MOE_XMX_MIN, STRATA_L32_TRUNK_XMX and others of the Intel SYCL lane) that int-0225 keeps by hand on every merge, so tools/test_settings_register.py failed on this branch and every merge re-fought the same fields.  The status, owner and note of every entry present in both files are now taken from int-0225 where its status is valid.  tools/settings_register.py --check and --docs --check pass, and tools/test_settings_register.py runs 14 tests OK.
2026-12-03 05:12:12 +01:00
Niko1221 cd3fbe4c60 settings register: STRATA_L32_ALLOC_MARGIN_MB (research) 2026-12-03 05:09:21 +01:00
Niko1221 d7b86c64b5 ling32: make room in the tier pool before a big allocation instead of waiting for cudaMalloc to fail (lazy KV growth, scratch regrow; STRATA_L32_ALLOC_MARGIN_MB)
The release-and-retry path of the lazy KV and the scratch regrow relied on cudaMalloc failing when the card is full.  Where the driver over-commits (Windows WDDM pages the allocation into shared system memory instead of failing) the release never ran: on a 12 GB RTX 5070 in tier C at chunk 2048 the big prefill scratch was paged, the pool stayed at its full size, and a 33,784-token prompt took 622 s with regrow on against 99 s with it off.

make_room(bytes) asks cudaMemGetInfo before the allocation and, when free < bytes + margin (STRATA_L32_ALLOC_MARGIN_MB, default 256), makes the store release whole chunks of pool slots for the shortfall.  It runs before every allocation of the engine's stage context once a tier store is attached (alloc_bytes) and before each latent-cache growth (grow_kv); the failure retry stays as the backstop.  Without a tier store or without lazy KV nothing changes.
2026-12-03 05:08:46 +01:00
Niko1221 d5f9032da2 settings register: regenerated after the f-ling32-sycl-mlakda ddae5fef68 merge (read-line numbers only; no status or note changed) 2026-12-03 04:50:41 +01:00
Niko1221 4802453f65 Merge f-ling32-sycl-mlakda (ddae5fef68): SYCL MLA expanded prefill and KDA value-column scan 2026-12-03 04:50:22 +01:00
Niko1221 9949104993 Merge f-ling32-qwenwin (677027ff11): Windows Intel Qwen route on (QWEN_SYCL_WINDOWS_SHIPPED = True for QFN-B70's gated packs) 2026-12-03 04:48:33 +01:00
Niko1221 677027ff11 Windows Intel Qwen route on: QWEN_SYCL_WINDOWS_SHIPPED = True for the gated packs (Coder IQ1_M, IQ2_XS, IQ3_S)
QFN-B70's shipping package (int-0225 5ecd657db3 + a506e9122a) passed its gate on the Windows B70: Coder IQ1_M is bit-identical to the first
Windows build on 7 of 7 prompts with --spec 2 and with spec off, and spec 2 equals spec off 7 of 7.  IQ2_XS and IQ3_S are deterministic
(45-51 and 39-45 tok/s) but --spec 2 with the suffix drafter is not bit-equal to plain decode on them (near-tie flips from token 56 to 185).

Coordinator decision: IQ1_M with QFN-B70's flags (--prefill 4096 --spec 2); IQ2_XS and IQ3_S offered with plain decode, written as
--spec 2 --suffix-draft 0 (the engine refuses a native pack without a spec window, T >= 2; with the suffix drafter off a 2-token window
is allocated, no draft is proposed and it decodes one token per step).  intel_app.QWEN_SYCL_WINDOWS_PACKS maps the pack to its drafter
(True / False); Q2_0 and IQ3_XXS stay off.

The route is also checked by family (intel_app.QWEN_SYCL_WINDOWS_FAMILIES = qwen, coder): Swift, Gyro and Unsloth have packs of the same
names that were not gated.  route_here(kind, platform, model, family); the model table rows, the install route and the Intel control setup
pass the pack and the family; the not-offered notes name the sizes that run on Windows.

Tests: tests/terminal/test_qwen_windows_intel.py (flags per pack, spec per pack, route per pack and family, the switch), the Windows rows and
card-list tests of test_intel_app_install.py.  settings_register.py --check passes.
2026-12-03 04:48:17 +01:00
Niko1221 010ec1c01b Merge branch 'f-ling32-prod' into f-ling32-qwenwin 2026-12-03 04:39:09 +01:00
Niko1221 ddae5fef68 Merge f-ling32-sycl-ren (e8b28c7588): SYCL MLA expanded prefill + KDA value-column scan, STRATA_L32_* switch names, register entries 2026-12-03 04:32:51 +01:00
Niko1221 b37b9c9436 settings register: STRATA_L32_W2_PACK owner back to L32 and a plain note (the packed AMD gfx12 trunk GEMM, default on, bit-identical, 0 turns it off) 2026-12-03 04:14:31 +01:00
Niko1221 68742c3ea4 Merge f-ling32-prod-chunk12 (04d8a4dec7) into int-0225 2026-12-03 04:12:48 +01:00
Niko1221 04d8a4dec7 Merge branch 'f-ling32-prod' into f-ling32-prod-chunk12 2026-12-03 04:09:51 +01:00
Niko1221 c908bbf7f9 Launcher chunk: the 8 GB and 12 GB NVIDIA classes take 2048, except on Windows in tier C (256, one constant)
chunk_for: the 8 GB class (7.5 up to 9 GiB) moves from 256 to 2048 since L32-SMALL's loader-reserve fix (03006f62ed: the 3060 Ti 8 GB, tier C,
62 GB RAM, Linux: prefill 4K 165 vs 137, 16K 258 vs 151, 32K 232 vs 134 tok/s at 2048 vs 256, no OOM); the 12 GB class keeps 2048.  The 6 GB and
the 9 / 10 / 11 GB cards stay at 256 (between the measured classes).

Windows in tier C is the exception: the misses there are real SSD reads (NO_BUFFERING) and the larger scratch takes pool slots from the
expert cache.  The owner's 5070 (12 GB, 64 GB Windows PC, tier C, 29.25 GiB pinned), same prompt of 33,784 tokens, same harness:
256 = 407 s (83 tok/s), 2048 = 577 s (58.6), 4096 = 532 s (63.5).  So ling32_fit.WINDOWS_TIER_C_CHUNK = 256, the one constant that
decides it.  The tier is predicted for the chunk decision only, with the engine's pin cap (half of the system RAM on Windows;
plan(..., pin_half=True), set by the launcher and by setup on Windows); the plan itself keeps the real RAM, so nothing but the chunk
and the pool numbers that follow from it moves.  An explicit --chunk is never changed; HIP, Intel and Metal are untouched.

Tests: the chunk by card size, Linux 12 GB and 8 GB in tier C -> 2048, Windows 8 GB / 12 GB at 64 GB in tier C -> the constant, Windows 12 GB
at 192 GB (tier B) -> 2048, the planner fits both classes at 256 / 2048 / 4096 and the constant, and the grid of cards x RAM showing only the
8 GB and 12 GB rows move.
2026-12-03 04:09:51 +01:00
Niko1221 fd9f1833ba Settings register: keep every status of the integration lineage after the f-ling32-int merge, give STRATA_L32_W2_PACK its status
The merge of 3cfc7f147f took the register from the Ling branch and regenerated it, which dropped the hand-set status and note of the
entries that only the integration lineage has (76 entries, among them the Intel SYCL names and the Mac ones).  The register is now
regenerated from this lineage's file, so those are back; the one new name (STRATA_L32_W2_PACK, the AMD packed trunk GEMM: on by default,
STRATA_L32_W2_PACK=0 turns it off) is "rollback" with its note.  docs/SETTINGS.md regenerated; settings_register.py --check passes.
2026-12-03 04:08:05 +01:00
Niko1221 1fd138c212 Merge branch 'f-ling32-prod' into f-ling32-qwenwin 2026-12-03 04:04:48 +01:00
Niko1221 c8da9d7b1e Merge f-ling32-int (3cfc7f147f) into int-0225
L32-HIP 523e9b4c11 (no adaptive-K calibration on HIP without a tier store; Strix gate passed) and L32-PREFILL's packed S8 trunk GEMM 2754fa02c8 (gfx12, default on, bit-identical, STRATA_L32_W2_PACK=0 turns it off). Conflicts: docs/SETTINGS.md and terminal/data/settings-register.json (generated): three-way merge of names and hand-kept fields, regenerated (check clean, no empty status), docs regenerated with --docs.
2026-12-03 04:04:48 +01:00
Niko1221 ac1d0ddc57 Merge commit '3cfc7f147f' into f-ling32-prod
# Conflicts:
#	docs/SETTINGS.md
#	terminal/data/settings-register.json
2026-12-03 04:04:44 +01:00
Niko1221 3cfc7f147f merge f-ling32-pack7 2754fa02c8 (packed S8 trunk GEMM, gfx12) 2026-12-03 04:04:13 +01:00
Niko1221 e8b28c7588 ling32 sycl: STRATA_L32_* names for the SYCL KDA scan and MLA switches, settings register entries and docs
Pure renames, no behaviour change: LING32_SY_KDA_SEQ -> STRATA_L32_KDA_SEQ (0 old scan, 4 / 8 split scan, default 8), LING32_SY_MLA_EXP -> STRATA_L32_MLA_EXP_MODE, LING32_SY_MLA_ORIG -> STRATA_L32_MLA_FD_ORIG, LING32_SY_MLA_FD_NS / _PVU / _RB -> STRATA_L32_MLA_FD_NS / _PVU / _RB, LING32_SY_MLA_EXP_ABS (test) -> STRATA_L32_MLA_EXP_ABS. Register entries (rollback for the switches, research for the tuning knobs; STRATA_SY_PROF_TOP of the profiling hook too), docs/SETTINGS.md regenerated, tools/settings_register.py --check clean and test_settings_register OK on this commit (based on the scratch merge 8c8ed5cd0b of int f9f533c65f + MLA efff44d494 + KDA c7f2967a16).
2026-12-03 04:03:04 +01:00
Niko1221 8c8ed5cd0b scratch: + KDA scan 2026-12-03 03:59:50 +01:00
Niko1221 00b7f69c3e scratch: int tip + MLA expanded prefill 2026-12-03 03:59:45 +01:00
Niko1221 2754fa02c8 ling32 AMD gfx12: packed S8 trunk GEMM (bit-identical), default on for gfx12
The trunk GEMMs (every S8 matrix: KDA / MLA / dense / shared expert / lm_head) read their weights as one 8-byte dword group per lane from a different weight row (about six small loads per k16 step); in the exact-path ablation the weight loads were 37 % of the trunk kernel time
(no weight loads 812 ms vs 1,285 ms at 4K).  Each GEMM call now first rewrites its S8_K matrix (a 262-byte superblock per row: fp16 D, 4 group-scale bytes, 256 q) into a scratch laid out for the A fragments: one 16-byte load per lane (512 contiguous bytes per wave) delivers two k16 steps,
and the 32 group scales of a 32-row wave tile come precomputed as floats (Dh * u / 255, the same expression as the unpacked kernel).  Same bytes, same fragments, same MMA order, same group epilogue: the logits are bit-identical.

- gemm_sk_w2p_kernel + w2_pack_q_kernel + w2_pack_eff_kernel in ling32_wmma2.inc (HIP only), 128 MB repack scratch per stream (taken in w2_reserve with the other scratch, before the KV cache; a matrix larger than it goes through in row blocks; no room = the unpacked kernel).
- Used for S8, tc-mode 2, 64-token tiles, N >= 128 (prefill chunks).  Decode, experts, other codes and the MTP sidecar are untouched.
- Default on for gfx12 only (engine, HIP block); gfx11 / Strix and every non-WMMA AMD target keep the unpacked kernel (the packed kernel is written for the 8-half fragments).  STRATA_L32_W2_PACK=0 or the config part pack0 turns it off (pack1 on).  Registered (rollback), docs/SETTINGS.md regenerated.
- SYCL: g_w2_pack link definition next to g_w2_nt / g_w2_etn (shared ling32_main.cpp references it).  Metal has its own main.

Measured on the R9700 (gfx1201, p620, tier B, SQ-96, fast-jobs, 4K and 16K prompts, pack0 / pack1 interleaved in one process, last-logit md5 equal in all four runs):
  4K : 1,162.8 / 1,180.8 tok/s (pack0)  vs 1,318.3 / 1,315.9 (pack1): +12.4 %, md5 38659685acd2
  16K: 1,162.2 / 1,145.0 tok/s (pack0)  vs 1,373.4 / 1,356.7 (pack1): +18.3 %, md5 b5f1798919c9
Kernel time at 4K (rocprofv3): trunk GEMM 1,281 ms -> 677 ms (647 GEMM + 30 repack), total kernel time 3,211 -> 2,589 ms.
Teacher-forced dumps, pack1 vs pack0: all 17 short-set files and the 4K file have equal md5 (short 6cb0eca7932d..., 4K cdac903e4abd), so the fp64 goldens are exactly those of the unpacked path.
Timeline: with the packed GEMM the 4K prompt is bound by the expert uploads (21,021 copies, 3.09 s, about 25 GB/s on this PCIe 4.0 platform), not by the kernels.
2026-12-03 03:56:56 +01:00
Niko1221 df0128187c Merge branch 'f-ling32-prod' into f-ling32-qwenwin 2026-12-03 03:51:51 +01:00
Niko1221 fdefbfa22d Windows Intel Qwen route prepared behind its switch (QWEN_SYCL_WINDOWS_SHIPPED stays False until QFN-B70's re-gated package passes)
Run config on Windows Intel (QFN-B70's tested flags, literally): --prefill 4096, --spec 2 written explicitly (the sysfs rule of
intel_spec cannot fire on Windows), no --spec-min-p, no --mtp, --stream-experts, --vram-reserve-mib 1024 (2048 above 32K), --kv int8;
the Coder pack gets expert-profile-coder.bin and every other pack expert-profile-sycl.bin.  Linux keeps its flags.

Only the gated pack is offered on Windows: intel_app.QWEN_SYCL_WINDOWS_PACKS = ("IQ1_M",), route_here(kind, platform, model),
setup's Intel control mode and the model table rows pass the pack name.  IQ2_XS and IQ3_S wait for QFN-B70's identity gate;
Q2_0 and IQ3_XXS stay off.

Fixed on the way: adopt.py had a local `import sys` that shadowed the module's.

Tests: tests/terminal/test_qwen_windows_intel.py (flags per pack, Linux unchanged, the route per pack and switch).
Proof of the prepare step: the control bundle staged into a sandbox (stage-control.py), its Python 3.12.15 imports numpy, regex,
jinja2 and yaml, and setup.prepare_pack_only runs iq_pack.py on a small fixture (rc 0, pack and tokenizer written).
2026-12-03 03:51:47 +01:00
Niko1221 c7f2967a16 ling32 sycl: KDA chunk scan split over the value columns (launch_chunk_seq2 + launch_chunk_norm), standalone test and A750 / B70 checks
The serial scan of a head over the chunks of 8 tokens ran as one work-group per head with one value column per lane and the 128-float state column in registers (spills on Xe). The state update is independent per value column, so the scan now runs as HD / 32 work-groups per head (32 columns each), G sub-groups per work-group, each owning HD / G key rows of the state in registers (lanes are the columns); the partial sums over d of kE s and qE s are exchanged through shared memory per chunk, U and the output row are computed redundantly per sub-group, the next chunk's tiles are prefetched into registers and stored into the other shared-memory buffer (two barriers per chunk). The gated RMS norm needs the whole row, so the scan writes the raw output into out and launch_chunk_norm normalises it in place (same expressions). Mode switch LING32_SY_KDA_SEQ: 0 the old scan, 4 / 8 the new one with 4 / 8 key-row groups (default 8); the decode / verify / snapshot path (launch_step, N <= 16) is untouched, state layout and final state are the same.

ling32_sy_kda_test: chunk scan modes against the sequential recurrence (hd 64 / 128, N 40 / 100, and 32 heads x 2048 tokens: max rel error <= 2.9e-5, gate 2e-4) and timings. A750: pre + scan for 32 heads, hd 128, 2048 tokens 141.6 ms (old) -> 77.3 ms (4 groups) -> 44.0 ms (8 groups). Forward tests f32 / q8 / wide with --kda-seq 4 pass in every mode (top-1 12 / 12, KL 4.3e-12 vs 4.2e-12 old).
2026-12-03 03:51:31 +01:00
Niko1221 523e9b4c11 ling32 MTP: no calibration of the adaptive K on HIP without a tier store (tier A, all experts resident); the K starts from the cost model
On the Strix Halo (Windows, gfx1151, tier A, all experts resident) the adaptive controller never reached the speculative path: with the calibration (spec_calibrate: synthetic requests, forced K, random 40-token prompt) it ended on the plain path or on drafts that were all rejected (1.00 tokens / verify, acceptance 0.000, 29.5 tok/s at 4K, also with K_max 1).  The calibration cycles of 2..5 verify rows cost 141..146 ms (a real 2-row cycle: 43.5 ms), or did not run as that length at all (table 2:0.0(1)).

With the same adaptive controller and the calibration off (--spec-sweep block=4,adaptive=1,calibrate=0) the request picks K from the cost model and its own acceptance: 42.1 tok/s, 109 verifies, 2.28 tokens / verify, acceptance 0.633 (fixed K=1 / K=2: 41.4 / 42.1 tok/s).

spec_init now sets sp.mtp_calibrate = false for such a run and prints one line.

SCOPE: only when STRATA_USE_HIP is defined and there is no tier store (tier A, every expert resident), integrated or discrete device (the cost model is the path proven to work; the calibration is the path proven broken).  CUDA and every HIP tier-store run (tier B / C, e.g. the R9700 pool: adaptive acceptance 0.80-0.85) keep the calibration exactly as before.
2026-12-03 03:49:39 +01:00
Niko1221 f9f533c65f Merge f-ling32-int (03006f62ed): L32-SMALL's 8 GB reserve fix 2026-12-03 03:40:35 +01:00
Niko1221 92365c07a8 ling32 sycl: moe test runs the 16384-pair route case alone with L32MOE_ONLY_CHUNK=1 2026-12-03 03:39:59 +01:00
Niko1221 a521ae94e0 ling32 sycl: per-kernel profiling build (-DSTRATA_SY_PROFILE: sy::launch records every kernel by caller:line, totals printed at exit; compiled out by default) 2026-12-03 03:39:58 +01:00
Niko1221 83903ecc18 Merge f-qfn-b70 (d8f2977968): build_sycl_windows.py, the Windows SYCL Qwen package script 2026-12-03 03:37:48 +01:00
Niko1221 3722e0b61e Merge f-qfn-b70 (1109ad7b3e) into int-0225
ESIMD dense GEMM on by default on Battlemage builds (STRATA_DENSE_GEMM_ESIMD=0 turns it off), gated by QFN-B70: 8 of 8 identical token ids on the B70 (ESIMD on vs off vs the first build). Not taken: d8f2977968 (the Windows packaging script, no engine file; coordinator to say). Only conflict: docs/SETTINGS.md (generated), regenerated with tools/settings_register.py --docs; register merged cleanly, check clean, no empty status.
2026-12-03 03:37:35 +01:00
Niko1221 03006f62ed ling32: the loader reserve counts decode_rows of scratch when a tiered run has scratch regrow on (an 8 GB card could not start at chunk 2048)
The loader refuses to start when the free card memory is below trunk + reserve_bytes, and the reserve counted the chunk's logits buffer (chunk x 157,184 x 4 B = 1.3 GiB at 2048) plus its share of the latent cache.  With scratch regrow in a tiered run only decode_rows rows of scratch stay resident (the chunk-sized set is allocated by the first prefill, the store gives pool chunks for it), so the reserve counts min(chunk, decode_rows) rows there.  Every other run (tier A, regrow off, no lazy KV) computes the same expression as before: reserve_rows = o.chunk.
2026-12-03 03:33:44 +01:00
Niko1221 5ecd657db3 Merge f-ling32-prod (87be0062ce): the Mac model table's Hy4 block lists every build again 2026-12-03 03:28:05 +01:00
Niko1221 87be0062ce strata_mcp: the Mac model table's Hy4 block lists every build again (a sizes.append lost four spaces of indent in the Windows Intel change) 2026-12-03 03:27:53 +01:00
Niko1221 efff44d494 ling32 sycl: expanded-form MLA prefill on by default for Battlemage (STRATA_L32_MLA_EXPANDED=0 turns it off)
SYCL-only block in ling32_main.cpp next to the CUDA / HIP defaults: every prefill chunk above kda_seq_max_n tokens (mla_exp_min_n 32) takes the expanded form when the device has XMX; --mla-prefill still wins.
2026-12-03 03:00:57 +01:00
Niko1221 6787e11a78 ling32 sycl: forward test option --kda-seq K (batches above K tokens take the chunk-parallel KDA and the expanded MLA), so the 12-token fixture prompt exercises the expanded prefill
Test-only: ling32_forward_test sets kda_seq_max_n and graph_max_n to K (the expanded MLA needs N above both).  A750, plain-loop mode, wide fixture: prefill of layer 2 differs from the decode figure (the expanded path ran), top-1 12 / 12, KL 4.15e-12 against 4.24e-12 of the absorbed control.  tools/fwd_exp_a750.sh runs the control and --mla-exp variants.
2026-12-03 03:00:56 +01:00
Niko1221 09e0e342c6 ling32 sycl: --mla-prefill expanded works on SYCL (Battlemage XMX); default off
Ling32Engine::init no longer switches the expanded-form MLA prefill off on SYCL when the device has XMX (mla_exp_ok); the conversion of the projection weights keeps buffers valid for models with other head dimensions. One line in ling32_engine.cu (the SYCL block of Ling32Engine::init).
2026-12-03 03:00:56 +01:00
Niko1221 aa1af8850e Merge f-ling32-prod (cd836c6264) into int-0225 2026-12-03 02:49:10 +01:00
Niko1221 cd836c6264 ling32 launcher: the NVIDIA 12 GB class takes chunk 2048 (class edge 11.5 GiB, by the card's own size, not the memory free)
L32-SMALL, RTX 5070 12 GB with the pool regrow: PCIe 5.0 prefill 4K / 16K / 32K 595 / 583 / 493 tok/s at chunk 256 against 915 / 1237 / 1134 at 2048, decode 38.8 against 39.4; PCIe 4.0 x4 (tier C)
187 / 335 / 350 against 284 / 669 / 777, decode 10.9 against 11.0.  A picture plus a 36K-token prompt at chunk 2048 loaded and answered with no out-of-memory (rc 0; the pool lent 640 slots, 2790 MiB, to the
prefill scratch and regrew them; peak 11.2 of 11.5 GiB).  The 8, 10 and 11 GB cards (2080 Ti, 1080 Ti, 3080 10G) stay at 256; only real 12 GB cards (3060 12G, 4070, 5070, 3080 12G) move.
ling32_fit.chunk_for / plan / advise take the card's own size (card_gib) where setup knows it, so a 12 GB card with the desktop holding a GiB or more still counts as 12 GB.  Tests: the class table and the card-size rule.
2026-12-03 02:48:59 +01:00
Niko1221 64e49101d5 Merge f-ling32-int (de6f7bb0d4): k=2 prefetch default for the tier B pool layout 2026-12-03 02:47:47 +01:00
Niko1221 137161c2b4 ling32 app row: the Intel 'no engine yet' note follows engine_exists (a shipped Intel engine has no such note); GUI Ling test updated 2026-12-03 02:42:08 +01:00
Niko1221 de6f7bb0d4 ling32 tier B pool layout: k=2 prefetch predictor by default
The pool layout (every card byte is a dynamic slot, no hot prefix) now plans lookahead_k = 2 instead of 4. The main program then loads and evaluates only the k=2 predictor (lookahead_ks bit 0) and the tier store prefetches from the k=2 list. The old layout (--tier-pool off) and tier C keep k=4.

Measured (quiet host, ABAB, plain decode, same job file, output ids identical on all 22 jobs against the k=4 arm and against plain):
- RTX 3090 (PCIe 4.0): k=2 54.3 against k=4 53.0 tok/s, +2.0 %.
- RTX 5090 (PCIe 5.0, 47 GB/s): k=2 110.2 / 110.3 / 110.1 against k=4 107.5 / 107.5 tok/s, +2.6 %.
- Recall of the true top-8 experts: k=2 64.6 %, k=4 54.0 %; the k=2 lead is 0.8 ms against 1.7 ms for k=4, and the better recall wins.

Env STRATA_L32_LA_KS and STRATA_L32_PF_K still override the choice. The tier planner test expects lookahead_k 2 for the pool layout.
2026-12-03 02:41:04 +01:00
Niko1221 d8f2977968 packaging: build_sycl_windows.py, the Windows Intel Arc package of the Qwen3.8-Flash-Next engine
Builds engine/sycl with icx (or takes a finished strata.exe), stages it with the Unified Runtime adapters (ur_*.dll, umf*.dll, loaded by name at run time),
lets package_engine.py bundle sycl9.dll, libhwloc, libmmd, svml and the Visual C++ runtime, then runs --verify, binary_deps.py and a minimal-PATH
smoke (PATH=System32, ONEAPI_ROOT empty). The Level Zero loader and compute runtime stay the PC's own (graphics driver).
2026-12-03 02:37:56 +01:00
Niko1221 9e721f487f Merge f-ling32-prod (18e2871647) into int-0225: SYCL_MTP_VERIFIED = True (coordinator decision) 2026-12-03 02:34:24 +01:00
Niko1221 18e2871647 ling32: MTP is on by default on Intel (SYCL_MTP_VERIFIED = True): --mtp-auto plus the adaptive controller, like every other backend
Evidence scope (L32-SYCL, 2026-12-03; keep this wording):
- verified on Intel: greedy spec == plain on the REAL model once (Arc Pro B70, tier C, chat_1, 30 tokens, forced K=4: ids identical, drafted 40 accepted 21), plus the A750 fixture legs (spec tier A / B / C
  including spans; the mtp_tier, spec_span, mtp_auto and kv_grow regressions pass).
- NOT verified: long outputs and more prompts with spec on; tier B on a RAM-rich B70 (the only place the controller will turn spec on: on the 32 GB-RAM devcloud2 box, tier C, a 5-row verify costs 233 ms against
  72.7 ms plain, and forced spec is slower there, 15.5 against 18.6 tok/s, so `auto` runs plain).
- So `auto` is safe in the sense that it falls back to plain wherever spec does not pay.  Coordinator decision: keep True; L32-SYCL runs 5+ prompts x 200 tokens at K=4 on the B70 by 10:00; if any prompt
  differs, flip it back to False before the 12:00 freeze (one word + the tests).

Tests: the Intel install writes the sidecar with mode auto; the "starts without MTP" notice is gone (shown again with the switch off).
2026-12-03 02:34:16 +01:00
Niko1221 e50073b7bc Merge f-ling32-int (acb0e4c3d5): L32-METAL alflb_route2w router 2026-12-03 02:25:42 +01:00
Niko1221 aa276479f5 settings register: regenerated after the f-ling32-prod 9dc46d3269 merge (read-line numbers only; no status or note changed) 2026-12-03 02:25:23 +01:00
Niko1221 3010ef3ad6 Merge f-ling32-prod (9dc46d3269) into int-0225 2026-12-03 02:25:09 +01:00
Niko1221 9dc46d3269 ling32: the Windows Intel route (Arc card in the hardware report, Ling and Inkling offered and installable, Qwen / Hy4 not offered until their Windows engines ship: per-family switches in intel_app); the oneAPI notice tests follow the checked-in licence texts; the one-word Intel picture-device fallback 2026-12-03 02:24:57 +01:00
Niko1221 3bdcefe4d2 Merge f-qfn-b70 (aa7379dac8) into int-0225
QFN on B70: Windows build of engine/sycl (icx, no oneMKL, own XMX dense GEMM), Windows free-RAM fix, Intel --spec 2 default for one Arc B-series card without a draft layer, opt-in --vram-reserve-floor-mib. Not taken: 1109ad7b3e (ESIMD GEMM on by default, not gated). Conflicts: docs/SETTINGS.md and terminal/data/settings-register.json (generated): three-way merge of names and hand-kept fields from both sides, regenerated (check clean, no empty status), docs/SETTINGS.md regenerated with --docs. Open gate for QFN-B70: B70 token-identity of the --spec 2 default against spec off on their 7-prompt set; if it fails they send a one-line commit reverting the default.
2026-12-03 02:14:43 +01:00
Niko1221 b3fb72323c ling32 sycl: expanded-form MLA prefill without joint_matrix_apply (the offline compiler crashes on it), 16-key projection groups, 32-row attention groups; compiler probe tools
joint_matrix_apply crashes ocloc / IGC on bmg_g31 in the projection and attention kernels (every use, also a trivial scale), so the kernels only fill, mad and store accumulators and do the combination of the main and cross products and the online-softmax rescale in plain code on stored tiles. Attention work-group is now 32 rows / 8 sub-groups (shared memory 59 KB, fits 64 KB devices), projection groups 16 keys. B70 (joint_matrix path): all cases of ling32_sy_mla_exp_test within 1.6e-6 of the absorbed original kernel (gate 2e-5 of max |ref|); 2048-token chunk at 16384 context, 32 heads: 283 ms per layer. devlink.sh / devlink2.sh / jm_probe.* are the seconds-long AOT crash checks used to find it.
2026-12-03 02:13:33 +01:00
Niko1221 acb0e4c3d5 merge f-ling32-metal 16d6f1ab35 (alflb_route2w) 2026-12-03 02:12:22 +01:00
Niko1221 1109ad7b3e sycl: the ESIMD dense GEMM on by default on Battlemage builds (STRATA_DENSE_GEMM_ESIMD=0 turns it off); 16 x 32 tile
Standalone bench, Arc Pro B70, bf16 in / fp32 out, 4096 tokens: the ESIMD kernel (2D block loads straight from global memory, the weights
as transposed 32-bit words = the VNNI-packed B operand, no SLM, no barriers) reaches 64-72 TFLOP/s on the GDN / QSA projection and
square shapes (2.4 ms for N=8192 K=2560, 71 TFLOP/s) against 29-31 for the packed-B SLM kernel and 22-25 with large-GRF mode; max
relative error against a double reference below 1e-5 on every shape. The tile is 16 rows x 32 columns per hardware thread (a 32 x 32 tile
is slower: register pressure); the prefetch two K steps ahead is kept. Shapes it does not take (N < 16, T < 32, K % 16 != 0, bases not
64-byte aligned, ldy % 4 != 0) fall back to the packed-B kernel. The register entry for STRATA_DENSE_GEMM_ESIMD moves to rollback.
2026-12-03 02:12:12 +01:00
Niko1221 16d6f1ab35 ling32-metal: alflb_route2w, the router for decode and verify rows with 1024 threads
The group selection is done by rank on 8 threads (the k-th kept group is the one
with k groups ahead of it: a higher score, or the same score and a lower index,
the order of the former serial loop) and the candidate ranks are counted by four
threads each over a quarter of the candidates (integer counts, any order is
exact). Used for up to 4 rows; L32_ROUTE_W=0 selects alflb_route2.

Profile: 7.5 -> 5.4 us per layer (alone). Interleaved A/B (5 pairs, ctx 131072):
1-row step 12.320 -> 12.227 ms (-0.75 %), faster in 5 of 5 pairs. Gates: the
teacher-forced logit files of the short set (17 prompts) and of long_16k_fp64
with the MTP sidecar are byte-identical with and without; only the gen.json
timing fields differ.
2026-12-03 02:12:10 +01:00
Niko1221 db65eb47be ling32: Intel pictures follow the engine's own vision= word (config keeps device auto, serve lifts the 1 MP cap on vision=gpu); SYCL_VISION_DEVICE is the one-word fallback to cpu 2026-12-03 02:11:53 +01:00
Niko1221 633631b7db Merge f-ling32-sycl (920badbe8a): SYCL port of prune_experts so strata-ling32 links on Intel 2026-12-03 02:11:30 +01:00
Niko1221 62c3c2ef23 ling32 sycl: prune_experts for --skip-tau (the int tip's engine calls it; the SYCL build did not link without it) 2026-12-03 02:05:02 +01:00
Niko1221 920badbe8a ling32 sycl: prune_experts for --skip-tau (the int tip's engine calls it; the SYCL build did not link without it) 2026-12-03 02:04:28 +01:00
Niko1221 bea9a1d2cb Merge f-ling32-prod (4bbee7b415) into int-0225
f-ling32-int 7c04fb2161 (Metal 1024-thread kernels, mla_qabs_d, opt-in --skip-tau) and the register statuses of the 15 Ling SYCL env names. Only conflict: docs/SETTINGS.md (generated): regenerated with tools/settings_register.py --docs; the register merged automatically, regenerated, check clean, no empty status.
2026-12-03 01:58:10 +01:00
Niko1221 4bbee7b415 Merge branch 'f-ling32-int' into f-ling32-prod (7c04fb2161: Metal 1024-thread kernels and mla_qabs_d, opt-in --skip-tau); register statuses for the SYCL names 2026-12-03 01:54:42 +01:00
Niko1221 86d41623d8 Merge f-ink-evmm-hip (f905383286): register entries for the COMPACT and HIP elastic names 2026-12-03 01:53:39 +01:00
Niko1221 aa7379dac8 settings register: STRATA_DENSE_XMX, STRATA_DENSE_GEMM_PK, STRATA_DENSE_GEMM_PLAIN, STRATA_DENSE_GEMM_ESIMD, and the regenerated docs/SETTINGS.md
The dense prompt GEMM switches of the Windows / B70 work (xmx_dense_gemm.dp.cpp, gemm.dp.cpp) get their register entries (status, owner, note);
the rest of the register diff is the scan's moved line numbers in generate.cpp. tools/settings_register.py --check passes and
tools/test_settings_register.py passes (8).
2026-12-03 01:53:06 +01:00
Niko1221 f905383286 Settings register: the HIP elastic pool settings (STRATA_INK_ELASTIC_HOST_GIB / _MULTI / _STAGE / _TEST_EVICT_MIB, STRATA_INK_GUARD_DEBUG, STRATA_INK_KV_FLOOR_MIB) and the COMPACT ones that were missing (STRATA_INK_ELASTIC_COMPACT, _COMPACT_MAX_CTX, _DRAFT_HOST_PCT, _MACRO_HOST); register regenerated, docs/SETTINGS.md regenerated
tools/settings_register.py --check passes, tools/test_settings_register.py 14 passed. The regeneration also refreshes the read line numbers of the existing entries.
2026-12-03 01:52:55 +01:00