1780 Commits
Author SHA1 Message Date
Niko1221 f73230dbdb Merge v0.2.27 (117c554a84) into main
origin/main carries the README-only commit 067c61cde9 that came after the
0.2.26 hotfix base; the 0.2.27 GUI release was cut from that base, and its
tag stays on 117c554a84 (every artifact embeds that commit). This merge makes
main a fast-forward of origin/main that contains the tag. The merge brings
nothing new in code: the only difference to 117c554a84 is the README change
from 067c61cde9.
2026-12-04 20:53:42 +01:00
Niko1221 117c554a84 settings register: the --loop help line is the one Loop sentence
The Terminal-notices commit replaced the --loop help in strata_cli/launch/cmd.py by qwen4_family.LOOP_WORDS (the sentence of the app's info popover), but the register still pinned the old "It has no effect while --effort is off" to that file, so settings_register.py --check and tools/test_settings_register.py (test_entries_are_whole_and_still_defined) failed. The where-entry for cmd.py now points at qwen4_family.LOOP_WORDS, which is in the file; the note quotes the new sentence instead of the old Loop description (the Loop file and the Effort-Off facts are kept); docs/SETTINGS.md is regenerated (--docs). settings_register.py --check: clean; tools/test_settings_register.py: 17 passed.
2026-12-04 18:52:11 +01:00
Niko1221 596f7f5339 Release stamp 0.2.27: product 0.2.26 -> 0.2.27 (app, host, desktop, Terminal), Control 0.1.74 -> 0.1.74.2
0.2.27 is the GUI release after 0.2.26 (Docker image build, vision install fix, Models page,
Windows VRAM reserve): the owner chose a new app version so that the in-app updater offers it
to every 0.2.26 user (Tauri compares strict semver).  Control follows the toolkit's hotfix rule
(Control is the engine version plus one hotfix part): 0.1.74.2, because the Control-only feed
update on v0.2.26 took 0.1.74.1; version_key ranks 0.1.74.2 above 0.1.74.1, so every install
takes it.  Every engine package stays 0.1.74 (the files of v0.2.26, carried by the feed).

Files: app/desktop package.json, Cargo.toml, Cargo.lock; app/host package.json,
package-lock.json, SettingsUpdates.tsx, tests/qa1-storage.test.mjs; terminal/strata_cli
PRODUCT_VERSION and test_tui2_023_versions.py; AGENTS.md; bug_report.yml; engine/CMakeLists.txt
(the project version is Control's); docs/data/release.json (tag v0.2.27, installer and Control
asset names) and the pages tools/release_manifest.py --write and capability_table.py --write
rewrite from it.  release_manifest --check and capability_table --check pass.
2026-12-04 18:25:22 +01:00
Niko1221 067c61cde9 README: Qwen4-35B-A3B first in Models, Ornith folded into the Qwen3.6 entry, supporters refreshed
Models: a new Qwen4-35B-A3B entry at the top (Strata Compact, Balanced and Ultra with their sizes and the card each is made for, the Unsloth choices, the link to the Strata packs on Hugging Face). The separate Ornith-1.5-35B-A3B entry is now part of the Qwen3.6-35B-A3B entry. README.md and the 7 translations.

Supporters: refreshed from the current public GitHub sponsors in README.md, SUPPORTERS.md and the 7 translations. Adds monta42, sudocarlos, dacendale, rbravo7054, chaitanyaprem, kazoob and ProPatte; removes bisonbet.
2026-12-04 16:59:15 +01:00
Niko1221 fe4fec3ac4 Qwen4-35B-A3B is released in 0.2.26: qwen4-sources.json "released": true
The one word data/qwen4-sources.json "released" is the whole release switch:
strata_control/qwen4_family.py released() / sources() / offered() read it, and
setup.py (CLI and TUI model menu), tools/strata_mcp.py (the model list the app
takes from Control) and the app test them; false hid Qwen4-35B-A3B from every
list (found on a MacBook Air M4 with the 0.2.26 app).  True puts the family in
every model list and makes the shipped Hugging Face source count: the repo
strata-engine/Qwen4-35B-A3B-Strata is public.

- terminal/data/qwen4-sources.json: released true, the note says what true and
  false do and that the repo is public.
- test_qwen4_fit.py, test_setup_qwen4.py: the shipped file is released, the
  shipped source is offered by default; the unreleased case is pinned with a
  file of its own.
- terminal/data/settings-register.json and docs/SETTINGS.md (generated): the
  qwen4_source note no longer says the model is not published.
- engine/ is unchanged against H11 (tree 5111bcf367).
2026-12-04 14:44:16 +01:00
Niko1221 44ae004419 docs/data/release.json: list the strata-q4-lite shape packages in the 0.2.26 assets
The Qwen4 engine is the shape component strata-q4-lite (one component, two programs: the q4_lite strata of the GGUF builds and strata-q4-lite of the .strata tiers). Its packages are named strata-q4-lite-0.1.74-<platform>-<backend>[-<variant>].tar.gz by package_engine.py --shape q4_lite. Rows added next to the strata-engine rows: Windows CUDA 13 / 12 and HIP rdna2 / rdna3 / rx9070, Linux CUDA 13 / 12 and HIP halo / rx6000 / rx7900 / rx9070, linux-aarch64 CUDA 13, macOS Metal. No SYCL row (not in this release). Docs and data only; release_manifest --check and capability_table --check pass.
2026-12-04 12:39:23 +01:00
Niko1221 4b13772d7b Release stamp 0.2.26: product 0.2.25 -> 0.2.26 (app, host, desktop, Terminal), engine 0.1.73 -> 0.1.74 (the one version of every engine and Control)
The coordinator's version decision: engine 0.1.74 for strata-engine, strata-inkling, strata-ling32, strata-q4-lite and Control, as 0.2.25 did with 0.1.73 (the DeepSeek packages stay at 0.1.59). Byte-exact stamp (tools: the
count of every replacement is checked): app/desktop/package.json, src-tauri/Cargo.toml and Cargo.lock, app/host/package.json and package-lock.json, SettingsUpdates.tsx, terminal/strata_cli PRODUCT_VERSION, the version
tests, AGENTS.md, the bug report template, engine/CMakeLists.txt (project VERSION: strata-q4-lite --version reads it), engine/metal/CMakeLists.txt, the Inkling version strings, tools/packaging/build_hip_linux.sh PKGVER;
docs/data/release.json (tag v0.2.26, published 2026-12-04, the asset names: the packages of the 0.2.26 assets that are not built yet are listed by the release lane when they exist) and the version lines and installer
file names of the current pages by `tools/release_manifest.py --write`. `release_manifest --check`, the capability table, the bench index, the link check and the settings register pass. No code change.
2026-12-04 12:25:12 +01:00
Niko1221 36020ad7f8 Qwen4: Loop (2 steps) end to end for the Unsloth UD-Q4_K_XL GGUF build (owner-approved post-freeze fix)
The Loop switch, the table (gguf cuda and metal ready, gguf hip coming), setup, launch,
catalog row and the app already carried the GGUF build. This commit fixes and adds:

