[PR #4119] [CLOSED] [Engine] Opt-in two-pass QSA prompt selection: 3xTF32 only near the top-k cut-off, the same cells (256K prompt read +5.2%) #4907

Closed
opened 2026-11-07 16:31:16 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/4119
Author: @bitaccesscomau
Created: 10/25/2026
Status: ❌ Closed

Base: main ← Head: pr/qsa-two-pass


📝 Commits (3)

  • b6b01f0 qsa select: STRATA_SELECT_TWO_PASS scores prompt blocks in single-pass TF32 with a proven bound
  • 0e23327 qsa select: a set STRATA_SELECT_TWO_PASS says once where the two-pass scorer cannot run; test
  • a90d33c Merge branch 'main' into pr/qsa-two-pass

📊 Changes

11 files changed (+1861 additions, -2 deletions)

View changed files

📝 CMakeLists.txt (+18 -0)
📝 docs/DETAILS.md (+12 -0)
📝 include/strata/kernels/qsa_select.hpp (+29 -0)
➕ include/strata/kernels/qsa_two_pass.hpp (+141 -0)
➕ include/strata/kernels/qsa_two_pass_status.hpp (+41 -0)
📝 src/kernels/cuda/qsa_select.cu (+762 -0)
➕ src/kernels/qsa_two_pass_parity.cpp (+224 -0)
📝 src/prefill/prefill.cpp (+109 -2)
📝 sycl/src/prefill/prefill.cpp (+3 -0)
➕ tests/prefill/qsa_two_pass_status_test.cpp (+80 -0)
➕ tests/prefill/qsa_two_pass_test.cpp (+442 -0)

📄 Description

Problem and result

In an earlier profile a cold 256K prompt on an RTX 3090 spent about 13% of its read in the QSA selection
(STRATA_PREFILL_TIMING=1, v0.2.4.1 with other settings: qsa select 17.4 s of a 136.3 s GPU timeline), about 10 s of
it in the block scores. The prompt path's tensor-core scorer qsa_block_scores_tc (sm_80+) computes every block score of
every query in 3xTF32, 48 m16n8k8 MMAs per indexer head and block (a 256-query call at 256K takes 1.90 ms), although
only the blocks near each query's top-k cut-off need that precision.

With STRATA_SELECT_TWO_PASS=1 (off by default, read once), a prompt call scores every block once in single-pass TF32
(16 MMAs per head), bounds per block how far that score can be from today's 3xTF32 score, and scores again, with
today's 3xTF32 arithmetic and bit for bit, only the blocks whose bound reaches the cut-off (on average 50 to 107 blocks
per query at 32K to 256K, 0.2% to 1.4% of the blocks). qsa_block_topk then returns exactly today's cells in today's
order, ties included, so the answer does not change. With the variable unset the selection makes today's calls in
today's order.

Measured on v0.2.6 (4b9e05a2, main at the time) on one RTX 3090 at the release defaults, the same binary with the
switch off and on, 2 pairs of 2 runs: the 256K prompt read goes from 1,887 to 1,984 tokens/s (+5.2%; the four run ratios
are 1.047 to 1.055), 128K +2.2%, 32K +0.2% (0.994 to 1.009); decode stays within the spread of the runs (tier means
-1.0% to +0.4%). Output is byte-identical to that base at 1K, 32K, 128K and 256K with the switch off and on, and the
switch's own check finds 0 queries with other cells out of 1,523,556 at 128K and 3,046,896 at 256K. An earlier 4-pair
run on v0.2.4.1 with other settings gave +4.7% at 256K.

Rebased onto v0.2.8 (870aedd9). Where the two-pass scorer cannot run (HIP, Metal and SYCL builds, a card below sm_80
or STRATA_QSA_WARP, the layer-major prompt path), a set switch now prints one line saying it is not used there,
instead of nothing. On the rebased tree the replies are byte-identical to v0.2.8 at 1K to 128K with the switch unset and
set, and the switch's check finds 0 queries with other cells out of 1,330,020 at 128K; the timing above was not
repeated.

Scope proposal: #4118. Issues and pull requests, open and closed, were searched again for duplicates on 2026-10-25 and,
for the items filed since, on 2026-10-31,
including those filed since 2026-10-24 (3xTF32, tf32, two-pass, rescore, re-score, block scores,
qsa_block_scores, qsa select, single-pass, error bound, TWO_PASS, scorer, precision): none bounds the
single-pass scores and scores again only near the cut-off.

  • #669 (RTX 5090, 1M context): qsa select was a third of a 565K read there; more key tiles per CTA (TC_ITER) and the
    query tile's TF32 hi and lo parts in shared memory are among what did not help. This keeps the 3xTF32 kernel and
    skips most of its work instead.
  • #3858 (an RTX 3090 with its tensor rate unlocked: prompt reads faster, decode not): the same card; this removes TF32
    MMAs from the QSA scorer rather than running them faster.
  • #575 (split top-k past the register fit): the top-k, not the scores; it is unchanged and reads the two-pass rows.
  • #1399 (the accuracy floor of qsa_select_bench): the 3xTF32 scorer's error against FP64. Every block that can reach
    the cut-off is still scored in 3xTF32, bit for bit, so that floor does not change.
  • #1091, #1825, #2071, #2080 (the scorers below sm_80): another path; the two-pass path runs only where
    qsa_block_scores_tc runs.
  • #3498 (HIP, STRATA_SELECT_SPLIT2: the WMMA scorer without its lo pieces): a rounding-level change (253/256
    selections at 262K); this keeps the selection bitwise. HIP only.
  • #3233 (HIP gfx12, exact scoring and top-k) and #3941 (SYCL, the 3x split scorer on XMX): other backends, no overlap.
  • #3820 (decode select past 64K cells, STRATA_SELECT_LONG, on main since v0.2.7): decode windows, not the prompt
    path. Both append at the end of qsa_select.hpp and qsa_select.cu; the rebase keeps both blocks, #3820's first.
  • #3976 (the layer-major prompt path, on main since v0.2.7 and on by default for a layer split): its walk calls
    qsa_block_scores_tc but not the two-pass scorer, so the switch does nothing there; a set switch says so once.
    Running the two-pass scorer there is not part of this PR.

Merge-tested against all 474 open pull requests on 2026-10-31, on this revision: 473 tested (#4178's head could not be
fetched). The only conflict this branch adds is with #4283 (mine): its test target in CMakeLists.txt and its paragraph
in docs/DETAILS.md sit at the same place as this PR's; keep both.

Approach

The bound. Per indexer head, with qh = tf32(q), ql = tf32(q - qh), kh = tf32(k) and kl = tf32(k - kh)
exactly as today's kernel splits them, the single-pass score misses the cross terms qh.kl + ql.kh (bounded by
Cauchy-Schwarz), and both chains carry FP32 accumulation error: each MMA is taken to be within 16 FP32 ulps of the
absolute sum of its addends (a truncating alignment without guard bits gives at most 9). relu is 1-Lipschitz. Over the
four heads, eps_b = |kl_b| P + |kh_b| Q + 2^-100, with P and Q per query from the head norms. Norms and eps
are rounded up and [S1 - eps, S1 + eps] outwards. The derivation and the constants are in
include/strata/kernels/qsa_two_pass.hpp.

The cut-off rule (one CTA per query). Today's threshold T, the width-th largest cell key, lies in
[max(T1 - E, F), T1 + E], with T1 the width-th largest single-pass key over the candidates, E the largest
candidate bound and F a sampled lower bound proven to be at most T. Every block whose interval reaches that window
is scored again with block_scores_tc_kernel's own arithmetic (the same splits, MMA order and tile position), so the
blocks at T hold today's bits and every other block lies strictly on the same side of T as today: the threshold,
the cells above it and the tied cells are today's. A query the rule cannot settle (no bound for some block, a full
list, too few cells above F) has its 16-query tile scored again in full with today's kernel.

Scope. Only qsa_block_topk reads m.sel_scores (kept blocks hold the single-pass score, so the row itself is not
today's; STRATA_IDX_FP16_CHECK overwrites it with its own selection). Prompt path only (Prefill::run); decode and
verify windows are untouched. CUDA sm_80+ under qsa_block_scores_tc's dispatch rule (not with STRATA_QSA_WARP or
STRATA_SELECT_OLD), for calls whose last query has STRATA_SELECT_TWO_PASS_MIN blocks or more (default 4096, 16K
cells). The scratch (key norms, lists, flags: about 1.6 MB at 256K) is the start of m.attn, which the attention writes
after the selection: nothing is allocated, and too little room means today's path. Both HIP builds
(STRATA_ENABLE_HIP, STRATA_HIP_GFX906) compile qsa_select.cu as HIP: the new code is under
#if !defined(__HIPCC__) and HIP gets stubs that return false (there is no TF32 mma.sync). The Metal build compiles
prefill.cpp, where the calls are under #if !defined(STRATA_GPU_METAL). SYCL builds its own prefill.cpp and
qsa_select.dp.cpp and sees only the new declarations in qsa_select.hpp.

