[GH-ISSUE #4353] [Engine] Opt-in reusable prefill workspaces and decoded-weight caches for near-1M DeepSeek prompts #1922

Open
opened 2026-11-04 01:55:20 +07:00 by bsakaguchi · 3 comments
Owner

Originally created by @moniljo on GitHub (Oct 27, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/4353

Area

[Engine] (speed, kernels, models, the server and API)

What do you want to do?

Would you welcome opt-in prefill workspace reuse, compaction/rearm and bounded decoded-weight caches for near-1M DeepSeek prompts? Strata already supports the context length; this proposal concerns how quickly it processes a large fresh prompt and how much transient workspace can return to the expert cache afterward. I am requesting scope agreement before preparing incremental PRs, with no default change proposed.

This is the prefill/memory counterpart to #4351. That issue covers GPU execution of expert misses and its cancellation recovery. Here the goal is to make both the first and a later unrelated long prompt efficient, while retaining all model state and accounting for resize/rearm time inside the request. The two features should share one reviewed lifecycle/ownership mechanism rather than create competing registration managers.

What do you do today instead?

I run a custom build on one Windows RTX PRO 6000 Blackwell Max-Q 96 GB / 300 W, Ryzen 9 7950X3D, nominal 256 GiB RAM (255.2 GiB reported) and NVMe. The model is the exact OrcaRouter DeepSeek-V4.1-Flash-1017 abliterated Mix-256G originals plus lossless compatibility sidecars, all six trunk experts, 1,048,576 total context, CPU 16 and DSpark on/block 3/confidence 0.65. No smaller trunk quantization or expert reduction was used.

The source-only recipe, setup and reproduction commands, experiment history, and receipt catalog are pinned. Source overlays/controllers, compact results and raw receipt hashes are available; weights, binaries, keys and private conversations are omitted. The current custom port is based on v0.2.7 / engine 0.1.52, upstream 5e8a4cca7d690ac60ca37eb09e7d0e010099ad6d. This work used Codex assistance; source review and actual execution results are kept distinct.

Proposed incremental scope

  1. A checked prefill workspace phase. Let an eligible one-GPU, copied-RAM/no-demand-store configuration allocate a larger prompt layout, then drain work, retire temporary caches and replace prompt-sized scratch before growing the resident expert pool. The tested geometry is C=65,280 / A=4,096 / AI=128, then C=1,024 / A=1,024 / AI=128 for decode. KV, tokens, checkpoints and persistent model allocations must remain intact; this is not context truncation or all-model VRAM residency.
  2. Rearm for a later long request. Acquire a drained worker epoch, check current maps/slots, physical RAM, commit and GPU headroom, shrink the current expert pool safely and restore all required buffers before publishing the large layout. Include this work in that request's TTFT. Avoid a one-time fast first request followed by permanently compact/slower ingestion. Thresholds should remain explicit and measured rather than become a universal default.
  3. Bounded decoded-weight caches as follow-up slices. The prototype reuses dense attention projections (224 MiB), one Engram projection matrix at a time (300 MiB, not the entire lookup table), and up to eight cold FP16 expert operands (540 MiB, plus bounded output/workspace allocations). Retain the declared existing GEMM/operand contract and original files; retire these temporary caches before pool growth. Each cache needs an isolated ablation before claiming its own speed gain.

The current implementation is a larger prototype, not a proposed single upstream diff. The first patch could be just phase ownership/retirement/rearm with counters and guards. Attention/router/indexer/GGML fast paths should remain separate until isolated measurements justify them; some enabled paths are inherited upstream functionality.

Measured near-1M results and their scope

The long-context campaign records these historical whole-configuration observations on the same model and machine:

Arm Fresh 999,764-token seed TTFT Original-12 decode, actual ID intervals/s Raw FIRST grades
v0.2.6 comparator plus required Q6/checkpoint fixes 843.207 s 22.0475 12/13
Custom c677 / Opt18, wave 1 335.008 s 34.2818 13/13
Same custom process, later fresh wave 2 329.842 s 35.5984 13/13

The catalog identifies comparator report f037d22df554… and custom report 87a4c15cc03c…. Code/dependencies, C/A/AI geometry, reserve and copy settings changed together. These results do not isolate a particular cache, establish a pure version regression, or measure stock v0.2.7. The historical c677 build reused retained Opt17 objects/libraries; it was not the later fresh portable build.

Both custom seeds reused zero prompt tokens, with an unrelated interlude between the waves. Natural followup EOS, exact shared-prefix reuse, phase/rearm, source protection and owned native-zero cleanup were checked. Zero KV reuse does not mean a purged process, expert cache, OS page cache or cold SSD. Decode counts actual emitted token-ID intervals over the original twelve tasks, including reasoning/control/EOS IDs; it is not HTTP chunk rate. Outputs differ in length.

The retained custom report 87a4c15cc03c… and local architecture readback also observed 41 GPU work buffers shrinking from 15.529 to 0.581 GiB, six host buffers from 13.996 to 0.220 GiB, and an expert pool growing from about 63.93 to 83.7 decimal GB. Wave 2 paid 9.215 s of rearm inside TTFT, with new dense/Engram cache work and physical registration retirement to zero. These are selected allocations/mechanism observations, not a complete VRAM accounting or a per-cache causal speed measurement. Detailed private logs are not presented as public raw data.

A separately controlled interactive probe lowered only the repeated-prefill threshold to 32,768. After a short warmup, the same unrelated 85,366-token synthetic prompt changed from 256.248 to 78.796 s TTFT, including maintenance. Its later near-1M seed was 327.217 s with a limited followup set; that subset is not another full two-wave qualification.

Failures, validation limits and proposed acceptance

  • Earlier Opt9/Opt12/Opt15 runs retained 12/13 raw results, and the initial v0.2.6 automatic attempt was incomplete. Alternative attention groups/layouts, split/slab attention, global KV unpacking and reduced-precision studies did not establish stable whole-path wins. CPU32/SMT and no-MTP screens were slower locally. The linked history preserves these outcomes.
  • The latest v0.2.7 port was 1.35%/1.63% slower in decode and 1.11%/1.96% higher in TTFT than the previous custom build. Its raw result is still 25/26 failed, alongside the separately predeclared corrected-primary 24/24 pass; no grade was repaired. It does not establish a stock-v0.2.7 speedup. The update notes separate source preparation, the fresh build and later loaded qualification.
  • Current full-build CUDA fixtures, repeated near-1M requests and five Stop modes passed within their recorded scopes. That validates the tested bundle, not every proposed isolated patch. Host registration consumes physical RAM/driver resources; it is not additional VRAM, and a page file cannot substitute for it. Admission failure must preserve the existing path safely.
  • This is one Windows/CUDA/SM120a machine/model configuration. HIP builds/execution, Linux CUDA, other GPUs, lower RAM, batching, multi-GPU and broad quality/perplexity acceptance remain untested. Official FP8 logit equality and CPU/GPU bit identity are not claimed. These are community measurements, not approved standard-protocol results.
  • Before code review, each isolated slice would need fresh affected-backend builds, default-off regression checks, same-hardware before/after runs, fresh and reused prefixes, a later unrelated long request, cancellation and memory-pressure checks, and explicit failed/not-run records. Missing backends would keep a PR in draft.

I searched open and closed discussions and inspected current main at the commit above. Related work includes #4351 (our GPU-miss/recovery scope), #4123 (CPU-lane/DSpark streaming), #4286 (registered-store allocation), #4199 (batching), and #4219 (Windows prompt-performance reports). Main already has attention slab/store/cache handling; absence of these exact custom controls does not prove there is no equivalent upstream mechanism. I am asking how best to integrate with the current design.

Would you prefer workspace phase ownership and repeat-request rearm first, then one bounded cache per PR? Which existing worker/store interface should own the transition, and what 1M-specific quality, reuse and backend gates would you want before accepting those patches?

Originally created by @moniljo on GitHub (Oct 27, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/4353 ### Area [Engine] (speed, kernels, models, the server and API) ### What do you want to do? Would you welcome **opt-in prefill workspace reuse, compaction/rearm and bounded decoded-weight caches for near-1M DeepSeek prompts**? Strata already supports the context length; this proposal concerns how quickly it processes a large fresh prompt and how much transient workspace can return to the expert cache afterward. I am requesting scope agreement before preparing incremental PRs, with no default change proposed. This is the prefill/memory counterpart to #4351. That issue covers GPU execution of expert misses and its cancellation recovery. Here the goal is to make both the first and a later unrelated long prompt efficient, while retaining all model state and accounting for resize/rearm time inside the request. The two features should share one reviewed lifecycle/ownership mechanism rather than create competing registration managers. ### What do you do today instead? I run a custom build on one Windows RTX PRO 6000 Blackwell Max-Q 96 GB / 300 W, Ryzen 9 7950X3D, nominal 256 GiB RAM (255.2 GiB reported) and NVMe. The model is the exact OrcaRouter DeepSeek-V4.1-Flash-1017 abliterated Mix-256G originals plus lossless compatibility sidecars, all six trunk experts, 1,048,576 total context, CPU 16 and DSpark on/block 3/confidence 0.65. No smaller trunk quantization or expert reduction was used. The [source-only recipe](https://github.com/moniljo/deepseek-uncensored-rtx6000/tree/5a26a9a2efc64e4fbcc5abf17c0d38299926c643), [setup and reproduction commands](https://github.com/moniljo/deepseek-uncensored-rtx6000/blob/5a26a9a2efc64e4fbcc5abf17c0d38299926c643/docs/setup.md), [experiment history](https://github.com/moniljo/deepseek-uncensored-rtx6000/blob/5a26a9a2efc64e4fbcc5abf17c0d38299926c643/docs/experiments.md), and [receipt catalog](https://github.com/moniljo/deepseek-uncensored-rtx6000/blob/5a26a9a2efc64e4fbcc5abf17c0d38299926c643/evidence/experiment-catalog.json) are pinned. Source overlays/controllers, compact results and raw receipt hashes are available; weights, binaries, keys and private conversations are omitted. The current custom port is based on v0.2.7 / engine 0.1.52, upstream `5e8a4cca7d690ac60ca37eb09e7d0e010099ad6d`. This work used Codex assistance; source review and actual execution results are kept distinct. ### Proposed incremental scope 1. **A checked prefill workspace phase.** Let an eligible one-GPU, copied-RAM/no-demand-store configuration allocate a larger prompt layout, then drain work, retire temporary caches and replace prompt-sized scratch before growing the resident expert pool. The tested geometry is C=65,280 / A=4,096 / AI=128, then C=1,024 / A=1,024 / AI=128 for decode. KV, tokens, checkpoints and persistent model allocations must remain intact; this is not context truncation or all-model VRAM residency. 2. **Rearm for a later long request.** Acquire a drained worker epoch, check current maps/slots, physical RAM, commit and GPU headroom, shrink the current expert pool safely and restore all required buffers before publishing the large layout. Include this work in that request's TTFT. Avoid a one-time fast first request followed by permanently compact/slower ingestion. Thresholds should remain explicit and measured rather than become a universal default. 3. **Bounded decoded-weight caches as follow-up slices.** The prototype reuses dense attention projections (224 MiB), one Engram projection matrix at a time (300 MiB, not the entire lookup table), and up to eight cold FP16 expert operands (540 MiB, plus bounded output/workspace allocations). Retain the declared existing GEMM/operand contract and original files; retire these temporary caches before pool growth. Each cache needs an isolated ablation before claiming its own speed gain. The [current implementation](https://github.com/moniljo/deepseek-uncensored-rtx6000/blob/5a26a9a2efc64e4fbcc5abf17c0d38299926c643/source/strata/src/dsv41/ds4_model.cu) is a larger prototype, not a proposed single upstream diff. The first patch could be just phase ownership/retirement/rearm with counters and guards. Attention/router/indexer/GGML fast paths should remain separate until isolated measurements justify them; some enabled paths are inherited upstream functionality. ### Measured near-1M results and their scope The [long-context campaign](https://github.com/moniljo/deepseek-uncensored-rtx6000/blob/5a26a9a2efc64e4fbcc5abf17c0d38299926c643/docs/experiments.md#long-context-mix-campaign) records these historical whole-configuration observations on the same model and machine: | Arm | Fresh 999,764-token seed TTFT | Original-12 decode, actual ID intervals/s | Raw FIRST grades | |---|---:|---:|---:| | v0.2.6 comparator plus required Q6/checkpoint fixes | 843.207 s | 22.0475 | 12/13 | | Custom c677 / Opt18, wave 1 | 335.008 s | 34.2818 | 13/13 | | Same custom process, later fresh wave 2 | 329.842 s | 35.5984 | 13/13 | The catalog identifies comparator report `f037d22df554…` and custom report `87a4c15cc03c…`. **Code/dependencies, C/A/AI geometry, reserve and copy settings changed together.** These results do not isolate a particular cache, establish a pure version regression, or measure stock v0.2.7. The historical c677 build reused retained Opt17 objects/libraries; it was not the later fresh portable build. Both custom seeds reused zero prompt tokens, with an unrelated interlude between the waves. Natural followup EOS, exact shared-prefix reuse, phase/rearm, source protection and owned native-zero cleanup were checked. Zero KV reuse does not mean a purged process, expert cache, OS page cache or cold SSD. Decode counts actual emitted token-ID intervals over the original twelve tasks, including reasoning/control/EOS IDs; it is not HTTP chunk rate. Outputs differ in length. The retained custom report `87a4c15cc03c…` and local architecture readback also observed **41 GPU work buffers shrinking from 15.529 to 0.581 GiB**, six host buffers from 13.996 to 0.220 GiB, and an expert pool growing from about **63.93 to 83.7 decimal GB**. Wave 2 paid **9.215 s of rearm inside TTFT**, with new dense/Engram cache work and physical registration retirement to zero. These are selected allocations/mechanism observations, not a complete VRAM accounting or a per-cache causal speed measurement. Detailed private logs are not presented as public raw data. A separately controlled [interactive probe](https://github.com/moniljo/deepseek-uncensored-rtx6000/blob/5a26a9a2efc64e4fbcc5abf17c0d38299926c643/docs/experiments.md#interactive-prefill-and-decode-controls) lowered only the repeated-prefill threshold to 32,768. After a short warmup, the same unrelated 85,366-token synthetic prompt changed from **256.248 to 78.796 s TTFT**, including maintenance. Its later near-1M seed was 327.217 s with a limited followup set; that subset is not another full two-wave qualification. ### Failures, validation limits and proposed acceptance - Earlier Opt9/Opt12/Opt15 runs retained 12/13 raw results, and the initial v0.2.6 automatic attempt was incomplete. Alternative attention groups/layouts, split/slab attention, global KV unpacking and reduced-precision studies did not establish stable whole-path wins. CPU32/SMT and no-MTP screens were slower locally. The linked history preserves these outcomes. - The [latest v0.2.7 port](https://github.com/moniljo/deepseek-uncensored-rtx6000/blob/5a26a9a2efc64e4fbcc5abf17c0d38299926c643/evidence/update-027-native.json) was **1.35%/1.63% slower in decode and 1.11%/1.96% higher in TTFT than the previous custom build**. Its raw result is still **25/26 failed**, alongside the separately predeclared corrected-primary 24/24 pass; no grade was repaired. It does not establish a stock-v0.2.7 speedup. The [update notes](https://github.com/moniljo/deepseek-uncensored-rtx6000/blob/5a26a9a2efc64e4fbcc5abf17c0d38299926c643/docs/update-027.md) separate source preparation, the fresh build and later loaded qualification. - Current full-build CUDA fixtures, repeated near-1M requests and five Stop modes passed within their recorded scopes. That validates the tested bundle, not every proposed isolated patch. Host registration consumes physical RAM/driver resources; it is not additional VRAM, and a page file cannot substitute for it. Admission failure must preserve the existing path safely. - This is one Windows/CUDA/SM120a machine/model configuration. HIP builds/execution, Linux CUDA, other GPUs, lower RAM, batching, multi-GPU and broad quality/perplexity acceptance remain untested. Official FP8 logit equality and CPU/GPU bit identity are not claimed. These are community measurements, not approved standard-protocol results. - Before code review, each isolated slice would need fresh affected-backend builds, default-off regression checks, same-hardware before/after runs, fresh and reused prefixes, a later unrelated long request, cancellation and memory-pressure checks, and explicit failed/not-run records. Missing backends would keep a PR in draft. ### Related work and maintainer questions I searched open and closed discussions and inspected current main at the commit above. Related work includes #4351 (our GPU-miss/recovery scope), #4123 (CPU-lane/DSpark streaming), #4286 (registered-store allocation), #4199 (batching), and #4219 (Windows prompt-performance reports). Main already has attention slab/store/cache handling; absence of these exact custom controls does not prove there is no equivalent upstream mechanism. I am asking how best to integrate with the current design. Would you prefer **workspace phase ownership and repeat-request rearm first, then one bounded cache per PR**? Which existing worker/store interface should own the transition, and what 1M-specific quality, reuse and backend gates would you want before accepting those patches?
Author
Owner

@Niko1221 commented on GitHub (Nov 5, 2026):

Thanks for taking the time to report this.

Strata has changed a lot since this was opened, and 0.2.11 is out now, so many older reports no longer apply. We're closing issues older than a week that have had no new reports in the last week. Closed here does not mean rejected.

To reopen it takes about two minutes:

  1. Re-test on 0.2.11. It may already be fixed. Write down what you see.
  2. Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other].
  3. Fill in the parts of the issue form: what happened, the Strata version, your graphics card, memory and system.
  4. Comment /reopen. A check runs and either reopens the issue or lists what is still missing.

The rules are in CONTRIBUTING.md.

<!-- gh-comment-id:6660291030 --> @Niko1221 commented on GitHub (Nov 5, 2026): Thanks for taking the time to report this. Strata has changed a lot since this was opened, and 0.2.11 is out now, so many older reports no longer apply. We're closing issues older than a week that have had no new reports in the last week. Closed here does not mean rejected. To reopen it takes about two minutes: 1. Re-test on 0.2.11. It may already be fixed. Write down what you see. 2. Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other]. 3. Fill in the parts of the issue form: what happened, the Strata version, your graphics card, memory and system. 4. Comment `/reopen`. A check runs and either reopens the issue or lists what is still missing. The rules are in [CONTRIBUTING.md](https://github.com/Niko1221/Strata/blob/main/CONTRIBUTING.md).
Author
Owner

@moniljo commented on GitHub (Nov 7, 2026):

/reopen

What happened

I retested on 0.2.11 on November 6 as requested, then repeated the comparison on 0.2.12 on November 7. The goal is to process a fresh near-1M-token DeepSeek prompt quickly, then return unused prefill workspace to the GPU expert cache. A later long prompt must be able to rebuild that workspace, including after a request is stopped.

The 0.2.11 build with only the Q6 compatibility patch was slower than my custom 0.2.7 baseline. After porting the larger workspace, prompt shortcut, and GPU expert-miss path, my custom 0.2.12 build matched cold first-output latency and improved cached decode. Repeat prefill after a STOP exposed a workspace ownership bug in my port. The repair passed the functional checks, and the first-response speed after interrupted prefill remains unresolved.

Strata version

Source builds from tags v0.2.7 (5e8a4cca, engine 0.1.52), v0.2.11 (c3b3f503, engine 0.1.57), and v0.2.12 (146df3c4, engine 0.1.58). The first 0.2.11 comparison used only the grouped-Q6 CUDA compatibility change needed for this pack. The other builds carried local optimizations. Stock binaries were outside this timing comparison. 0.2.11 release · 0.2.12 release

Graphics card, memory and system

Windows 11 x64 build 26300, one RTX PRO 6000 Blackwell Max-Q with 96 GB VRAM, Ryzen 9 7950X3D, 256 GiB system RAM, and NVMe. CUDA 13.2 and MSVC 19.44, targeting SM120a. The first comparison used NVIDIA 617.14. The subsequent comparisons used 621.14, with the same driver on both sides of each comparison.

Steps used to reproduce

  1. Use the exact OrcaRouter DeepSeek V4.1 Flash Mix-256G originals and lossless compatibility sidecars. Start one fresh engine per arm with the same initial expert profile and Python frontend. Both arms use a 1,048,576-token context, six routed experts, 16 CPU threads, --mmap-experts off, and DSpark on with block 3 and confidence 0.65. The full port requests 65,280-token prefill chunks, compacts them to 1,024 for decode, and copies nonresident experts directly from registered system RAM to the GPU. The public recipe builds custom 0.2.7 and provides a portable two-wave benchmark. The exact later source overlays, seven-request harness, and raw logs remain local. Baseline setup · Public baseline benchmark
  2. Stream a synthetic 999,937-token input with zero prefix reuse. Follow with six requests sharing 999,764 tokens, alternating 33 and 173 new tokens three times each. Measure time to the first streamed piece, including reasoning, and pool native first-to-last emitted token intervals across the six follow-ups. Check exact reuse and answer grades. Cold here means a fresh engine and zero prompt reuse. The OS file cache can persist.
  3. In a separate fresh engine, submit 131,072 input tokens. Send native STOP while it is still reading. The observed progress was 43,691 tokens with zero generated. Drain the cancellation, run a standalone 168-token coding prompt, then submit the 131,072-token input again with a one-token output cap to force workspace rearm. Run a cached coding follow-up, then repeat the same standalone coding prompt. Expected behavior is a valid STOP, completed coding responses, successful rebuild and compaction, and working prefix reuse.

Retest results

Date and driver Build Cold first streamed output Cached decode (tok/s)
Nov 6 · 617.14 Custom 0.2.7 reference 334.42 s 43.39
Nov 6 · 617.14 0.2.11 with only Q6 compatibility 714.19 s 26.31
Nov 6 · 621.14 Custom 0.2.7 reference 329.58 s 43.22
Nov 6 · 621.14 First full 0.2.11 port 684.56 s 46.62
Nov 6 · 621.14 Corrected full 0.2.11 port 350.97 s 44.30
Nov 7 · 621.14 Custom 0.2.7, two reference runs 352.34–352.59 s 41.47–41.67
Nov 7 · 621.14 Repaired custom 0.2.12, one run 350.33 s 46.23

The compatibility-only 0.2.11 build passed all seven answer checks, capped the requested 65,280-token chunk at 32,768, and ran with its optional PCIe expert streaming off. That comparison changes several engine settings together. In the full 0.2.11 port, restoring the checkpoint-safe YOCO shortcut with its 2,668-row full tail reduced cold trunk expert selections from 239.96M to 120.31M. The corrected port still missed the latency gate. The repaired 0.2.12 run passed the near-1M timing and answer checks, gaining 10.9–11.5% cached decode against the two same-day references. Cached first-output medians were 1.92 s and 4.63 s versus 1.86–1.95 s and 4.59–4.64 s on the references.

Cancellation results. The first 0.2.12 port failed step 3 with repeat prefill rearm: workspace regrow: allocation/initialization/ownership transaction: invalid/aliased/unowned old regrow buffer. Its regrow code expected two inter-GPU handoff buffers that the one-GPU allocation skips. The repaired port rebuilt the actual 41 device and four pinned host buffers, compacted with 3,401 MiB of VRAM free, and passed coding, reuse, and cleanup. It also passed a separate STOP during near-1M decode, with the next coding response at 52.84 tok/s.

The first response after prefill STOP ran at 31.83 tok/s versus 51.11 tok/s for the later standalone response with the same input IDs. That missed our preset 95% gate. A fresh uncancelled run of the same coding input ran at 24.80 tok/s. Generated continuations and expert-cache state differed, so the speed penalty attributable to STOP remains unresolved. The full live 0.2.12 frontend qualification was held at that gate.

Proposed next step

Would you prefer an opt-in patch that derives the resize plan from the buffers actually allocated, with single- and multi-group fixtures, before reviewing the larger prefill and GPU expert-miss changes? For the remaining speed question, I would pair fresh processes with the same starting profile and matched prompt work, then compare the same emitted token prefix or replay fixed token IDs. I would record recovery time, first-token latency, expert residency and direct transfer bytes per token separately from decode throughput. The registration lifecycle overlaps with #4351.

I used Codex to help run and document these tests.

<!-- gh-comment-id:6711160972 --> @moniljo commented on GitHub (Nov 7, 2026): /reopen ### What happened I retested on 0.2.11 on November 6 as requested, then repeated the comparison on 0.2.12 on November 7. The goal is to process a fresh near-1M-token DeepSeek prompt quickly, then return unused prefill workspace to the GPU expert cache. A later long prompt must be able to rebuild that workspace, including after a request is stopped. The 0.2.11 build with only the Q6 compatibility patch was slower than my custom 0.2.7 baseline. After porting the larger workspace, prompt shortcut, and GPU expert-miss path, my custom 0.2.12 build matched cold first-output latency and improved cached decode. Repeat prefill after a STOP exposed a workspace ownership bug in my port. The repair passed the functional checks, and the first-response speed after interrupted prefill remains unresolved. ### Strata version Source builds from tags `v0.2.7` (`5e8a4cca`, engine 0.1.52), `v0.2.11` (`c3b3f503`, engine 0.1.57), and `v0.2.12` (`146df3c4`, engine 0.1.58). The first 0.2.11 comparison used only the grouped-Q6 CUDA compatibility change needed for this pack. The other builds carried local optimizations. Stock binaries were outside this timing comparison. [0.2.11 release](https://github.com/Niko1221/Strata/releases/tag/v0.2.11) · [0.2.12 release](https://github.com/Niko1221/Strata/releases/tag/v0.2.12) ### Graphics card, memory and system Windows 11 x64 build 26300, one RTX PRO 6000 Blackwell Max-Q with 96 GB VRAM, Ryzen 9 7950X3D, 256 GiB system RAM, and NVMe. CUDA 13.2 and MSVC 19.44, targeting SM120a. The first comparison used NVIDIA 617.14. The subsequent comparisons used 621.14, with the same driver on both sides of each comparison. ### Steps used to reproduce 1. Use the exact OrcaRouter DeepSeek V4.1 Flash Mix-256G originals and lossless compatibility sidecars. Start one fresh engine per arm with the same initial expert profile and Python frontend. Both arms use a 1,048,576-token context, six routed experts, 16 CPU threads, `--mmap-experts off`, and DSpark on with block 3 and confidence 0.65. The full port requests 65,280-token prefill chunks, compacts them to 1,024 for decode, and copies nonresident experts directly from registered system RAM to the GPU. The public recipe builds custom 0.2.7 and provides a portable two-wave benchmark. The exact later source overlays, seven-request harness, and raw logs remain local. [Baseline setup](https://github.com/moniljo/deepseek-uncensored-rtx6000/blob/main/docs/setup.md) · [Public baseline benchmark](https://github.com/moniljo/deepseek-uncensored-rtx6000/blob/main/bench/README.md) 2. Stream a synthetic 999,937-token input with zero prefix reuse. Follow with six requests sharing 999,764 tokens, alternating 33 and 173 new tokens three times each. Measure time to the first streamed piece, including reasoning, and pool native first-to-last emitted token intervals across the six follow-ups. Check exact reuse and answer grades. Cold here means a fresh engine and zero prompt reuse. The OS file cache can persist. 3. In a separate fresh engine, submit 131,072 input tokens. Send native `STOP` while it is still reading. The observed progress was 43,691 tokens with zero generated. Drain the cancellation, run a standalone 168-token coding prompt, then submit the 131,072-token input again with a one-token output cap to force workspace rearm. Run a cached coding follow-up, then repeat the same standalone coding prompt. Expected behavior is a valid STOP, completed coding responses, successful rebuild and compaction, and working prefix reuse. ### Retest results | Date and driver | Build | Cold first streamed output | Cached decode (tok/s) | | --- | --- | ---: | ---: | | Nov 6 · 617.14 | Custom 0.2.7 reference | 334.42 s | 43.39 | | Nov 6 · 617.14 | 0.2.11 with only Q6 compatibility | 714.19 s | 26.31 | | Nov 6 · 621.14 | Custom 0.2.7 reference | 329.58 s | 43.22 | | Nov 6 · 621.14 | First full 0.2.11 port | 684.56 s | 46.62 | | Nov 6 · 621.14 | Corrected full 0.2.11 port | 350.97 s | 44.30 | | Nov 7 · 621.14 | Custom 0.2.7, two reference runs | 352.34–352.59 s | 41.47–41.67 | | Nov 7 · 621.14 | Repaired custom 0.2.12, one run | 350.33 s | 46.23 | The compatibility-only 0.2.11 build passed all seven answer checks, capped the requested 65,280-token chunk at 32,768, and ran with its optional PCIe expert streaming off. That comparison changes several engine settings together. In the full 0.2.11 port, restoring the checkpoint-safe YOCO shortcut with its 2,668-row full tail reduced cold trunk expert selections from 239.96M to 120.31M. The corrected port still missed the latency gate. The repaired 0.2.12 run passed the near-1M timing and answer checks, gaining 10.9–11.5% cached decode against the two same-day references. Cached first-output medians were 1.92 s and 4.63 s versus 1.86–1.95 s and 4.59–4.64 s on the references. **Cancellation results.** The first 0.2.12 port failed step 3 with `repeat prefill rearm: workspace regrow: allocation/initialization/ownership transaction: invalid/aliased/unowned old regrow buffer`. Its regrow code expected two inter-GPU handoff buffers that the one-GPU allocation skips. The repaired port rebuilt the actual 41 device and four pinned host buffers, compacted with 3,401 MiB of VRAM free, and passed coding, reuse, and cleanup. It also passed a separate STOP during near-1M decode, with the next coding response at 52.84 tok/s. The first response after prefill STOP ran at 31.83 tok/s versus 51.11 tok/s for the later standalone response with the same input IDs. That missed our preset 95% gate. A fresh uncancelled run of the same coding input ran at 24.80 tok/s. Generated continuations and expert-cache state differed, so the speed penalty attributable to STOP remains unresolved. The full live 0.2.12 frontend qualification was held at that gate. ### Proposed next step Would you prefer an opt-in patch that derives the resize plan from the buffers actually allocated, with single- and multi-group fixtures, before reviewing the larger prefill and GPU expert-miss changes? For the remaining speed question, I would pair fresh processes with the same starting profile and matched prompt work, then compare the same emitted token prefix or replay fixed token IDs. I would record recovery time, first-token latency, expert residency and direct transfer bytes per token separately from decode throughput. The registration lifecycle overlaps with #4351. I used Codex to help run and document these tests.
Author
Owner

@github-actions[bot] commented on GitHub (Nov 7, 2026):

Reopened, thank you. A maintainer will pick it up from here.

<!-- gh-comment-id:6711162765 --> @github-actions[bot] commented on GitHub (Nov 7, 2026): Reopened, thank you. A maintainer will pick it up from here.
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#1922
No description provided.