- --loop-direct-t1 never reaches an engine argv (setup, adopt, launcher, serve, app host):
  the qwen4exp strata engine rejects it (exit 2); it is the Python server's own option.
  The run config now carries loop_direct_t1: true while Loop is on (setup, adopt, launch,
  app Load), serve also derives it from the Loop key for the GGUF build, and an older
  config with the flag in its arguments gets it taken out at the start.
- Loop on turns the draft layer (MTP) off on the GGUF build and on the standalone
  strata-q4-lite (plain --spec 2 where the pack needs it); a Mac .strata tier keeps MTP with
  Loop (measured). The sidecar key stays in the config, so Loop off brings it back. Setup,
  serve and the Models panel (new string q436, ten languages; the MTP select shows Off and
  disabled) say so.
- Tests: serve/test_qwen4_kind.py test_no_engine_argv_ever_has_loop_direct_t1_through_the_real_engine_args_path,
  test_gguf_loop_on_starts_without_the_draft_layer_and_says_so_once; setup GGUF Loop on/off
  and per backend; Mac setup and launch config key; host table states and argv.
- settings register and docs/SETTINGS.md say the real status instead of coming soon.
2026-12-04 12:16:19 +01:00
Niko1221 4fb9ce94f5 settings register: STRATA_Q4_OPT (rollback), the register regenerated, docs/SETTINGS.md regenerated
The merge of f-0226-q4-opt added the STRATA_Q4_OPT run-time kill switch (the qwen4-opt speed-ups of a q4_lite CUDA build, =0 turns them off) without a register entry. The register is regenerated
(`settings_register.py`: the file:line references moved), the entry is filled by hand (status rollback, owner q4lite, note), docs/SETTINGS.md is regenerated (`--docs`). `--check` exits 0,
tools/test_settings_register.py 17 passed, no status lost or changed (cmp_status).
2026-12-04 11:36:26 +01:00
Niko1221 da547c7f53 Merge f-0226-q4-prs (11cdd7885f): the community branch: #7774 new commits, #7784, the bench PRs, seankoji's unfused QSA prefill rows
#7774 new commits (saatvik-viniak: DFlash2 own pack / tap + --draft-tap, the gfx12 q.k WMMA pin, make_profile --n-layer, docs), seankoji's unfused QSA prefill rows from the geometry, smashdog's rdna_gr (already
on the tip), #7784, the bench PRs #7778 #7780 #7785 #7789 #7799 #7800 #7802 (without #7802's agent install guide, which walks a PR-head source checkout, not the 0.2.26 app / Terminal flow), the bench index rebuilt,
and the LF conversion of #7778's CRLF bench folder (ours); #7790 triage only, nothing taken. All contributor commits keep their authorship, our commits have no trailers. Conflicts the lane resolved: engine/src/core/verify.cpp
(Loop tap_here + the PR's !tap_block_ guard, both kept), strata_tokenizer.py / test_strata_tokenizer.py / test_qwen4_intake.py (our qwen4 pre rule and the qwen5 sentinel kept), docs. Shared engine files: core/{family_layout.hpp,
verify.hpp, tap_plan.hpp (new), verify.cpp}, prefill/{kernels.hpp, qsa_query_rows.hpp (new), kernels.cu, qsa_nr_parity.cu}, kernels/cuda/qsa_prompt_attn.cu (gfx12 only), program/generate.cpp, cmake. Lane identity (boston sm_86,
Flash-Next default geometry `strata`, 04a8b197a1 vs 11cdd7885f): host objects identical 71, different 2 (generate.cpp.o --draft-tap parse, verify.cpp.o tap plan); SASS of kv_q8 / qsa_decode_attn / qsa_pattn /
qsa_prompt_attn / rdna_gr identical; prefill/kernels.cu 64 of 66 identical (split_q_kernel and gate_attn_kernel: seankoji's change, same arithmetic for 24 heads). Golden (RTX 3090, UD-Q4_K_XL, q4_lite sm_86, 36 probes):
branch 0.97396 / 0.015646 (repeat 0.97535 / 0.015268), baseline tip 04a8b197a1 0.97535 / 0.015879: inside the run-to-run range of one engine (about 0.0014 top-1 and 0.0004 KL). HIP compile gfx1200 / 1201 and
gfx1100 / 1101 / 1102 rc 0.
2026-12-04 11:20:41 +01:00
Niko1221 c79e8b96f3 docs: SETTINGS.md regenerated after the STRATA_Q4_NO_CHUNK register entry (the section count 195 -> 196)
`settings_register.py --docs` on the merged tree changes one line: "Switches that go back to earlier behaviour (196)". No other change.
2026-12-04 11:08:14 +01:00
Niko1221 b54d27f8f6 q4lite: cards below compute capability 7 (Pascal) run the prompt through the GDN window kernels instead of the 64-token chunk scan (it needs more than 48 KB of shared memory per block); STRATA_Q4_NO_CHUNK forces that path anywhere (registered) 2026-12-04 11:02:58 +01:00
Niko1221 a33b2d2b8c Line endings: the PR 7778 benchmark folder (README.md, results.json) to LF
The contributor's files came in with CRLF; this is our own conversion commit, the content is otherwise unchanged.
2026-12-04 10:26:08 +01:00
Niko1221 925430650a Rebuild the bench results index (tools/bench_results_index.py) for the community Qwen4-35B-A3B benchmark folders 2026-12-04 10:06:00 +01:00
Niko1221 08e7731147 Merge community PR #7802 (Adam Jenner): RTX 3090 Qwen4-35B-A3B UD-Q4_K_M benchmark, without the agent install guide
Adds the contributor's docs/bench-results folder and its docs/COMMUNITY_BENCHMARKS.md entry with authorship unchanged. docs/QWEN4_35B_AGENT_GUIDE.md is left out of the tree: it walks a source checkout of the PR #7774 head (git fetch refs/pull/7774/head, hand-run split, pack and profile steps, cmake by hand) instead of the 0.2.26 app and Terminal install flow, and tells readers main does not run the model.
2026-12-04 10:05:54 +01:00
Niko1221 3acb85a917 Merge community PR #7800 (Zuzik01): Radeon VII gfx906 Qwen4-35B-A3B and Flash-Next baseline benchmarks
Adds the contributor's docs/bench-results folders with authorship unchanged; the docs/COMMUNITY_BENCHMARKS.md list keeps both PR #7799's and this PR's entries.
2026-12-04 10:05:45 +01:00
Niko1221 1c0a31ea67 Merge community PR #7799 (noahark): Qwen4-35B-A3B Q8 on 3x 32 GB Tesla benchmark
Adds the contributor's docs/bench-results folders and the docs/COMMUNITY_BENCHMARKS.md lines with authorship unchanged.
2026-12-04 10:05:40 +01:00
Niko1221 c0ab7f93bd Merge community PR #7789 (Hakan KILICASLAN): RTX 2080 Ti Qwen4-35B-A3B Q4_K_M benchmark
Adds the contributor's docs/bench-results folder with authorship unchanged.
2026-12-04 10:05:37 +01:00
Niko1221 ac81749cdc Merge community PR #7785 (Zachary Blasczyk): RTX 5090 Qwen4-35B-A3B UD-Q4_K_XL raw and MTP benchmark
Adds the contributor's docs/bench-results folder with authorship unchanged. The PR's hand edit of docs/bench-results/README.md is dropped here; the index is regenerated by tools/bench_results_index.py in its own commit.
2026-12-04 10:05:35 +01:00
Niko1221 91cdc68bf1 Merge community PR #7780 (cxfcxf): RTX 3090 Qwen4-35B-A3B UD-Q4_K_XL benchmark
Adds the contributor's docs/bench-results folder with authorship unchanged.
2026-12-04 10:05:31 +01:00
Niko1221 6f90cd9628 Merge community PR #7778 (Nayeem Khan): RTX 4090 Qwen4-35B-A3B IQ3_XXS benchmark
Adds the contributor's docs/bench-results folder with authorship unchanged; the bench index is rebuilt in its own commit after the last benchmark PR.
2026-12-04 10:05:28 +01:00
Niko1221 ad1bd480ce Merge community PR #7774 new commits (22a9714c9b..ac85058cad, saatvik-viniak)
Takes bd90b8c526 (drafting: a run config's own DFlash2 pack and tap, --draft-tap block-input), ffec4241bd (gfx12 prompt attention: pin the q.k WMMA before the trimmed store), b1f68b4beb and ac85058cad (make_profile --n-layer for the 40x256 q4_lite profile) and the two docs commits (16x128K profile, mixed workload matrix). The contributor's commits and authorship are unchanged.

One conflict in engine/src/core/verify.cpp: the Loop branch's tap_here expression (STRATA_WITH_LOOP) and the PR's block-input tap style meet at the same lines. The merge keeps the Loop code and adds the PR's !tap_block_ guard to both the Loop and the non-Loop tap condition, so the output-tap path is skipped exactly when the block-input tap (verify.cpp ~2075) is active.
2026-12-04 10:03:44 +01:00
Adam Jenner 8cae1bccb7 docs: Qwen4-35B-A3B community bench (RTX 3090) + agent install guide
Adds docs/bench-results/2026-12-04-community-rtx-3090-qwen4-35b-a3b (speed-only suite-1 bench: 143.65 tok/s decode with MTP drafter, Unsloth UD-Q4_K_M, two-shard split, 262144 context), the matching Community reports entry, and docs/QWEN4_35B_AGENT_GUIDE.md — an eight-step agent-first install/verify guide for running Qwen4-35B-A3B from a PR #7774 checkout. Docs only; no engine or tooling changes. The Qwen4 code itself is PR #7774, not proposed here.
2026-12-04 19:49:58 +11:00
Niko1221 9ac2b10705 Merge commit '1f18a1386f' into f-0226-q4-kv
# Conflicts:
#	engine/src/q4lite/q4_engine.hpp
#	engine/src/q4lite/q4_main.cpp
2026-12-04 09:47:51 +01:00
Niko1221 7e301a3850 Qwen4 KV formats: docs paragraph and the measurement scripts (engine/tests/qwen4/kv) 2026-12-04 09:46:14 +01:00
Niko1221 da47a6cfb9 settings register: regenerated on the merged tree (the prefill names keep their status, owner and note) 2026-12-04 09:39:21 +01:00
Niko1221 8d3f6e511c Merge f-0226-q4-prefill (c42156a88e) into f-0226-q4-hip 2026-12-04 09:33:32 +01:00
Niko1221 c8f52ad60e Merge f-0226-q4-small (ef587884ea): Pascal sm_61 INT8 expert tiles (PR 7775), Volta sm_70 kernels and defaults (PR 7765), the register entry
b569fd723b (Codex): larger INT8 expert tiles on sm_61, opt-in STRATA_I8_PASCAL_GRID=1. 92879c33de (Xavier Port Builder): Volta (sm_70) kernels and defaults also for sm_72 (Jetson Xavier).
ef587884ea: settings register + docs/SETTINGS.md for STRATA_I8_PASCAL_GRID. Contributors keep authorship, no trailers. For every other card the INT8 tile choice is the same loop as before.
2026-12-04 09:10:42 +01:00
Niko1221 80851089b4 Merge f-0226-q4-loop-all (15e457cd83): the Qwen4 Loop guarded behind STRATA_WITH_LOOP, the Metal Loop, the split-engine loop keys
The looped-core code (loop adapter, verify / prefill / generate / session / conversation state) is compiled only into the q4_lite geometry (STRATA_WITH_LOOP, guard commit 1b0e6a2ba5); the default
Flash-Next geometry builds the same host objects as before (73 of 73 byte-identical on CUDA sm_86). Metal Loop: community PR #7776 (hotocoo, f3eb04075b + 2 commits kept) plus the owner's
strata_dual_coda_loop_v1 file (6b595a9fb1) and the CUDA / Metal side by side (57954faf3a); q4_lite on Metal builds, golden Loop OFF top-1 0.97622 / KL 0.015715, Loop ON T=2 0.97760 / 0.015779.
StrataEngine.sampling_keys no longer sends loop_passes / loop_cd_omega / loop_cd_thinking to the all-cards split engine (15e457cd83); test_split_gen_keys pins it.
2026-12-04 09:08:27 +01:00
Niko1221 e79ce51724 Settings register: status, owner and note of STRATA_Q4_HIP_NO_CHUNK and STRATA_Q4_TC_MIN_N
The two names of the Q4-HIP lane were registered without a status (the status test failed). STRATA_Q4_HIP_NO_CHUNK: rollback (sends every prompt token through the window kernels instead of the FP32 chunk scan);
STRATA_Q4_TC_MIN_N: rollback (the batch size from which HIP gfx11 / gfx12 prompt batches use Ling's WMMA trunk GEMM, default 16; 0 turns it off). docs/SETTINGS.md regenerated.
2026-12-04 08:47:32 +01:00
Zuzik01 2bfec51567 community benchmark: Radeon VII 16 GB (gfx906) / Qwen4-35B-A3B UD-IQ3_XXS and Qwen3.8-Flash-Next IQ3_XXS baseline 2026-12-04 10:38:34 +03:00
noahark d75f668213 bench: Qwen4-35B-A3B Q8 on 3x 32GB Tesla (2x PG500-216 + V100), PR #7774 engine
Standard suite (suite 1, 3 runs, thinking off) on two forms of the PR #7774
q4_lite engine (0.1.73, sm_70 source build), Unsloth UD-Q8_K_XL via
qwen4_split_gguf.py + iq_pack.py, PLE shard 2, MTP via mtp_qwen4_rt.py:

- 2x PG500-216 (NUMA-local pair, V100 idle): chat 104.5, 4K 2312.9,
  16K 3620.6, agent 112.5 tok/s (cache 70.6%)
- 3 cards, even layer split 13/14/13: chat 105.3, 4K 2182.2, 16K 4161.3,
  agent 110.5 tok/s (experts 10240/10240 resident)

Also recorded (probe harness, thinking on): single 32GB card forms
(PG500 101.6/88.8, V100 85.2/94.8 tok/s), a 3-replicated-instance farm
with --ple-io direct (Windows working-set quota blocks 3x PLE RAM locks,
error 1453), MTP acceptance 33-51%, and a llama.cpp b12973 comparison
(51 tok/s on the same cards).
2026-12-04 15:38:19 +08:00
Niko1221 b0c4b5deb9 Merge int-0226 (6795dc829a) into the Loop branch 2026-12-04 08:38:00 +01:00
Niko1221 ce5f37a4fc Merge f-0226-q4-ship (7f2b94d2e8): strata-q4-lite --serve (the Ling line protocol) and the expert tiering
strata-q4-lite --serve: the Ling line protocol (INFO / READY / GEN -> PP T STAT DONE, STOP, QUIT), prefix resume, sampling (temperature, top_p, top_k, seed, min_p, penalties), token ids in and out (the app tokenizes);
the not-yet-built flags --mtp --vision --loop* --spec* and the aliases --native --max-context --gpu are accepted and ignored. The expert tiering: a VRAM pool and pinned host slabs read in place (slab_ptrs) with
--vram-budget, --expert-frac, --vram-reserve, --embed-host and --expert-order; the default stays all-resident. Merged with f-0226-q4-core (the graph-attention interface). engine/src/q4lite and engine/tests/q4lite only.
2026-12-04 08:35:57 +01:00
Niko1221 26a4034b87 Merge f-0226-q4-loop-metal (6b595a9fb1): the Metal Loop (#7776 and the dual-coda file) next to the CUDA Loop 2026-12-04 08:33:14 +01:00
Niko1221 af413dbf8f qwen4: Loop readiness per source and per backend (one table, all coming)
- qwen4_family.LOOP_READY: (strata | gguf) x (cuda | hip | metal), all False; loop_source(build), loop_ready(build, backend), loop_coming_note. Loop runs only on the qwen4exp engine, so only (gguf, cuda) is expected to flip when Q4-LOOP merges; the Compact / Balanced / Ultra .strata tiers run on the standalone strata-q4-lite host (no Loop yet) and Metal / HIP Loop are not done.
- the same table mirrored once in app/host/server/qwen4.mjs and app/host/src/lib/qwen4.ts, pinned together by a host test.
- setup, launcher (adopt, modelstate, runner, settings), serve, strata_mcp and the app use loop_ready(build, backend); strata launch --loop on keeps the choice and says coming for that model and card.
- LOOP_ENGINE_READY and loop_word are gone.
2026-12-04 08:20:08 +01:00
Saatvik Viniak b1f68b4beb make_profile: --n-layer for the 40 x 256 q4_lite profile 2026-12-04 01:18:16 -06:00
Niko1221 282665f256 q4lite: routed experts through the KEXP kernels (codes 1..8 per expert, fused / grouped paths)
moe_routed now calls strata::q4lite::gpu (q4_moe.cu): the fused single-token kernel for N = 1, the grouped-by-expert kernels from N = 16 tokens,
the per-pair kernels otherwise. q4_moe.cu / q4_moe_cpu.cpp added to the CMake targets.
2026-12-04 08:17:43 +01:00
Niko1221 9df49c4209 Settings register: the six STRATA_Q4_* names of strata-q4-lite, and the regenerated read lines
The speed work of strata-q4-lite reads STRATA_Q4_FUSED, STRATA_Q4_GRAPH, STRATA_Q4_NOFUSE, STRATA_Q4_NO_PACK, STRATA_Q4_ONE_STREAM and STRATA_Q4_PROFILE, which the register did not list
(settings_register.py --check failed, the status test too). Registered with status, owner and note (research: FUSED, PROFILE; rollback: GRAPH, NOFUSE, NO_PACK, ONE_STREAM);
settings_register.py regenerated the read lines of the other entries (the engine files moved) and docs/SETTINGS.md. No status lost or changed.
2026-12-04 08:16:22 +01:00
Niko1221 27adf14a15 Merge f-0226-q4-loop (59d682c535): the Qwen4 Loop (2 steps) on the qwen4exp engine, CUDA, opt-in
The owner's Qwen4-35B-A3B-Loop.safetensors (strata_dual_coda_loop_v1) as an opt-in loop in the qwen4exp engine at q4_lite: --loop-adapter FILE --loop-passes 2|3 --loop-coda universal|compact. Default off; without
--loop-adapter no loop code runs. The math is pinned to the owner's trainer (03_train_dual_coda_loop.py). Scope: this Loop runs on the qwen4exp engine (the Unsloth GGUF / UD-Q4_K_XL path) with CUDA only; the owner's
.strata builds run on the standalone strata-q4-lite host, which has no Loop yet; Metal and HIP Loop are separate branches. History: the community PR #7673 (Dave3991 / Alexey Fateev, CUDA) with the contributors'
commits kept, the loader and user_args (--loop-coda is a kept user flag), the Q4-GGUF merge and the clamp.
2026-12-04 08:12:00 +01:00
Niko1221 7c8efa80e4 qwen4: the real Loop flags (--loop-adapter, --loop-passes 2, --loop-coda universal|compact, --loop-direct-t1), still behind LOOP_ENGINE_READY False
- one table in qwen4_family (ENGINE_FILE_FLAGS loop, ENGINE_LOOP_STEPS_FLAG, coda and direct-t1 flags, loop_coda(build): compact only for the Compact .strata build, universal for Balanced, Ultra and UD-Q4_K_XL); the same four flags mirrored once in app/host/server/qwen4.mjs.
- setup, launcher, serve and the app strip all four when Loop is off or coming, add them once when on; a person's own --loop-* flags are kept.
- help text: about 40 percent fewer words per second while writing, prompt reading about half as fast, a little closer to the original model, no effect while Effort is Off; ten languages.
- flip LOOP_ENGINE_READY in qwen4_family.py, qwen4.mjs and qwen4.ts when the Q4-LOOP engine is merged.
2026-12-04 08:07:18 +01:00
Niko1221 acf4556c7d Merge refs/pr/7776 (f3eb04075b, hotocoo): Metal --loop-adapter, the looped recurrent core on the Metal decode window
# Conflicts:
#	engine/metal/src/engine/window.cpp
2026-12-04 07:56:57 +01:00
Niko1221 beb8e2f794 qwen4: Loop (2 steps) is visible but "coming" until Q4-LOOP's engine flags land (one switch, LOOP_ENGINE_READY)
- qwen4_family.LOOP_ENGINE_READY False, mirrored once in app/host/server/qwen4.mjs and src/lib/qwen4.ts, pinned together by a host test; flip it to True when the Loop flags are in ENGINE_FILE_FLAGS / ENGINE_LOOP_STEPS_FLAG.
- Terminal: --loop on in setup and strata launch warns once and behaves as off (no qwen4_loop key, no flags, no Loop download); register and help say coming; the fit row reports loop_available false; serve strips an old qwen4_loop key with one log line.
- App: the option is disabled and labelled "Loop (2 steps) - coming soon" in the Models panel and Settings; Download and Load never send it on; strings q423 and q424 in all ten languages.
- launcher notices: the Qwen4 import is before its try block, so the notices are no longer swallowed.
- tests run in both states.
2026-12-04 07:52:05 +01:00
Hakan KILIÇASLAN 164a936c6d [Benchmark] RTX 2080 Ti / Qwen4-35B-A3B Q4_K_M (#7774 engine) / Community
One 2080 Ti (11 GiB, sm_75) on WSL2 with 110 GiB of RAM, engine built from the head of #7774 for sm_75, ggml-org Q4_K_M prepared with docs/QWEN4_35B.md.

Chat decode 90.4 tok/s (75.7-92.9, median of 9), agent decode 98.8 tok/s, 4K/16K prompt 1634.7/1739.2 tok/s, first token 0.43 s. 2299 of 10240 experts in VRAM (expert-cache hit 80.5-87.5%), MTP spec 2. spec 4 measured slower here (77.0 tok/s). Speed only; no parity test.
2026-12-04 09:43:35 +03:00
Saatvik Viniak bd90b8c526 drafting: a run config's own DFlash2 pack and tap; --draft-tap block-input
A run config may now name its own DFlash2 drafter instead of the pinned
incoai/Flash-Next packs: "draft_model": "<path>", or
"dflash2": {"pack": ..., "family": ..., "tap": "block-input"}.

- supported_model() takes a config-named pack and lifts the model-family
  gate for that config only; pack_ready()/drafter_ready() check that exact
  file (a whole DF2P v1 pack: magic, version, an index whose tensors lie
  inside the file, and its own size + SHA-256 kept in a .ok marker); nothing
  is fetched, tuned, converted or replaced for it.  Decision.pack reaches
  decide()/apply() and an explicit --draft-model in user_args is the same
  assertion.  A config without the keys keeps the pinned flow byte-identical.
- "tap": "block-input" (or "draft_tap") adds the engine's new
  --draft-tap block-input.  The pinned packs read each target layer's
  completed output (mean of the hc streams); the RadixArk/Qwen4-DFlash2
  checkpoint and SGLang's DFLASH taps read the NEXT layer's input, after the
  hyper-connection mix and per-stream norm, before attention (vLLM captures
  it at layer+1).
- engine: core/tap_plan.hpp maps a pack's target ids to the tapped layer for
  both styles (count, per-stage share of a layer split, slot0), with a
  CPU-only test.  Verifier::set_taps(layers, block_input) captures the block
  input from the window's mixed buffer in pre() and keeps the completed-output
  tap unchanged in post(); generate.cpp parses --draft-tap output|block-input,
  refuses block-input on Metal (its window writes output taps), and ends a
  start whose pack cannot be served in block-input style rather than let the
  drafter read a short tap row.  Default unchanged.

Tests: terminal/tests/terminal/test_drafting_custom_pack.py (new),
test_drafting_pin.py now uses a whole DF2P pack, engine tap_plan_test.
Engine built with -DCMAKE_CUDA_ARCHITECTURES=70 -DSTRATA_GEOMETRY=q4_lite
(sm_70, CUDA 12.6).
2026-12-04 00:39:17 -06:00
Niko1221 2ac61e9925 Merge f-0226-q4-gguf (ffa0fc8516): Qwen4-35B-A3B from the Unsloth GGUF (UD-Q4_K_XL) on the qwen4exp engine at q4_lite (community PRs #7774 and #7779)
Community PR #7774 (saatvik-viniak): real Qwen4-35B-A3B runs on the Flash-Next qwen4exp engine at -DSTRATA_GEOMETRY=q4_lite: a 41-block file with the trunk = block_count - nextn_predict_layers, the fused tensors
split by terminal/tools/qwen4_split_gguf.py, the tokenizer pre=qwen4, the qsa_pattn G from the geometry, the PLE table in the Unsloth shard 2, the published MTP sidecar through mtp_qwen4_rt.py. Community PR #7779
(IronicDeGawd): mtp_rt reads its sizes from the draft layer's tensors. The contributors' commits and authorship are unchanged. Ours (c3fefe0caa): the in-file MTP tail read, the MTP mismatch check removal and the
qsa_pattn scalar path apply only where the compiled shape has n_mtp_layers > 0 (q4_lite); Flash-Next and the other shapes keep their old code and the float4 loads at G=12 (gguf_reader.hpp, family_layout.hpp,
qsa_pattn.cu). The five V100 result folders and docs/QWEN4_35B.md come with the PR; the bench results index is rebuilt.
2026-12-04 07:27:32 +01:00
Niko1221 ffa0fc8516 bench: rebuild the results index for the five Qwen4-35B-A3B V100 result folders 2026-12-04 07:27:02 +01:00
Niko1221 ef587884ea settings register: STRATA_I8_PASCAL_GRID (opt-in, kernels), the new name read by the sm_61 expert tiles of PR 7775
tools/settings_register.py --check exits 0; docs/SETTINGS.md regenerated.
2026-12-04 07:24:11 +01:00
Saatvik Viniak 0d58d48e8c docs: Qwen4 16-slot mixed workload matrix
Even mix (8 writers + 8 readers): writers 35.1-35.9 tok/s each (above the 30.6-33.4 all-decode case), readers
5.2-6.1K tok/s each.  4+12: 78-80 tok/s per writer.  15+1 and 14+2 measured too; the serialized read path plus
pipelined decode keeps writers whole while readers churn.
2026-12-04 00:13:55 -06:00
Niko1221 ead77d8850 qwen4: setup installs the UD-Q4_K_XL build, fetches and converts the tokenizer, default Effort is high
- setup.py: the fourth build (Unsloth GGUF: split tool, iq_pack, MTP rt, files provisional), tokenizer files pinned from the HF tokenizer/ folder (qwen35 rule), default Effort follows qwen4_family.DEFAULT_EFFORT; bare --model UD-Q4_K_XL stays Flash-Next on a Mac.
- strata_mcp: GGUF build rows, fit and plan.
- qwen4_family: tokenizer pins, DEFAULT_EFFORT high, Effort template map.
2026-12-04 07:07:09 +01:00