Diagnostics and tests. With the switch on the engine prints qsa select: two-pass scores on ... once and one line
per prompt segment (strata prefill: two-pass QSA select: ...). Where the scorer cannot run, a set switch prints once
strata: STRATA_SELECT_TWO_PASS=1 is not used on <path>: ...; the selection is unchanged, naming HIP, Metal or SYCL
builds, this CUDA card or with STRATA_QSA_WARP (below sm_80, or STRATA_QSA_WARP=1|select) or the layer-major prompt
path; unset, nothing new is printed. STRATA_SELECT_TWO_PASS_CHECK=1 (slow) runs today's scorer and top-k beside it and
prints the queries whose ids differ, the scored-again blocks that are not today's bits and the kept blocks outside their
bound. tests/prefill/qsa_two_pass_test.cpp (no GPU) checks the TF32 split, the bound under a rounding and a truncating
MMA model, and the cut-off rule on 1,008 rows with ties and plateaus, with a negative control.
src/kernels/qsa_two_pass_parity.cpp (GPU, CUDA sm_80+; skipped elsewhere and on HIP) compares the ids with the 3xTF32
scorer's at 2K to 256K. tests/prefill/qsa_two_pass_status_test.cpp (no GPU) checks the request's parse (exactly 1),
that unset or supported paths print nothing, that each unsupported path prints its line once, and that on a layer split
over mixed cards a supported card neither uses up the line nor is turned off.

Validation

Revision 0e233278: this branch, two commits on upstream/main 870aedd9 (v0.2.8, engine 0.1.54). The first,
b6b01f0c, is the change as reviewed (47b09c8d), rebased: its added and removed lines are identical, and the only
conflict was the placement one with #3820. Between 4b9e05a2 and 870aedd9 upstream changed qsa_select.cu and
qsa_select.hpp only by #3820's appended block: the tensor-core scorer, its dispatch rule and the call site in
prefill.cpp are as measured. The second commit (0e233278) adds the "is not used" line and its test. Everything under
"On v0.2.8" below was built and run on this revision; the timing was not repeated.

The earlier evidence: revision 47b09c8d, one commit on 4b9e05a2 (0.2.6). Everything under "On v0.2.6 and earlier"
except its first item was measured and built on the branch's previous revision, 7f97e6fa, one commit on 7dd5cf18
(v0.2.4.2 and 6 commits that touch no engine, server or CMake file; base 7dd5cf18, built the same way). Between the
two bases upstream changed none of the files this PR adds or edits except CMakeLists.txt (merged without a conflict)
and docs/DETAILS.md (reorganised; the paragraph moved with it): qsa_select.cu, qsa_select.hpp, qsa_two_pass.hpp,
prefill.cpp, both tests and the 13 lines added to CMakeLists.txt are byte-identical in the two revisions. The GPU
runs used the change's first version f6398ade; 7f97e6fa differs from it only in docs/DETAILS.md (these numbers)
and in qsa_two_pass_parity.cpp's main (a HIP skip and _putenv_s on Windows, both behind #if). With 7f97e6fa
checked out ninja finds no work in the engine, the test's CUDA preprocessor output is identical to the measured
version's, and the rebuilt test binary has the measured binary's SHA-256.

System (one machine; no claim for others):

  • GPU: NVIDIA GeForce RTX 3090 24 GB (sm_86), power limit 250 W (default 350 W), PCIe 3.0 x16 (the engine's probe:
    11.8 to 11.9 GB/s host to device), driver 580.178.04, CUDA 13.0 (nvcc 13.0.88).
  • CPU: Intel Xeon E5-2698 v4 (Broadwell-EP, AVX2 and FMA, no AVX-512). The engine runs in a KVM guest with 32 vCPUs
    pinned to 16 physical cores and the GPU passed through; host RAM DDR4-2133 in four channels.
  • Guest: 149 GiB RAM (free -g), no swap, Ubuntu 24.04.5 LTS, kernel 6.8.0-146-generic, gcc 13.3.0, CMake 4.4.3,
    Ninja 1.13.2; model files on a virtual (QEMU) disk.
  • Build: Release, -DSTRATA_ENABLE_CUDA=ON -DSTRATA_BUILD_TESTS=OFF -DSTRATA_Q6K_EXPERTS=ON -DSTRATA_MMQ_KQUANTS=ON -DCMAKE_CUDA_ARCHITECTURES=86 -DCMAKE_CUDA_COMPILER=<cuda-13.0>/bin/nvcc -DCUDAToolkit_ROOT=<cuda-13.0> -DSTRATA_GGML_DIR=<llama.cpp 3cf03257> (setup's line for this card; the CMake cache equals the installed engine's
    apart from the STRATA_PLE_FIXTURE_DIR path).
  • Model and settings: the public Swift Qwen3.8-Flash-Next GSQ-RCO IQ3_XXS GGUF (two shards) and its pack, served by
    serve/server.py --engine strata (unchanged by this PR) with strata --serve --pack <pack> --native <gguf> --ple-gguf <gguf> --expert-profile data/expert-profile.bin --expert-cache auto --prefill auto --spec 4 --spec-min-p 0.5 --mtp <mtp dir> --max-context 262144 --kv int8 --kv-resident 32768; in the benchmark no STRATA_* variable but
    the switch. 10,320 expert slots and 23,738 MiB of VRAM in use at ready in every benchmark arm, switch on or off.

Passed:

On v0.2.8 (0e233278, base 870aedd9):

  • CUDA, the build line under System, at 870aedd9 and at this head: cmake --build <build> --target strata strata_kq
    rc 0 (169 steps each), the same 256 warning lines, both strata 0.1.54; the switch's name and the new line's text are
    in the head binary only. The test build (-DSTRATA_BUILD_TESTS=ON): the 14 GPU-free tests of the first test block
    plus copy_events_test pass 15 of 15 on base, and with qsa_two_pass_test and qsa_two_pass_status_test 17 of 17 on
    the head.
  • GPU tests on the RTX 3090 from the head's test build: qsa_two_pass_parity (with STRATA_SELECT_TWO_PASS=1, as its
    ctest entry) passes (0 queries with other ids, 0 scored-again blocks off by a bit, 0 kept blocks outside the bound),
    and qsa_scores_parity and qsa_topk_active_parity pass.
  • Default path byte-identical, and the switch output-preserving: one locked batch on the machine under System, a fresh
    server and engine per arm (v0.2.8's serve/server.py, unchanged by this PR), the deterministic lane
    (STRATA_PREFILL_CPU_SHARE=0, --pcie-frac 0.32, --adapt-every 0) on top of this machine's settings
    (STRATA_TOPK_SPLIT=1, STRATA_CKPT_POOL=1), temperature 0, thinking off, 64 tokens; 10,149 expert slots and 23,488
    MiB of VRAM in use at ready in every arm. Ten requests per arm: three tiny chats, prompts of 992, 1,720, 3,850, 31,473
    and 126,970 tokens, and a 15,998-token read followed by a turn that reads 2,025 new tokens after 16,061 reused. The
    reply's SHA-256 and the engine's prompt N tokens = R reused + K read counts are the same at every step for v0.2.8,
    the head with the switch unset, the head with STRATA_SELECT_TWO_PASS=1, and v0.2.8 again (the control). The switch
    printed qsa select: two-pass scores on ... once and its per-segment line on the three reads with 4,096 blocks or
    more (the follow-up turn, 32K and 128K: 84, 720 and 5,196 calls); the other arms printed neither.
  • Selection equality, STRATA_SELECT_TWO_PASS=1 STRATA_SELECT_TWO_PASS_CHECK=1, same lane: 0 queries with other ids out
    of 184,056 at 32K and 1,330,020 at 128K; 0 of 9,365,707 and 80,178,966 scored-again blocks not bitwise; 0 kept blocks
    outside the bound; the largest |S1 - S3| / bound 0.17 and 0.19; replies equal to the switch-on arm.
  • The new line on hardware: with STRATA_SELECT_TWO_PASS=1 STRATA_QSA_WARP=1 the engine printed strata: STRATA_SELECT_TWO_PASS=1 is not used on this CUDA card or with STRATA_QSA_WARP: ...; the selection is unchanged once,
    and no two-pass line, over a tiny chat and the 31,473-token read. qsa_two_pass_status_test on macOS with Apple clang
    17 (-Wall -Wextra): passes with no warning; with the once-only rule removed it fails (the line is printed once),
    and with the line removed it fails (one line naming the path).
  • Metal on macOS 15.7.7 (Apple M3, Apple clang 17.0.0, SDK 26.2), the steps of the Metal build workflow: base and head
    rc 0, the same 81 object files and the same 10 warnings.
  • HIP and SYCL, compile only (x86-64 Linux containers, no AMD or Intel GPU): base built in full, then the head checked
    out in the same tree and rebuilt (ninja -k 0, every target).
    • HIP wave32, docs/AMD_HIP.md's line plus -DSTRATA_BUILD_TESTS=ON, in rocm/dev-ubuntu-24.04:7.14.1-full (HIP
      7.14.60850, AMD clang 23.0.0git): base rc 0 (469 steps), head rc 0 (100 steps rebuilt). ctest -R qsa_two_pass:
      qsa_two_pass_test and qsa_two_pass_status_test pass.
    • HIP gfx906, docs/AMD_HIP.md's line plus -DSTRATA_BUILD_TESTS=ON, same image: the same two tests pass and
      qsa_two_pass_parity is skipped (77). One target fails on base and head alike, src/core/dflash2.cpp, as on v0.2.6
      below.
    • SYCL, the strata-sycl-dev recipe (oneAPI DPC++ 2026.1.0, no AOT): base and head BUILD EXIT 0, 0 errors; the head
      recompiles qsa_select.dp.cpp, layer.cpp, verify.cpp and sycl/src/prefill/prefill.cpp.
    • New warnings against base, keyed by file and message: none on SYCL; on both HIP builds the same 3 hipError_t
      nodiscard warnings in prefill.cpp as on v0.2.6 (below), and on gfx906 the same 3 in qsa_two_pass_parity.cpp. The
      review follow-up adds none.

