Commit Graph
8 Commits
Author SHA1 Message Date
Eddoursul 282334701a Verify window: the commit graph runs beside the MTP draft (it was launched and waited for alone, 0.67 ms a round); UD-Q4_K_XL code +0.9% 2026-09-26 06:54:27 +02:00
Eddoursul f4ee9b58cb Second GPU: the next layer's likeliest experts copied to it while the RAM is idle (--second-gpu-prefetch 4), its rows out in full PCIe transactions, the second tier's moves paced behind the prefetch
Each layer's router also runs on the previous layer's FFN input on a side branch of the verify window's graph; once
the CPU's rows of a layer are in, the host copies the next layer's likeliest experts that no GPU holds into prefetch
slots on the second GPU (~0.3 ms of idle RAM per layer), and that layer's share takes them from there. The second
GPU's down kernel wrote its rows one float at a time into mapped host memory: 0.25 ms a layer, and the CPU pool read
RAM at 38 instead of 48 GB/s. UD-Q4_K_XL code, fixed text: 71.6 -> 77.4 t/s (rows) -> 86.1 (prefetch 4); thinking
70.2 -> 73.6.
2026-09-26 06:16:00 +02:00
Eddoursul af76f64ebd QSA: block scores sized to the blocks in use; the prompt path's attention in one pass per query
qsa_block_scores launched a warp for every block of the full context
(max_cells / 4, 50K blocks at 200K) for every query, nearly all of them
idle.  Its warps now go round over the blocks: the verify window and the
token path use a fixed grid of 1024 per query, the prompt path the chunk's
largest n_bid + 1.  Each score is computed as before (bitwise).

qsa_prefill_attn: the prompt path's attention, a block per (KV head, query)
walking the query's selected cells in tiles of 64 with an online softmax,
instead of the decode kernel's split-K partial sums through memory.  FP32;
int8 codes are converted without I2F.  verify_parity checks it against the
decode kernel (relative difference 3.9e-6).

16K-token prompt: IQ3_XXS 18.3 -> 15.9 s, UD-Q4_K_XL 24.8 -> 22.4 s.
2026-09-26 00:56:06 +02:00
Eddoursul 939add21bb Verify window: the QSA layer's per-token kernels batched; --window-hashes
RoPE (native_rope_apply_tokens), the int8 K/V append (kv_append_q8_steps),
the indexer append (native_qsa_indexer_append_multi), the q/gate split, the
q/k norms and the gate now run once per window instead of once per token.
Each token's arithmetic is unchanged: verify_parity checks the new kernels
bitwise against the per-token ones, and --window-hashes writes a hash of
each window's final residual rows so two builds can be compared end to end.
2026-09-25 23:32:43 +02:00
Eddoursul 22f4b8c705 Verify window: multi-token router, indexer projections and shared-expert gate (one weight read, one launch) 2026-09-25 22:29:52 +02:00
Eddoursul 6bc67debdc Verify window: one gather-combine reads only the host's rows over PCIe; no PCIe stage without a PCIe share 2026-09-25 22:22:07 +02:00
Eddoursul dd97f87084 --window-profile: GPU time of each stage of the verify window 2026-09-25 22:03:24 +02:00
Niko1221andClaude Opus 5.5 f2a08d4b2d Strata: Qwen3.8-Flash-Next on a 12-24 GB NVIDIA GPU + 64 GB RAM, one-click install
Inference engine, OpenAI/Anthropic API on localhost, optional image input, one-file setup
(START-HERE.bat / setup.sh). Model files are downloaded from Hugging Face by the setup.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0154bwiad8gY7wRehCXy27pN
2026-09-24 18:42:20 +02:00