On v0.2.6 and earlier, as described above:

  • On revision 47b09c8d (base 4b9e05a2, engine 0.1.51), the build line under System: strata strata_kq rc 0
    (166 steps; the switch's name is in the binary), and the test build with -DSTRATA_BUILD_TESTS=ON (the 12 GPU-free unit
    tests, qsa_two_pass_test and the four GPU tests) rc 0, with the 13 GPU-free tests passing 13 of 13. Metal, the
    workflow's steps as below: base 4b9e05a2 and head rc 0, the same 75 object files and the same warnings.

  • Builds. CUDA on the line above, targets strata strata_kq: base and head rc 0, the same warnings (two existing ones
    in qsa_select.cu move down one line). qsa_select.cu for the cuda13 package's architectures
    (75-real;86-real;89-real;120-real;120-virtual, object only): rc 0. Metal on macOS 15.7.7 (Apple M3, Apple clang
    17.0.0), the steps of the Metal build workflow (metal-cpp 26 at its pinned SHA-256, llama.cpp 3cf03257,
    cmake -S metal -B build-metal -G Ninja -DCMAKE_BUILD_TYPE=Release ... then cmake --build build-metal --target strata): base and head rc 0, the same 75 object files and the same warnings.

  • HIP and SYCL builds, compile only (x86-64 Linux containers, no AMD or Intel GPU): base 7dd5cf18 built in full,
    then this commit checked out in the same tree and rebuilt (ninja -k 0, every target; tests on for HIP).

    • HIP wave32, docs/AMD_HIP.md's line (-DSTRATA_ENABLE_HIP=ON -DSTRATA_ENABLE_CUDA=OFF -DCMAKE_HIP_ARCHITECTURES=gfx1100) plus -DSTRATA_BUILD_TESTS=ON, in rocm/dev-ubuntu-24.04:7.14.1-full (HIP
      7.14.60850, AMD clang 23.0.0git, gcc 13.3.0, CMake 3.28.3): base rc 0 (424 steps), head rc 0 (95 steps rebuilt,
      among them qsa_select.cu, prefill.cpp, layer.cpp, verify.cpp and the QSA tools). ctest -R qsa_two_pass:
      qsa_two_pass_test passes (this build does not register the GPU parity test).
    • HIP gfx906, docs/AMD_HIP.md's line (-DSTRATA_HIP_GFX906=ON -DCMAKE_HIP_ARCHITECTURES=gfx906, ROCm clang as the
      C and C++ compiler) plus -DSTRATA_BUILD_TESTS=ON, same image: qsa_select.cu, prefill.cpp and
      qsa_two_pass_parity compile and link, and qsa_two_pass_test passes. One target fails on base and head alike:
      src/core/dflash2.cpp (cudaDeviceGetStreamPriorityRange and cudaStreamCreateWithPriority have no mapping in
      the gfx906 compat headers), so strata does not link in this configuration on main either.
    • SYCL, the strata-sycl-dev recipe (docker build --pull -t strata-sycl-dev sycl/tools, then sycl/tools/build.sh
      without AOT; oneAPI DPC++ 2026.1.0, CMake 4.2.3), configured with STRATA_GGML_DIR at the pinned llama.cpp: the
      four engine sources that include the changed qsa_select.hpp (qsa_select.dp.cpp, layer.cpp, verify.cpp,
      prefill.cpp) compile. One target fails on base and head alike: src/kernels/cpu/iq_avx512.cpp (_pdep_u64
      requires the bmi2 target feature under this icpx), so strata does not link in this image on main either.
    • New warnings against base: none on SYCL. On both HIP builds, 3 more of the hipError_t nodiscard warnings in
      prefill.cpp, at lines 3447 to 3449 (an unchecked cudaStreamSynchronize and two cudaFree after
      STRATA_SELECT_TWO_PASS_CHECK's comparison, written like the file's other runtime calls: base already reports
      235 (wave32) and 227 (gfx906) of these in prefill.cpp); on gfx906 also 3 in qsa_two_pass_parity.cpp
      (unchecked cudaEventDestroy). No other new warning.
  • GPU-free tests: ctest -R over the 12 GPU-free unit tests of CMakeLists.txt plus qsa_two_pass_test in the test
    build of the same line with -DSTRATA_BUILD_TESTS=ON: head 13 of 13, base 12 of 12.
    c++ -std=c++20 -O2 -Wall -Wextra -Iinclude tests/prefill/qsa_two_pass_test.cpp && ./a.out with Apple clang 17:
    PASS, no warnings.

  • GPU tests on the RTX 3090 (ctest -R <name> -V, each with its own ENVIRONMENT): qsa_two_pass_parity (30 runs: 15
    synthetic cases at 2K to 256K, two score-row strides; 0 queries with other ids, 0 scored-again blocks off by a bit,
    0 kept blocks outside the bound, the largest |S1 - S3| / eps 0.41; one 256K call 1.898 ms with the 3xTF32 scorer,
    0.975 ms two-pass, the per-chunk key norms not included), qsa_scores_parity, qsa_select_bench,
    qsa_select_bench_fp32_tiled and qsa_topk_active_parity: all pass.

  • Default path byte-identical, and the switch output-preserving. Deterministic lane in every arm
    (STRATA_PREFILL_CPU_SHARE=0, --pcie-frac 0.32, --adapt-every 0), a fresh engine per arm, temperature 0, thinking
    off, 64 tokens, prompts of 992, 31,473, 126,970 and 253,915 tokens (slices of the repository's docs at v0.2.4.1, each
    with a question at the end). The SHA-256 of each reply is the same for the base, the head with the switch unset and
    the head with STRATA_SELECT_TWO_PASS=1 on all four prompts, and a second base arm (the control) matches on the
    first three. Of these arms only the switch-on one printed the two-pass line (720, 5,196 and 11,148 calls at 32K, 128K
    and 256K; none at 1K, which is below the minimum).

  • Selection equality, STRATA_SELECT_TWO_PASS=1 STRATA_SELECT_TWO_PASS_CHECK=1 STRATA_SELECT_TWO_PASS_MIN=0 (every
    prompt call two-pass), same lane, 8 tokens:

    Prompt Queries With other ids Scored again Of them not bitwise Kept Kept outside the bound Largest |S1 - S3| / bound
    126,970 tokens 1,523,556 0 86,509,329 0 24,087,710,031 0 0.196
    253,915 tokens 3,046,896 0 190,693,747 0 96,509,171,765 0 0.209
  • Speed on main, release defaults (above), the head binary with the switch off and on, one batch in the order
    OFF ON ON OFF (pairs: arms 1 and 2, arms 4 and 3), a fresh engine per arm. Tiers: tiny (6 chats of 17 to 19 prompt
    tokens, 64 tokens each) and filler prompts of 3,948, 32,091, 128,404 and 255,571 tokens with a unique nonce in every
    repetition (2 runs each, 256 tokens, temperature 0, thinking off, 0 tokens reused). Engine-side numbers: prompt
    tokens over the engine's prompt ms, the engine's decode tok/s.

    Tier OFF ON ON / OFF: pair 1 run 1, run 2; pair 2 run 1, run 2 Change
    Prompt read 256K, tok/s 1,887 1,984 1.050, 1.047, 1.055, 1.055 +5.2%
    Prompt read 128K 2,063 2,109 1.017, 1.020, 1.027, 1.026 +2.2%
    Prompt read 32K 2,164 2,169 0.994, 1.000, 1.005, 1.009 +0.2%
    Prompt read 4K (switch not taken) 1,322 1,334 0.997, 1.000, 1.017, 1.021 +0.9%
    Decode after 256K, tok/s 148.9 149.5 1.018, 0.999, 0.999, 1.001 +0.4%
    Decode after 128K 157.8 156.2 0.985, 1.001, 0.997, 0.979 -1.0%
    Decode after 32K 163.2 163.6 0.987, 1.014, 1.008, 1.002 +0.2%
    Decode after 4K 149.4 148.4 0.967, 0.986, 1.027, 0.995 -0.7%
    Decode, tiny (median of 6) 95.8 95.4 1.002, 0.991 -0.4%
    Tiny prompt, engine prompt ms (median of 6) 353 360 0.999, 0.963 (OFF / ON) +2.0% (more time)

    The switch's code runs only in the prompt reads of 32K and longer (each switch-on arm printed its per-prompt line
    for the two 32K, two 128K and two 256K prompts and nothing for the others; about 82, 98 and 106 blocks scored again
    per query, 0 queries flagged). Decode and the tiny tier stay within the spread of the runs.

Every run of this batch
Arm Tier Run Prompt tokens Prompt ms Prompt tok/s Decode tok/s Drafts accepted / offered
1 OFF 4K 1 3,948 2,989 1,320.9 131.6 192 / 192
1 OFF 4K 2 3,948 2,982 1,323.7 168.4 192 / 192
1 OFF 32K 1 32,091 14,780 2,171.3 164.7 192 / 192
1 OFF 32K 2 32,091 14,857 2,160.1 161.7 193 / 195
1 OFF 128K 1 128,404 62,289 2,061.4 158.9 192 / 192
1 OFF 128K 2 128,404 62,218 2,063.8 156.5 192 / 192
1 OFF 256K 1 255,571 135,613 1,884.6 148.7 193 / 195
1 OFF 256K 2 255,571 135,370 1,887.9 149.4 193 / 195
2 ON 4K 1 3,948 2,999 1,316.5 127.3 192 / 192
2 ON 4K 2 3,948 2,982 1,323.7 166.1 192 / 192
2 ON 32K 1 32,091 14,862 2,159.3 162.5 193 / 195
2 ON 32K 2 32,091 14,849 2,161.1 163.9 192 / 192
2 ON 128K 1 128,404 61,239 2,096.8 156.5 193 / 195
2 ON 128K 2 128,404 61,015 2,104.5 156.6 193 / 195
2 ON 256K 1 255,571 129,166 1,978.6 151.4 192 / 192
2 ON 256K 2 255,571 129,293 1,976.7 149.2 193 / 195
3 ON 4K 1 3,948 2,937 1,344.3 135.2 193 / 195
3 ON 4K 2 3,948 2,923 1,350.6 165.0 192 / 192
3 ON 32K 1 32,091 14,752 2,175.4 163.3 193 / 195
3 ON 32K 2 32,091 14,729 2,178.8 164.6 193 / 193
3 ON 128K 1 128,404 60,683 2,116.0 155.9 193 / 195
3 ON 128K 2 128,404 60,613 2,118.4 155.9 193 / 195
3 ON 256K 1 255,571 128,323 1,991.6 148.2 192 / 192
3 ON 256K 2 255,571 128,378 1,990.8 149.1 193 / 195
4 OFF 4K 1 3,948 2,986 1,322.1 131.7 192 / 192
4 OFF 4K 2 3,948 2,985 1,322.7 165.9 191 / 192
4 OFF 32K 1 32,091 14,826 2,164.6 162.0 193 / 195
4 OFF 32K 2 32,091 14,855 2,160.3 164.3 193 / 195
4 OFF 128K 1 128,404 62,325 2,060.2 156.4 193 / 195
4 OFF 128K 2 128,404 62,185 2,064.9 159.2 192 / 192
4 OFF 256K 1 255,571 135,337 1,888.4 148.4 193 / 195
4 OFF 256K 2 255,571 135,423 1,887.2 149.0 193 / 195

Tiny tier, engine prompt ms of the 6 chats (17 to 19 prompt tokens, 64 generated) and decode tok/s:

Arm Prompt ms Decode tok/s
1 OFF 405.9, 378.9, 315.1, 341.0, 357.5, 347.6 77.7, 92.2, 90.5, 110.2, 107.4, 98.7
2 ON 414.3, 352.0, 354.3, 353.7, 348.8, 318.0 77.7, 90.7, 91.9, 111.7, 105.2, 99.3
3 ON 398.3, 415.8, 372.4, 360.3, 324.9, 348.9 77.0, 91.2, 91.1, 112.2, 109.5, 99.3
4 OFF 400.0, 386.3, 314.0, 350.9, 354.6, 332.9 77.8, 93.0, 91.8, 111.7, 109.4, 99.2

Unpaired prompt times from the identity arms above (deterministic lane, one run each, not a benchmark): 253,915 tokens
in 136,498 ms (base), 137,368 ms (switch unset) and 130,354 ms (switch on); 126,970 tokens in 62,982, 63,931 and
62,667 ms.

The earlier run: v0.2.4.1, 4 pairs, other settings

The same commit before the rebase, on v0.2.4.1 (c33fa7ba, whose Qwen engine sources differ from 7dd5cf18 only in
the version number), measured on the same machine on 2026-10-24 with settings that are not the release defaults:
STRATA_TOPK_SPLIT=1, STRATA_CKPT_POOL=1, --conversation-cache-min-tokens 2048 and --conversation-cache-mib 8192
in both arms, the v0.2.4.1 server, two batches (OFF ON ON OFF, then ON OFF OFF ON), also a 1K tier and a sampled tier
(4K prompt, thinking on, temperature 1.0, 2 runs). Absolute numbers are not comparable with the table above (other
settings and server); compare the ratios. Per pair, ON / OFF (tiny TTFT: OFF / ON):

Tier OFF mean ON mean Four pairs Median
Prompt read 256K, run 2 1,890 1,978 1.048, 1.044, 1.048, 1.047 1.047
Prompt read 256K, run 1 1,889 1,976 1.046, 1.044, 1.048, 1.046 1.046
Prompt read 128K, run 2 2,066 2,101 1.019, 1.012, 1.017, 1.020 1.018
Prompt read 128K, run 1 2,068 2,102 1.012, 1.015, 1.018, 1.020 1.017
Prompt read 32K 2,201 2,189 0.988, 0.996, 0.999, 0.994 0.995
Prompt read 4K 1,457 1,455 1.004, 0.986, 0.999, 1.005 1.001
Prompt read 1K 737 736 0.997, 0.991, 1.005, 1.000 0.999
Decode after 256K 156.6 156.1 1.003, 1.001, 1.002, 0.982 1.002
Decode after 128K 159.7 160.5 1.012, 1.004, 1.005, 0.998 1.005
Decode after 32K 165.1 164.6 0.989, 0.987, 1.002, 1.008 0.996
Decode after 4K 170.7 170.6 0.979, 1.000, 1.017, 1.001 1.000
Decode after 1K 169.7 170.6 0.944, 1.039, 1.040, 1.001 1.020
Decode, tiny 95.4 95.0 0.994, 0.996, 1.002, 0.992 0.995
Decode, sampled 94.7 94.1 0.978, 0.950, 1.074, 0.977 0.978
Time to first token, tiny, engine ms 115 111 1.066, 0.992, 1.055, 1.008 1.031

The switch does not run on the sampled prompt (it is below the minimum), and the two sampled runs inside one arm
differed by up to 30 tok/s there. 32K was 0.5% slower in that run and +0.2% in the run above.

Failed:

  • None observed, on v0.2.8 or on the earlier revisions.

Not run:

  • Running on AMD, Intel or Apple hardware. The new line on HIP, Metal and SYCL is checked by qsa_two_pass_status_test
    and by compiling those builds, not by running an engine there; the layer-major line needs a layer split (two cards)
    and was not run. On HIP the two-pass kernels are not compiled (the stubs return false), so Prefill::run makes
    today's calls; qsa_two_pass_parity returns 77 under STRATA_HIP_GFX906 before any runtime
    call (from reading the code: in the build container it could not start, because the image does not put the ROCm
    runtime on the loader path).
  • Windows (MSVC) builds (the parity test sets its variable with _putenv_s there, as qsa_topk_active_parity does);
    execution on any card but sm_86 (sm_75, sm_89 and sm_120 were compiled only; sm_75 has no two-pass path); a second
    machine.
  • Output identity in the default lane (adaptive CPU share and PCIe split): the identity runs pin both, as above.
    Task-quality or long-context recall checks (the check above shows the same selected cells, and the replies were
    byte-identical).

Limits

  • The bound rests on one stated model of the MMA's accumulation (within 16 FP32 ulps of the absolute sum per MMA). On
    the real prompts the largest |S1 - S3| used 0.21 of the bound, on the synthetic GPU cases 0.41; the GPU-free test's
    worst constructed case (q = k at the worst rounding) reaches 0.84 under a rounding MMA model.
  • Rows with many blocks inside the bound at the cut-off (heavy exact ties, or keys whose single-pass error is large
    against the spread of the scores) fall back to a full 3xTF32 re-score of their 16-query tile: exact, but slower than
    today. No query was flagged on the real prompts here.
  • The gain grows with the prompt: below STRATA_SELECT_TWO_PASS_MIN (4096 blocks) nothing changes, and 32K is about
    even. The default minimum is not tuned. The top-k still reads the full row, so the select phase does not shrink by
    the whole scoring cost.
  • CUDA sm_80+ and the prompt path only. One RTX 3090 on PCIe 3.0 at 250 W; no claim for other machines.
  • The layer-major prompt path (#3976), on by default for a layer split since v0.2.7, does not use the two-pass scorer;
    a set switch says so once.
  • Timing is from v0.2.6; it was not repeated on v0.2.8.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Niko1221/Strata/pull/4119 **Author:** [@bitaccesscomau](https://github.com/bitaccesscomau) **Created:** 10/25/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `pr/qsa-two-pass` --- ### 📝 Commits (3) - [`b6b01f0`](https://github.com/Niko1221/Strata/commit/b6b01f0c6cb9971ff8bcd4085ab77880f33ee765) qsa select: STRATA_SELECT_TWO_PASS scores prompt blocks in single-pass TF32 with a proven bound - [`0e23327`](https://github.com/Niko1221/Strata/commit/0e233278fc2741d0c06081993c23a9d1b102aaea) qsa select: a set STRATA_SELECT_TWO_PASS says once where the two-pass scorer cannot run; test - [`a90d33c`](https://github.com/Niko1221/Strata/commit/a90d33c46cc7c0d3e11cbcd63f277171a7b5411a) Merge branch 'main' into pr/qsa-two-pass ### 📊 Changes **11 files changed** (+1861 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `CMakeLists.txt` (+18 -0) 📝 `docs/DETAILS.md` (+12 -0) 📝 `include/strata/kernels/qsa_select.hpp` (+29 -0) ➕ `include/strata/kernels/qsa_two_pass.hpp` (+141 -0) ➕ `include/strata/kernels/qsa_two_pass_status.hpp` (+41 -0) 📝 `src/kernels/cuda/qsa_select.cu` (+762 -0) ➕ `src/kernels/qsa_two_pass_parity.cpp` (+224 -0) 📝 `src/prefill/prefill.cpp` (+109 -2) 📝 `sycl/src/prefill/prefill.cpp` (+3 -0) ➕ `tests/prefill/qsa_two_pass_status_test.cpp` (+80 -0) ➕ `tests/prefill/qsa_two_pass_test.cpp` (+442 -0) </details> ### 📄 Description ## Problem and result In an earlier profile a cold 256K prompt on an RTX 3090 spent about 13% of its read in the QSA selection (`STRATA_PREFILL_TIMING=1`, v0.2.4.1 with other settings: `qsa select` 17.4 s of a 136.3 s GPU timeline), about 10 s of it in the block scores. The prompt path's tensor-core scorer `qsa_block_scores_tc` (sm_80+) computes every block score of every query in 3xTF32, 48 m16n8k8 MMAs per indexer head and block (a 256-query call at 256K takes 1.90 ms), although only the blocks near each query's top-k cut-off need that precision. With `STRATA_SELECT_TWO_PASS=1` (off by default, read once), a prompt call scores every block once in single-pass TF32 (16 MMAs per head), bounds per block how far that score can be from today's 3xTF32 score, and scores again, with today's 3xTF32 arithmetic and bit for bit, only the blocks whose bound reaches the cut-off (on average 50 to 107 blocks per query at 32K to 256K, 0.2% to 1.4% of the blocks). `qsa_block_topk` then returns exactly today's cells in today's order, ties included, so the answer does not change. With the variable unset the selection makes today's calls in today's order. Measured on v0.2.6 (`4b9e05a2`, `main` at the time) on one RTX 3090 at the release defaults, the same binary with the switch off and on, 2 pairs of 2 runs: the 256K prompt read goes from 1,887 to 1,984 tokens/s (+5.2%; the four run ratios are 1.047 to 1.055), 128K +2.2%, 32K +0.2% (0.994 to 1.009); decode stays within the spread of the runs (tier means -1.0% to +0.4%). Output is byte-identical to that base at 1K, 32K, 128K and 256K with the switch off and on, and the switch's own check finds 0 queries with other cells out of 1,523,556 at 128K and 3,046,896 at 256K. An earlier 4-pair run on v0.2.4.1 with other settings gave +4.7% at 256K. Rebased onto v0.2.8 (`870aedd9`). Where the two-pass scorer cannot run (HIP, Metal and SYCL builds, a card below sm_80 or `STRATA_QSA_WARP`, the layer-major prompt path), a set switch now prints one line saying it is not used there, instead of nothing. On the rebased tree the replies are byte-identical to v0.2.8 at 1K to 128K with the switch unset and set, and the switch's check finds 0 queries with other cells out of 1,330,020 at 128K; the timing above was not repeated. ## Related discussion Scope proposal: #4118. Issues and pull requests, open and closed, were searched again for duplicates on 2026-10-25 and, for the items filed since, on 2026-10-31, including those filed since 2026-10-24 (`3xTF32`, `tf32`, `two-pass`, `rescore`, `re-score`, `block scores`, `qsa_block_scores`, `qsa select`, `single-pass`, `error bound`, `TWO_PASS`, `scorer`, `precision`): none bounds the single-pass scores and scores again only near the cut-off. - #669 (RTX 5090, 1M context): `qsa select` was a third of a 565K read there; more key tiles per CTA (`TC_ITER`) and the query tile's TF32 hi and lo parts in shared memory are among what did not help. This keeps the 3xTF32 kernel and skips most of its work instead. - #3858 (an RTX 3090 with its tensor rate unlocked: prompt reads faster, decode not): the same card; this removes TF32 MMAs from the QSA scorer rather than running them faster. - #575 (split top-k past the register fit): the top-k, not the scores; it is unchanged and reads the two-pass rows. - #1399 (the accuracy floor of `qsa_select_bench`): the 3xTF32 scorer's error against FP64. Every block that can reach the cut-off is still scored in 3xTF32, bit for bit, so that floor does not change. - #1091, #1825, #2071, #2080 (the scorers below sm_80): another path; the two-pass path runs only where `qsa_block_scores_tc` runs. - #3498 (HIP, `STRATA_SELECT_SPLIT2`: the WMMA scorer without its lo pieces): a rounding-level change (253/256 selections at 262K); this keeps the selection bitwise. HIP only. - #3233 (HIP gfx12, exact scoring and top-k) and #3941 (SYCL, the 3x split scorer on XMX): other backends, no overlap. - #3820 (decode select past 64K cells, `STRATA_SELECT_LONG`, on `main` since v0.2.7): decode windows, not the prompt path. Both append at the end of `qsa_select.hpp` and `qsa_select.cu`; the rebase keeps both blocks, #3820's first. - #3976 (the layer-major prompt path, on `main` since v0.2.7 and on by default for a layer split): its walk calls `qsa_block_scores_tc` but not the two-pass scorer, so the switch does nothing there; a set switch says so once. Running the two-pass scorer there is not part of this PR. Merge-tested against all 474 open pull requests on 2026-10-31, on this revision: 473 tested (#4178's head could not be fetched). The only conflict this branch adds is with #4283 (mine): its test target in `CMakeLists.txt` and its paragraph in `docs/DETAILS.md` sit at the same place as this PR's; keep both. ## Approach **The bound.** Per indexer head, with `qh = tf32(q)`, `ql = tf32(q - qh)`, `kh = tf32(k)` and `kl = tf32(k - kh)` exactly as today's kernel splits them, the single-pass score misses the cross terms `qh.kl + ql.kh` (bounded by Cauchy-Schwarz), and both chains carry FP32 accumulation error: each MMA is taken to be within 16 FP32 ulps of the absolute sum of its addends (a truncating alignment without guard bits gives at most 9). relu is 1-Lipschitz. Over the four heads, `eps_b = |kl_b| P + |kh_b| Q + 2^-100`, with `P` and `Q` per query from the head norms. Norms and `eps` are rounded up and `[S1 - eps, S1 + eps]` outwards. The derivation and the constants are in `include/strata/kernels/qsa_two_pass.hpp`. **The cut-off rule** (one CTA per query). Today's threshold `T`, the width-th largest cell key, lies in `[max(T1 - E, F), T1 + E]`, with `T1` the width-th largest single-pass key over the candidates, `E` the largest candidate bound and `F` a sampled lower bound proven to be at most `T`. Every block whose interval reaches that window is scored again with `block_scores_tc_kernel`'s own arithmetic (the same splits, MMA order and tile position), so the blocks at `T` hold today's bits and every other block lies strictly on the same side of `T` as today: the threshold, the cells above it and the tied cells are today's. A query the rule cannot settle (no bound for some block, a full list, too few cells above `F`) has its 16-query tile scored again in full with today's kernel. **Scope.** Only `qsa_block_topk` reads `m.sel_scores` (kept blocks hold the single-pass score, so the row itself is not today's; `STRATA_IDX_FP16_CHECK` overwrites it with its own selection). Prompt path only (`Prefill::run`); decode and verify windows are untouched. CUDA sm_80+ under `qsa_block_scores_tc`'s dispatch rule (not with `STRATA_QSA_WARP` or `STRATA_SELECT_OLD`), for calls whose last query has `STRATA_SELECT_TWO_PASS_MIN` blocks or more (default 4096, 16K cells). The scratch (key norms, lists, flags: about 1.6 MB at 256K) is the start of `m.attn`, which the attention writes after the selection: nothing is allocated, and too little room means today's path. Both HIP builds (`STRATA_ENABLE_HIP`, `STRATA_HIP_GFX906`) compile `qsa_select.cu` as HIP: the new code is under `#if !defined(__HIPCC__)` and HIP gets stubs that return false (there is no TF32 `mma.sync`). The Metal build compiles `prefill.cpp`, where the calls are under `#if !defined(STRATA_GPU_METAL)`. SYCL builds its own `prefill.cpp` and `qsa_select.dp.cpp` and sees only the new declarations in `qsa_select.hpp`. **Diagnostics and tests.** With the switch on the engine prints `qsa select: two-pass scores on ...` once and one line per prompt segment (`strata prefill: two-pass QSA select: ...`). Where the scorer cannot run, a set switch prints once `strata: STRATA_SELECT_TWO_PASS=1 is not used on <path>: ...; the selection is unchanged`, naming HIP, Metal or SYCL builds, `this CUDA card or with STRATA_QSA_WARP` (below sm_80, or `STRATA_QSA_WARP=1|select`) or the layer-major prompt path; unset, nothing new is printed. `STRATA_SELECT_TWO_PASS_CHECK=1` (slow) runs today's scorer and top-k beside it and prints the queries whose ids differ, the scored-again blocks that are not today's bits and the kept blocks outside their bound. `tests/prefill/qsa_two_pass_test.cpp` (no GPU) checks the TF32 split, the bound under a rounding and a truncating MMA model, and the cut-off rule on 1,008 rows with ties and plateaus, with a negative control. `src/kernels/qsa_two_pass_parity.cpp` (GPU, CUDA sm_80+; skipped elsewhere and on HIP) compares the ids with the 3xTF32 scorer's at 2K to 256K. `tests/prefill/qsa_two_pass_status_test.cpp` (no GPU) checks the request's parse (exactly `1`), that unset or supported paths print nothing, that each unsupported path prints its line once, and that on a layer split over mixed cards a supported card neither uses up the line nor is turned off. ## Validation Revision `0e233278`: this branch, two commits on `upstream/main` `870aedd9` (v0.2.8, engine 0.1.54). The first, `b6b01f0c`, is the change as reviewed (`47b09c8d`), rebased: its added and removed lines are identical, and the only conflict was the placement one with #3820. Between `4b9e05a2` and `870aedd9` upstream changed `qsa_select.cu` and `qsa_select.hpp` only by #3820's appended block: the tensor-core scorer, its dispatch rule and the call site in `prefill.cpp` are as measured. The second commit (`0e233278`) adds the "is not used" line and its test. Everything under "On v0.2.8" below was built and run on this revision; the timing was not repeated. The earlier evidence: revision `47b09c8d`, one commit on `4b9e05a2` (0.2.6). Everything under "On v0.2.6 and earlier" except its first item was measured and built on the branch's previous revision, `7f97e6fa`, one commit on `7dd5cf18` (v0.2.4.2 and 6 commits that touch no engine, server or CMake file; base `7dd5cf18`, built the same way). Between the two bases upstream changed none of the files this PR adds or edits except `CMakeLists.txt` (merged without a conflict) and `docs/DETAILS.md` (reorganised; the paragraph moved with it): `qsa_select.cu`, `qsa_select.hpp`, `qsa_two_pass.hpp`, `prefill.cpp`, both tests and the 13 lines added to `CMakeLists.txt` are byte-identical in the two revisions. The GPU runs used the change's first version `f6398ade`; `7f97e6fa` differs from it only in `docs/DETAILS.md` (these numbers) and in `qsa_two_pass_parity.cpp`'s `main` (a HIP skip and `_putenv_s` on Windows, both behind `#if`). With `7f97e6fa` checked out ninja finds no work in the engine, the test's CUDA preprocessor output is identical to the measured version's, and the rebuilt test binary has the measured binary's SHA-256. System (one machine; no claim for others): - GPU: NVIDIA GeForce RTX 3090 24 GB (sm_86), power limit 250 W (default 350 W), PCIe 3.0 x16 (the engine's probe: 11.8 to 11.9 GB/s host to device), driver 580.178.04, CUDA 13.0 (nvcc 13.0.88). - CPU: Intel Xeon E5-2698 v4 (Broadwell-EP, AVX2 and FMA, no AVX-512). The engine runs in a KVM guest with 32 vCPUs pinned to 16 physical cores and the GPU passed through; host RAM DDR4-2133 in four channels. - Guest: 149 GiB RAM (`free -g`), no swap, Ubuntu 24.04.5 LTS, kernel 6.8.0-146-generic, gcc 13.3.0, CMake 4.4.3, Ninja 1.13.2; model files on a virtual (QEMU) disk. - Build: Release, `-DSTRATA_ENABLE_CUDA=ON -DSTRATA_BUILD_TESTS=OFF -DSTRATA_Q6K_EXPERTS=ON -DSTRATA_MMQ_KQUANTS=ON -DCMAKE_CUDA_ARCHITECTURES=86 -DCMAKE_CUDA_COMPILER=<cuda-13.0>/bin/nvcc -DCUDAToolkit_ROOT=<cuda-13.0> -DSTRATA_GGML_DIR=<llama.cpp 3cf03257>` (setup's line for this card; the CMake cache equals the installed engine's apart from the `STRATA_PLE_FIXTURE_DIR` path). - Model and settings: the public Swift Qwen3.8-Flash-Next GSQ-RCO IQ3_XXS GGUF (two shards) and its pack, served by `serve/server.py --engine strata` (unchanged by this PR) with `strata --serve --pack <pack> --native <gguf> --ple-gguf <gguf> --expert-profile data/expert-profile.bin --expert-cache auto --prefill auto --spec 4 --spec-min-p 0.5 --mtp <mtp dir> --max-context 262144 --kv int8 --kv-resident 32768`; in the benchmark no `STRATA_*` variable but the switch. 10,320 expert slots and 23,738 MiB of VRAM in use at ready in every benchmark arm, switch on or off. **Passed:** On v0.2.8 (`0e233278`, base `870aedd9`): - CUDA, the build line under System, at `870aedd9` and at this head: `cmake --build <build> --target strata strata_kq` rc 0 (169 steps each), the same 256 warning lines, both `strata 0.1.54`; the switch's name and the new line's text are in the head binary only. The test build (`-DSTRATA_BUILD_TESTS=ON`): the 14 GPU-free tests of the first test block plus `copy_events_test` pass 15 of 15 on base, and with `qsa_two_pass_test` and `qsa_two_pass_status_test` 17 of 17 on the head. - GPU tests on the RTX 3090 from the head's test build: `qsa_two_pass_parity` (with `STRATA_SELECT_TWO_PASS=1`, as its ctest entry) passes (0 queries with other ids, 0 scored-again blocks off by a bit, 0 kept blocks outside the bound), and `qsa_scores_parity` and `qsa_topk_active_parity` pass. - Default path byte-identical, and the switch output-preserving: one locked batch on the machine under System, a fresh server and engine per arm (v0.2.8's `serve/server.py`, unchanged by this PR), the deterministic lane (`STRATA_PREFILL_CPU_SHARE=0`, `--pcie-frac 0.32`, `--adapt-every 0`) on top of this machine's settings (`STRATA_TOPK_SPLIT=1`, `STRATA_CKPT_POOL=1`), temperature 0, thinking off, 64 tokens; 10,149 expert slots and 23,488 MiB of VRAM in use at ready in every arm. Ten requests per arm: three tiny chats, prompts of 992, 1,720, 3,850, 31,473 and 126,970 tokens, and a 15,998-token read followed by a turn that reads 2,025 new tokens after 16,061 reused. The reply's SHA-256 and the engine's `prompt N tokens = R reused + K read` counts are the same at every step for v0.2.8, the head with the switch unset, the head with `STRATA_SELECT_TWO_PASS=1`, and v0.2.8 again (the control). The switch printed `qsa select: two-pass scores on ...` once and its per-segment line on the three reads with 4,096 blocks or more (the follow-up turn, 32K and 128K: 84, 720 and 5,196 calls); the other arms printed neither. - Selection equality, `STRATA_SELECT_TWO_PASS=1 STRATA_SELECT_TWO_PASS_CHECK=1`, same lane: 0 queries with other ids out of 184,056 at 32K and 1,330,020 at 128K; 0 of 9,365,707 and 80,178,966 scored-again blocks not bitwise; 0 kept blocks outside the bound; the largest `|S1 - S3|` / bound 0.17 and 0.19; replies equal to the switch-on arm. - The new line on hardware: with `STRATA_SELECT_TWO_PASS=1 STRATA_QSA_WARP=1` the engine printed `strata: STRATA_SELECT_TWO_PASS=1 is not used on this CUDA card or with STRATA_QSA_WARP: ...; the selection is unchanged` once, and no two-pass line, over a tiny chat and the 31,473-token read. `qsa_two_pass_status_test` on macOS with Apple clang 17 (`-Wall -Wextra`): passes with no warning; with the once-only rule removed it fails (`the line is printed once`), and with the line removed it fails (`one line naming the path`). - Metal on macOS 15.7.7 (Apple M3, Apple clang 17.0.0, SDK 26.2), the steps of the `Metal build` workflow: base and head rc 0, the same 81 object files and the same 10 warnings. - HIP and SYCL, compile only (x86-64 Linux containers, no AMD or Intel GPU): base built in full, then the head checked out in the same tree and rebuilt (`ninja -k 0`, every target). - HIP wave32, `docs/AMD_HIP.md`'s line plus `-DSTRATA_BUILD_TESTS=ON`, in `rocm/dev-ubuntu-24.04:7.14.1-full` (HIP 7.14.60850, AMD clang 23.0.0git): base rc 0 (469 steps), head rc 0 (100 steps rebuilt). `ctest -R qsa_two_pass`: `qsa_two_pass_test` and `qsa_two_pass_status_test` pass. - HIP gfx906, `docs/AMD_HIP.md`'s line plus `-DSTRATA_BUILD_TESTS=ON`, same image: the same two tests pass and `qsa_two_pass_parity` is skipped (77). One target fails on base and head alike, `src/core/dflash2.cpp`, as on v0.2.6 below. - SYCL, the `strata-sycl-dev` recipe (oneAPI DPC++ 2026.1.0, no AOT): base and head `BUILD EXIT 0`, 0 errors; the head recompiles `qsa_select.dp.cpp`, `layer.cpp`, `verify.cpp` and `sycl/src/prefill/prefill.cpp`. - New warnings against base, keyed by file and message: none on SYCL; on both HIP builds the same 3 `hipError_t` nodiscard warnings in `prefill.cpp` as on v0.2.6 (below), and on gfx906 the same 3 in `qsa_two_pass_parity.cpp`. The review follow-up adds none. On v0.2.6 and earlier, as described above: - On revision `47b09c8d` (base `4b9e05a2`, engine 0.1.51), the build line under System: `strata strata_kq` rc 0 (166 steps; the switch's name is in the binary), and the test build with `-DSTRATA_BUILD_TESTS=ON` (the 12 GPU-free unit tests, `qsa_two_pass_test` and the four GPU tests) rc 0, with the 13 GPU-free tests passing 13 of 13. Metal, the workflow's steps as below: base `4b9e05a2` and head rc 0, the same 75 object files and the same warnings. - Builds. CUDA on the line above, targets `strata strata_kq`: base and head rc 0, the same warnings (two existing ones in `qsa_select.cu` move down one line). `qsa_select.cu` for the cuda13 package's architectures (`75-real;86-real;89-real;120-real;120-virtual`, object only): rc 0. Metal on macOS 15.7.7 (Apple M3, Apple clang 17.0.0), the steps of the `Metal build` workflow (metal-cpp 26 at its pinned SHA-256, llama.cpp `3cf03257`, `cmake -S metal -B build-metal -G Ninja -DCMAKE_BUILD_TYPE=Release ...` then `cmake --build build-metal --target strata`): base and head rc 0, the same 75 object files and the same warnings. - HIP and SYCL builds, compile only (x86-64 Linux containers, no AMD or Intel GPU): base `7dd5cf18` built in full, then this commit checked out in the same tree and rebuilt (`ninja -k 0`, every target; tests on for HIP). - HIP wave32, `docs/AMD_HIP.md`'s line (`-DSTRATA_ENABLE_HIP=ON -DSTRATA_ENABLE_CUDA=OFF -DCMAKE_HIP_ARCHITECTURES=gfx1100`) plus `-DSTRATA_BUILD_TESTS=ON`, in `rocm/dev-ubuntu-24.04:7.14.1-full` (HIP 7.14.60850, AMD clang 23.0.0git, gcc 13.3.0, CMake 3.28.3): base rc 0 (424 steps), head rc 0 (95 steps rebuilt, among them `qsa_select.cu`, `prefill.cpp`, `layer.cpp`, `verify.cpp` and the QSA tools). `ctest -R qsa_two_pass`: `qsa_two_pass_test` passes (this build does not register the GPU parity test). - HIP gfx906, `docs/AMD_HIP.md`'s line (`-DSTRATA_HIP_GFX906=ON -DCMAKE_HIP_ARCHITECTURES=gfx906`, ROCm clang as the C and C++ compiler) plus `-DSTRATA_BUILD_TESTS=ON`, same image: `qsa_select.cu`, `prefill.cpp` and `qsa_two_pass_parity` compile and link, and `qsa_two_pass_test` passes. One target fails on base and head alike: `src/core/dflash2.cpp` (`cudaDeviceGetStreamPriorityRange` and `cudaStreamCreateWithPriority` have no mapping in the gfx906 compat headers), so `strata` does not link in this configuration on `main` either. - SYCL, the `strata-sycl-dev` recipe (`docker build --pull -t strata-sycl-dev sycl/tools`, then `sycl/tools/build.sh` without AOT; oneAPI DPC++ 2026.1.0, CMake 4.2.3), configured with `STRATA_GGML_DIR` at the pinned llama.cpp: the four engine sources that include the changed `qsa_select.hpp` (`qsa_select.dp.cpp`, `layer.cpp`, `verify.cpp`, `prefill.cpp`) compile. One target fails on base and head alike: `src/kernels/cpu/iq_avx512.cpp` (`_pdep_u64` requires the `bmi2` target feature under this icpx), so `strata` does not link in this image on `main` either. - New warnings against base: none on SYCL. On both HIP builds, 3 more of the `hipError_t` nodiscard warnings in `prefill.cpp`, at lines 3447 to 3449 (an unchecked `cudaStreamSynchronize` and two `cudaFree` after `STRATA_SELECT_TWO_PASS_CHECK`'s comparison, written like the file's other runtime calls: base already reports 235 (wave32) and 227 (gfx906) of these in `prefill.cpp`); on gfx906 also 3 in `qsa_two_pass_parity.cpp` (unchecked `cudaEventDestroy`). No other new warning. - GPU-free tests: `ctest -R` over the 12 GPU-free unit tests of `CMakeLists.txt` plus `qsa_two_pass_test` in the test build of the same line with `-DSTRATA_BUILD_TESTS=ON`: head 13 of 13, base 12 of 12. `c++ -std=c++20 -O2 -Wall -Wextra -Iinclude tests/prefill/qsa_two_pass_test.cpp && ./a.out` with Apple clang 17: PASS, no warnings. - GPU tests on the RTX 3090 (`ctest -R <name> -V`, each with its own `ENVIRONMENT`): `qsa_two_pass_parity` (30 runs: 15 synthetic cases at 2K to 256K, two score-row strides; 0 queries with other ids, 0 scored-again blocks off by a bit, 0 kept blocks outside the bound, the largest `|S1 - S3| / eps` 0.41; one 256K call 1.898 ms with the 3xTF32 scorer, 0.975 ms two-pass, the per-chunk key norms not included), `qsa_scores_parity`, `qsa_select_bench`, `qsa_select_bench_fp32_tiled` and `qsa_topk_active_parity`: all pass. - Default path byte-identical, and the switch output-preserving. Deterministic lane in every arm (`STRATA_PREFILL_CPU_SHARE=0`, `--pcie-frac 0.32`, `--adapt-every 0`), a fresh engine per arm, temperature 0, thinking off, 64 tokens, prompts of 992, 31,473, 126,970 and 253,915 tokens (slices of the repository's docs at v0.2.4.1, each with a question at the end). The SHA-256 of each reply is the same for the base, the head with the switch unset and the head with `STRATA_SELECT_TWO_PASS=1` on all four prompts, and a second base arm (the control) matches on the first three. Of these arms only the switch-on one printed the two-pass line (720, 5,196 and 11,148 calls at 32K, 128K and 256K; none at 1K, which is below the minimum). - Selection equality, `STRATA_SELECT_TWO_PASS=1 STRATA_SELECT_TWO_PASS_CHECK=1 STRATA_SELECT_TWO_PASS_MIN=0` (every prompt call two-pass), same lane, 8 tokens: | Prompt | Queries | With other ids | Scored again | Of them not bitwise | Kept | Kept outside the bound | Largest `\|S1 - S3\|` / bound | |---|---|---|---|---|---|---|---| | 126,970 tokens | 1,523,556 | 0 | 86,509,329 | 0 | 24,087,710,031 | 0 | 0.196 | | 253,915 tokens | 3,046,896 | 0 | 190,693,747 | 0 | 96,509,171,765 | 0 | 0.209 | - Speed on `main`, release defaults (above), the head binary with the switch off and on, one batch in the order OFF ON ON OFF (pairs: arms 1 and 2, arms 4 and 3), a fresh engine per arm. Tiers: tiny (6 chats of 17 to 19 prompt tokens, 64 tokens each) and filler prompts of 3,948, 32,091, 128,404 and 255,571 tokens with a unique nonce in every repetition (2 runs each, 256 tokens, temperature 0, thinking off, 0 tokens reused). Engine-side numbers: prompt tokens over the engine's prompt ms, the engine's decode tok/s. | Tier | OFF | ON | ON / OFF: pair 1 run 1, run 2; pair 2 run 1, run 2 | Change | |---|---|---|---|---| | Prompt read 256K, tok/s | 1,887 | 1,984 | 1.050, 1.047, 1.055, 1.055 | +5.2% | | Prompt read 128K | 2,063 | 2,109 | 1.017, 1.020, 1.027, 1.026 | +2.2% | | Prompt read 32K | 2,164 | 2,169 | 0.994, 1.000, 1.005, 1.009 | +0.2% | | Prompt read 4K (switch not taken) | 1,322 | 1,334 | 0.997, 1.000, 1.017, 1.021 | +0.9% | | Decode after 256K, tok/s | 148.9 | 149.5 | 1.018, 0.999, 0.999, 1.001 | +0.4% | | Decode after 128K | 157.8 | 156.2 | 0.985, 1.001, 0.997, 0.979 | -1.0% | | Decode after 32K | 163.2 | 163.6 | 0.987, 1.014, 1.008, 1.002 | +0.2% | | Decode after 4K | 149.4 | 148.4 | 0.967, 0.986, 1.027, 0.995 | -0.7% | | Decode, tiny (median of 6) | 95.8 | 95.4 | 1.002, 0.991 | -0.4% | | Tiny prompt, engine prompt ms (median of 6) | 353 | 360 | 0.999, 0.963 (OFF / ON) | +2.0% (more time) | The switch's code runs only in the prompt reads of 32K and longer (each switch-on arm printed its per-prompt line for the two 32K, two 128K and two 256K prompts and nothing for the others; about 82, 98 and 106 blocks scored again per query, 0 queries flagged). Decode and the tiny tier stay within the spread of the runs. <details><summary>Every run of this batch</summary> | Arm | Tier | Run | Prompt tokens | Prompt ms | Prompt tok/s | Decode tok/s | Drafts accepted / offered | |---|---|---|---|---|---|---|---| | 1 OFF | 4K | 1 | 3,948 | 2,989 | 1,320.9 | 131.6 | 192 / 192 | | 1 OFF | 4K | 2 | 3,948 | 2,982 | 1,323.7 | 168.4 | 192 / 192 | | 1 OFF | 32K | 1 | 32,091 | 14,780 | 2,171.3 | 164.7 | 192 / 192 | | 1 OFF | 32K | 2 | 32,091 | 14,857 | 2,160.1 | 161.7 | 193 / 195 | | 1 OFF | 128K | 1 | 128,404 | 62,289 | 2,061.4 | 158.9 | 192 / 192 | | 1 OFF | 128K | 2 | 128,404 | 62,218 | 2,063.8 | 156.5 | 192 / 192 | | 1 OFF | 256K | 1 | 255,571 | 135,613 | 1,884.6 | 148.7 | 193 / 195 | | 1 OFF | 256K | 2 | 255,571 | 135,370 | 1,887.9 | 149.4 | 193 / 195 | | 2 ON | 4K | 1 | 3,948 | 2,999 | 1,316.5 | 127.3 | 192 / 192 | | 2 ON | 4K | 2 | 3,948 | 2,982 | 1,323.7 | 166.1 | 192 / 192 | | 2 ON | 32K | 1 | 32,091 | 14,862 | 2,159.3 | 162.5 | 193 / 195 | | 2 ON | 32K | 2 | 32,091 | 14,849 | 2,161.1 | 163.9 | 192 / 192 | | 2 ON | 128K | 1 | 128,404 | 61,239 | 2,096.8 | 156.5 | 193 / 195 | | 2 ON | 128K | 2 | 128,404 | 61,015 | 2,104.5 | 156.6 | 193 / 195 | | 2 ON | 256K | 1 | 255,571 | 129,166 | 1,978.6 | 151.4 | 192 / 192 | | 2 ON | 256K | 2 | 255,571 | 129,293 | 1,976.7 | 149.2 | 193 / 195 | | 3 ON | 4K | 1 | 3,948 | 2,937 | 1,344.3 | 135.2 | 193 / 195 | | 3 ON | 4K | 2 | 3,948 | 2,923 | 1,350.6 | 165.0 | 192 / 192 | | 3 ON | 32K | 1 | 32,091 | 14,752 | 2,175.4 | 163.3 | 193 / 195 | | 3 ON | 32K | 2 | 32,091 | 14,729 | 2,178.8 | 164.6 | 193 / 193 | | 3 ON | 128K | 1 | 128,404 | 60,683 | 2,116.0 | 155.9 | 193 / 195 | | 3 ON | 128K | 2 | 128,404 | 60,613 | 2,118.4 | 155.9 | 193 / 195 | | 3 ON | 256K | 1 | 255,571 | 128,323 | 1,991.6 | 148.2 | 192 / 192 | | 3 ON | 256K | 2 | 255,571 | 128,378 | 1,990.8 | 149.1 | 193 / 195 | | 4 OFF | 4K | 1 | 3,948 | 2,986 | 1,322.1 | 131.7 | 192 / 192 | | 4 OFF | 4K | 2 | 3,948 | 2,985 | 1,322.7 | 165.9 | 191 / 192 | | 4 OFF | 32K | 1 | 32,091 | 14,826 | 2,164.6 | 162.0 | 193 / 195 | | 4 OFF | 32K | 2 | 32,091 | 14,855 | 2,160.3 | 164.3 | 193 / 195 | | 4 OFF | 128K | 1 | 128,404 | 62,325 | 2,060.2 | 156.4 | 193 / 195 | | 4 OFF | 128K | 2 | 128,404 | 62,185 | 2,064.9 | 159.2 | 192 / 192 | | 4 OFF | 256K | 1 | 255,571 | 135,337 | 1,888.4 | 148.4 | 193 / 195 | | 4 OFF | 256K | 2 | 255,571 | 135,423 | 1,887.2 | 149.0 | 193 / 195 | Tiny tier, engine prompt ms of the 6 chats (17 to 19 prompt tokens, 64 generated) and decode tok/s: | Arm | Prompt ms | Decode tok/s | |---|---|---| | 1 OFF | 405.9, 378.9, 315.1, 341.0, 357.5, 347.6 | 77.7, 92.2, 90.5, 110.2, 107.4, 98.7 | | 2 ON | 414.3, 352.0, 354.3, 353.7, 348.8, 318.0 | 77.7, 90.7, 91.9, 111.7, 105.2, 99.3 | | 3 ON | 398.3, 415.8, 372.4, 360.3, 324.9, 348.9 | 77.0, 91.2, 91.1, 112.2, 109.5, 99.3 | | 4 OFF | 400.0, 386.3, 314.0, 350.9, 354.6, 332.9 | 77.8, 93.0, 91.8, 111.7, 109.4, 99.2 | Unpaired prompt times from the identity arms above (deterministic lane, one run each, not a benchmark): 253,915 tokens in 136,498 ms (base), 137,368 ms (switch unset) and 130,354 ms (switch on); 126,970 tokens in 62,982, 63,931 and 62,667 ms. </details> <details><summary>The earlier run: v0.2.4.1, 4 pairs, other settings</summary> The same commit before the rebase, on v0.2.4.1 (`c33fa7ba`, whose Qwen engine sources differ from `7dd5cf18` only in the version number), measured on the same machine on 2026-10-24 with settings that are not the release defaults: `STRATA_TOPK_SPLIT=1`, `STRATA_CKPT_POOL=1`, `--conversation-cache-min-tokens 2048` and `--conversation-cache-mib 8192` in both arms, the v0.2.4.1 server, two batches (OFF ON ON OFF, then ON OFF OFF ON), also a 1K tier and a sampled tier (4K prompt, thinking on, temperature 1.0, 2 runs). Absolute numbers are not comparable with the table above (other settings and server); compare the ratios. Per pair, ON / OFF (tiny TTFT: OFF / ON): | Tier | OFF mean | ON mean | Four pairs | Median | |---|---|---|---|---| | Prompt read 256K, run 2 | 1,890 | 1,978 | 1.048, 1.044, 1.048, 1.047 | 1.047 | | Prompt read 256K, run 1 | 1,889 | 1,976 | 1.046, 1.044, 1.048, 1.046 | 1.046 | | Prompt read 128K, run 2 | 2,066 | 2,101 | 1.019, 1.012, 1.017, 1.020 | 1.018 | | Prompt read 128K, run 1 | 2,068 | 2,102 | 1.012, 1.015, 1.018, 1.020 | 1.017 | | Prompt read 32K | 2,201 | 2,189 | 0.988, 0.996, 0.999, 0.994 | 0.995 | | Prompt read 4K | 1,457 | 1,455 | 1.004, 0.986, 0.999, 1.005 | 1.001 | | Prompt read 1K | 737 | 736 | 0.997, 0.991, 1.005, 1.000 | 0.999 | | Decode after 256K | 156.6 | 156.1 | 1.003, 1.001, 1.002, 0.982 | 1.002 | | Decode after 128K | 159.7 | 160.5 | 1.012, 1.004, 1.005, 0.998 | 1.005 | | Decode after 32K | 165.1 | 164.6 | 0.989, 0.987, 1.002, 1.008 | 0.996 | | Decode after 4K | 170.7 | 170.6 | 0.979, 1.000, 1.017, 1.001 | 1.000 | | Decode after 1K | 169.7 | 170.6 | 0.944, 1.039, 1.040, 1.001 | 1.020 | | Decode, tiny | 95.4 | 95.0 | 0.994, 0.996, 1.002, 0.992 | 0.995 | | Decode, sampled | 94.7 | 94.1 | 0.978, 0.950, 1.074, 0.977 | 0.978 | | Time to first token, tiny, engine ms | 115 | 111 | 1.066, 0.992, 1.055, 1.008 | 1.031 | The switch does not run on the sampled prompt (it is below the minimum), and the two sampled runs inside one arm differed by up to 30 tok/s there. 32K was 0.5% slower in that run and +0.2% in the run above. </details> **Failed:** - None observed, on v0.2.8 or on the earlier revisions. **Not run:** - Running on AMD, Intel or Apple hardware. The new line on HIP, Metal and SYCL is checked by `qsa_two_pass_status_test` and by compiling those builds, not by running an engine there; the layer-major line needs a layer split (two cards) and was not run. On HIP the two-pass kernels are not compiled (the stubs return false), so `Prefill::run` makes today's calls; `qsa_two_pass_parity` returns 77 under `STRATA_HIP_GFX906` before any runtime call (from reading the code: in the build container it could not start, because the image does not put the ROCm runtime on the loader path). - Windows (MSVC) builds (the parity test sets its variable with `_putenv_s` there, as `qsa_topk_active_parity` does); execution on any card but sm_86 (sm_75, sm_89 and sm_120 were compiled only; sm_75 has no two-pass path); a second machine. - Output identity in the default lane (adaptive CPU share and PCIe split): the identity runs pin both, as above. Task-quality or long-context recall checks (the check above shows the same selected cells, and the replies were byte-identical). ## Limits - The bound rests on one stated model of the MMA's accumulation (within 16 FP32 ulps of the absolute sum per MMA). On the real prompts the largest `|S1 - S3|` used 0.21 of the bound, on the synthetic GPU cases 0.41; the GPU-free test's worst constructed case (q = k at the worst rounding) reaches 0.84 under a rounding MMA model. - Rows with many blocks inside the bound at the cut-off (heavy exact ties, or keys whose single-pass error is large against the spread of the scores) fall back to a full 3xTF32 re-score of their 16-query tile: exact, but slower than today. No query was flagged on the real prompts here. - The gain grows with the prompt: below `STRATA_SELECT_TWO_PASS_MIN` (4096 blocks) nothing changes, and 32K is about even. The default minimum is not tuned. The top-k still reads the full row, so the select phase does not shrink by the whole scoring cost. - CUDA sm_80+ and the prompt path only. One RTX 3090 on PCIe 3.0 at 250 W; no claim for other machines. - The layer-major prompt path (#3976), on by default for a layer split since v0.2.7, does not use the two-pass scorer; a set switch says so once. - Timing is from v0.2.6; it was not repeated on v0.2.8. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 16:31:16 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#4907
No description provided.