[GH-ISSUE #4875] [Engine] Opt-in data-parallel prompt path for 2-GPU layer splits (nicejunjie's STRATA_DP_PREFILL): 19K-123K prompts read 14-68 % faster on 2x RTX 3090 #2239

Open
opened 2026-11-04 01:57:50 +07:00 by bsakaguchi · 5 comments
Owner

Originally created by @orochifj on GitHub (Nov 1, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/4875

Area

[Engine]

What do you want to do?

Read long prompts on both cards of a two-GPU layer split. Today a layer split reads a prompt through the layer pipeline. The layer-major walk does not run on our 2x RTX 3090: it logs no VRAM for a super-chunk, 587 MiB free even without batch slots, because the expert cache takes the rest. A dual data-parallel prompt path reads 19K-123K prompts 14-68 % faster on these cards. I'd like to know whether you would take it as an opt-in switch before I prepare a PR.

The design is nicejunjie's, from nicejunjie/Strata-rdna3 (MIT, STRATA_DP_PREFILL=1, built there on 2x RX 7900 XTX). I ported it onto v0.2.9 and run it on 2x RTX 3090. @nicejunjie, the last question below is for you.

How it works

  • Each card also keeps a session for the other card's layers, so both cards can run every layer. A card streams the experts of the layers it does not cache, as the prompt path already does for uncached experts.
  • A long prompt is cut into an even number of balanced chunks (multiples of 256), and the two cards take turns. Chunk k+1 at layer l waits on a cross-device event for chunk k's state of layer l. The card that ran chunk k copies that state into the other card's session by peer copy (GDN state, indexer rows and tail, PLE history). The K/V go to the streamed layers' shared host copy.
  • The last chunk runs on the drafter's card and is at least 4,224 tokens (the MTP window plus 64). A segment under 8,000 tokens (STRATA_DP_MIN), or one the plan cannot split that way, goes to the layer pipeline as today.

Measured on v0.2.9 (c62d5e3a, engine 0.1.55) built from source for sm_86 with local changes: the int8 IQ4 kernel from #4871 and a block-score kernel change are on in both arms. The only difference between the arms is STRATA_DP_PREFILL=1.

  • 2x RTX 3090 24 GB at 250 W, PCIe 4.0 x16, peer access on; EPYC 7452, 256 GB DDR4, Linux 6.8, NVIDIA 610.57.04.
  • Swift-1.5 Qwen3.8-Flash-Next IQ4_XS, layer split 24 / 24, --max-context 524288 --rope-scaling yarn --rope-scale 2 --kv int8 --kv-resident 32768 --spec 4 --spec-min-p 0.5 --pipeline-windows 2 --pcie-frac 0 --prefill auto --expert-cache auto, env STRATA_KV_HOST_DMA=1 STRATA_PREFILL_AUTO_MAX=16384 in both arms. No --trim-stage-weights in either arm, because the DP path needs every card's full dense weights.
  • Each arm: a fresh engine start, a 64-token warm-up, then one fresh salted filler prompt per size with max_tokens 1. Tokens/s is prompt tokens divided by the time to first token at the client.
prompt tokens DP off DP on gain
19,206 2,459 4,134 +68 %
43,036 3,561 4,565 +28 %
88,907 4,194 4,940 +18 %
122,507 4,303 4,920 +14 %
  • A second pair on a later build, with STRATA_MMQ_DIRECT=1 added to both arms and DP on twice: DP off 2,464 / 3,561 / 4,194 / 4,287, DP on 4,178 and 4,164 / 4,601 and 4,592 / 4,998 and 4,977 / 4,953 and 4,933.
  • Time to first token at 19K drops from 7.8 s to 4.7 s, and at 123K from 28.5 s to 24.9 s.
  • Needle checks read through the DP path pass at 89K and 123K. The K/V dump (STRATA_QSA_DUMP) of a fixed 123K prompt read through DP was byte-identical in two runs (1.62 GB). Its bits differ from the layer pipeline's, because the chunk boundaries differ.
  • The cost is VRAM: the extra sessions take 313 expert-cache slots per card here, about 0.77 GiB each (6,365 / 6,164 slots without DP, 6,052 / 5,851 with it).
  • These are single reads per size in each arm, not the three alternating rounds a PR needs. The PR would carry those.

What a PR would contain, if you're interested:

  • It is off unless STRATA_DP_PREFILL=1. Unset, nothing changes.
  • It turns itself off, with a log line, unless there are exactly two GPUs in a layer split, no --peer-device, no --trim-stage-weights, and streamed K/V with STRATA_KV_HOST_DMA=1.
  • It touches prefill.cpp / prefill.hpp (run_dp and the hand-off events) and generate.cpp (the extra sessions, the link, and the hook where the server reads a prompt part). That is about 530 lines in our port.
  • It leaves out the fork's early refill of lent cache slots during the read (STRATA_DP_EARLY_REFILL). Another user traced non-finite logits on cold prompts to it in nicejunjie/Strata-rdna3#3. The port refills after the read, as upstream does.
  • It also leaves out our scheduling of DP reads beside decoding batch slots. That would be a separate change.
  • Validation as CONTRIBUTING asks: CUDA build, needles, the dump check and three alternating rounds. The design comes from RDNA3, but my port has only been built for CUDA, so a HIP build is the open item.

Limits: one rig and one pack. Peer access on these GeForce cards comes from a P2P-enabled build of NVIDIA's open kernel modules. Without peer access the hand-offs would go through host RAM, which I have not measured.

What do you do today instead?

I run the port on 2x RTX 3090. Without it, long prompts read at the "DP off" rates above.

Questions

  1. Would you take this as an opt-in? Or would you rather solve two-card prompt reading another way, for example by making the layer-major walk fit 24 GB cards?
  2. @nicejunjie: this is your design. Would you like to submit it yourself, co-author it, or are you fine with me submitting it with credit to you? I'll wait for both of you before opening a PR.

Prepared with AI assistance (Claude); every number above comes from the runs described, and the logs are available.

Originally created by @orochifj on GitHub (Nov 1, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/4875 ### Area [Engine] ### What do you want to do? Read long prompts on **both** cards of a two-GPU layer split. Today a layer split reads a prompt through the layer pipeline. The layer-major walk does not run on our 2x RTX 3090: it logs `no VRAM for a super-chunk, 587 MiB free` even without batch slots, because the expert cache takes the rest. A dual data-parallel prompt path reads 19K-123K prompts **14-68 % faster** on these cards. I'd like to know whether you would take it as an opt-in switch before I prepare a PR. The design is **nicejunjie's**, from [nicejunjie/Strata-rdna3](https://github.com/nicejunjie/Strata-rdna3) (MIT, `STRATA_DP_PREFILL=1`, built there on 2x RX 7900 XTX). I ported it onto v0.2.9 and run it on 2x RTX 3090. @nicejunjie, the last question below is for you. **How it works** - Each card also keeps a session for the other card's layers, so both cards can run every layer. A card streams the experts of the layers it does not cache, as the prompt path already does for uncached experts. - A long prompt is cut into an even number of balanced chunks (multiples of 256), and the two cards take turns. Chunk k+1 at layer l waits on a cross-device event for chunk k's state of layer l. The card that ran chunk k copies that state into the other card's session by peer copy (GDN state, indexer rows and tail, PLE history). The K/V go to the streamed layers' shared host copy. - The last chunk runs on the drafter's card and is at least 4,224 tokens (the MTP window plus 64). A segment under 8,000 tokens (`STRATA_DP_MIN`), or one the plan cannot split that way, goes to the layer pipeline as today. **Measured** on v0.2.9 (`c62d5e3a`, engine 0.1.55) built from source for sm_86 **with local changes**: the int8 IQ4 kernel from #4871 and a block-score kernel change are on in both arms. The only difference between the arms is `STRATA_DP_PREFILL=1`. - 2x RTX 3090 24 GB at 250 W, PCIe 4.0 x16, peer access on; EPYC 7452, 256 GB DDR4, Linux 6.8, NVIDIA 610.57.04. - Swift-1.5 Qwen3.8-Flash-Next IQ4_XS, layer split 24 / 24, `--max-context 524288 --rope-scaling yarn --rope-scale 2 --kv int8 --kv-resident 32768 --spec 4 --spec-min-p 0.5 --pipeline-windows 2 --pcie-frac 0 --prefill auto --expert-cache auto`, env `STRATA_KV_HOST_DMA=1 STRATA_PREFILL_AUTO_MAX=16384` in both arms. No `--trim-stage-weights` in either arm, because the DP path needs every card's full dense weights. - Each arm: a fresh engine start, a 64-token warm-up, then one fresh salted filler prompt per size with `max_tokens` 1. Tokens/s is prompt tokens divided by the time to first token at the client. | prompt tokens | DP off | DP on | gain | |---|---|---|---| | 19,206 | 2,459 | 4,134 | +68 % | | 43,036 | 3,561 | 4,565 | +28 % | | 88,907 | 4,194 | 4,940 | +18 % | | 122,507 | 4,303 | 4,920 | +14 % | - A second pair on a later build, with `STRATA_MMQ_DIRECT=1` added to both arms and DP on twice: DP off 2,464 / 3,561 / 4,194 / 4,287, DP on 4,178 and 4,164 / 4,601 and 4,592 / 4,998 and 4,977 / 4,953 and 4,933. - Time to first token at 19K drops from 7.8 s to 4.7 s, and at 123K from 28.5 s to 24.9 s. - Needle checks read through the DP path pass at 89K and 123K. The K/V dump (`STRATA_QSA_DUMP`) of a fixed 123K prompt read through DP was byte-identical in two runs (1.62 GB). Its bits differ from the layer pipeline's, because the chunk boundaries differ. - The cost is VRAM: the extra sessions take 313 expert-cache slots per card here, about 0.77 GiB each (6,365 / 6,164 slots without DP, 6,052 / 5,851 with it). - These are single reads per size in each arm, not the three alternating rounds a PR needs. The PR would carry those. **What a PR would contain**, if you're interested: - It is off unless `STRATA_DP_PREFILL=1`. Unset, nothing changes. - It turns itself off, with a log line, unless there are exactly two GPUs in a layer split, no `--peer-device`, no `--trim-stage-weights`, and streamed K/V with `STRATA_KV_HOST_DMA=1`. - It touches `prefill.cpp` / `prefill.hpp` (`run_dp` and the hand-off events) and `generate.cpp` (the extra sessions, the link, and the hook where the server reads a prompt part). That is about 530 lines in our port. - It leaves out the fork's early refill of lent cache slots during the read (`STRATA_DP_EARLY_REFILL`). Another user traced non-finite logits on cold prompts to it in nicejunjie/Strata-rdna3#3. The port refills after the read, as upstream does. - It also leaves out our scheduling of DP reads beside decoding batch slots. That would be a separate change. - Validation as CONTRIBUTING asks: CUDA build, needles, the dump check and three alternating rounds. The design comes from RDNA3, but my port has only been built for CUDA, so a HIP build is the open item. **Limits:** one rig and one pack. Peer access on these GeForce cards comes from a P2P-enabled build of NVIDIA's open kernel modules. Without peer access the hand-offs would go through host RAM, which I have not measured. ### What do you do today instead? I run the port on 2x RTX 3090. Without it, long prompts read at the "DP off" rates above. ### Questions 1. Would you take this as an opt-in? Or would you rather solve two-card prompt reading another way, for example by making the layer-major walk fit 24 GB cards? 2. @nicejunjie: this is your design. Would you like to submit it yourself, co-author it, or are you fine with me submitting it with credit to you? I'll wait for both of you before opening a PR. Prepared with AI assistance (Claude); every number above comes from the runs described, and the logs are available.
Author
Owner

@rafatxf commented on GitHub (Nov 1, 2026):

I ported nicejunjie's STRATA_DP_PREFILL (f60e317b) onto 0.2.7 (engine 0.1.52) independently, on a smaller box than yours: 2x RTX 2080 Ti 22 GB on NVLink, PCIe 3.0 x8 each, i7-6700, 56 GB RAM, UD-IQ4_XS. Three things came up that a PR should probably cover.

1. With little RAM, the foreign layers' experts come from the model file.

  • The RAM arena holds only the experts no GPU caches (29 GiB here, of 55 GiB of experts).
  • A foreign layer's experts that sit resident in the other card's VRAM are in neither this card's cache nor RAM, so the DP path reads them from the GGUF. A 16K prompt read 82 GB from storage.
  • Against the layer pipeline: 16K 21.8 s vs 16.2 s, 32K 34.6 vs 23.9.
  • The fix that worked for me: in run_dp's residency view, mark a foreign layer's expert that the peer holds with a flag, and resolve it to the peer's slot pointer, read over the peer link. The weight-stationary MMQ path has to be skipped for those, since it uses offsets from this card's slot 0.
  • With that: 16K 13.05 s, 32K 19.6 s, 64K 0.57 vs 0.67 ms per token. Generated tokens are identical to the pipeline at 16K and 32K.
  • With 256 GB you hold every expert in RAM, so you would not see this.

2. Each foreign session pins its own host K/V copy, which is then discarded.

  • session_init for the foreign session allocates the streamed QSA layers' pinned host pools. The code then points qsa_states[q].host at the owner's, so that copy is never used: about 2.3 GiB of pinned RAM in total here at 384K.
  • On 56 GB that cost a lot. With DP linked, decode fell 13-19%, even on short prompts that never take the DP path: the per-layer host time went from 12.2 to 17.8 ms.
  • Skipping the host allocation for those sessions (a flag around their session_init) brought decode back to the non-DP numbers within noise.

3. Stage trim.

  • DP can run with STRATA_STAGE_TRIM=1 if a weight row the card skipped falls back to the peer's table, read over the peer link. I did that with a fallback in WeightTable::find, set only for the duration of run_dp.
  • Measured: 16K 12.4 s, 32K 18.9 s, and decode keeps the trim's extra expert slots.

A caution. After a 174K DP read, the next DP read (96K) hit Xid 62 on the second card ("internal micro-controller halt", then GPU Reset Required), and only a reboot recovered it.

  • This modded 22 GB card hit the same Xid once before, under llama.cpp's -sm tensor, which is also heavy on peer traffic.
  • So this may be my card more than the code. The peer-read form does put a lot of NVLink traffic on the cards, though, and a stress run with other cards would be worth having.
  • I run without DP for now.

At long prompts the gain is small on x8 links: 174K read in 93.7 s with DP vs 96 s without. Each card streams the non-resident experts of all 48 layers for half the chunks, so each link carries about the same total as in the pipeline, and only the compute overlaps.

Reproduction status: measured locally; every number here is from my runs.

<!-- gh-comment-id:6558093282 --> @rafatxf commented on GitHub (Nov 1, 2026): I ported nicejunjie's `STRATA_DP_PREFILL` (f60e317b) onto 0.2.7 (engine 0.1.52) independently, on a smaller box than yours: 2x RTX 2080 Ti 22 GB on NVLink, PCIe 3.0 x8 each, i7-6700, **56 GB RAM**, UD-IQ4_XS. Three things came up that a PR should probably cover. **1. With little RAM, the foreign layers' experts come from the model file.** - The RAM arena holds only the experts no GPU caches (29 GiB here, of 55 GiB of experts). - A foreign layer's experts that sit resident in the *other* card's VRAM are in neither this card's cache nor RAM, so the DP path reads them from the GGUF. A 16K prompt read 82 GB from storage. - Against the layer pipeline: 16K 21.8 s vs 16.2 s, 32K 34.6 vs 23.9. - The fix that worked for me: in `run_dp`'s residency view, mark a foreign layer's expert that the peer holds with a flag, and resolve it to the peer's slot pointer, read over the peer link. The weight-stationary MMQ path has to be skipped for those, since it uses offsets from this card's slot 0. - With that: 16K 13.05 s, 32K 19.6 s, 64K 0.57 vs 0.67 ms per token. Generated tokens are identical to the pipeline at 16K and 32K. - With 256 GB you hold every expert in RAM, so you would not see this. **2. Each foreign session pins its own host K/V copy, which is then discarded.** - `session_init` for the foreign session allocates the streamed QSA layers' pinned host pools. The code then points `qsa_states[q].host` at the owner's, so that copy is never used: about 2.3 GiB of pinned RAM in total here at 384K. - On 56 GB that cost a lot. With DP linked, decode fell 13-19%, even on short prompts that never take the DP path: the per-layer host time went from 12.2 to 17.8 ms. - Skipping the host allocation for those sessions (a flag around their `session_init`) brought decode back to the non-DP numbers within noise. **3. Stage trim.** - DP can run with `STRATA_STAGE_TRIM=1` if a weight row the card skipped falls back to the peer's table, read over the peer link. I did that with a fallback in `WeightTable::find`, set only for the duration of `run_dp`. - Measured: 16K 12.4 s, 32K 18.9 s, and decode keeps the trim's extra expert slots. **A caution.** After a 174K DP read, the next DP read (96K) hit **Xid 62 on the second card** ("internal micro-controller halt", then GPU Reset Required), and only a reboot recovered it. - This modded 22 GB card hit the same Xid once before, under llama.cpp's `-sm tensor`, which is also heavy on peer traffic. - So this may be my card more than the code. The peer-read form does put a lot of NVLink traffic on the cards, though, and a stress run with other cards would be worth having. - I run without DP for now. At long prompts the gain is small on x8 links: 174K read in 93.7 s with DP vs 96 s without. Each card streams the non-resident experts of all 48 layers for half the chunks, so each link carries about the same total as in the pipeline, and only the compute overlaps. Reproduction status: measured locally; every number here is from my runs.
Author
Owner

@orochifj commented on GitHub (Nov 1, 2026):

@rafatxf thank you, this is exactly the cross-check the proposal needed. Here is how each point looks against my port on v0.2.9 (2x RTX 3090, 256 GB RAM, 512K context).

1. Experts from the model file. This does not arise here. The expert arena holds every expert in RAM (about 61 GiB), so a foreign layer's experts always come from RAM. I agree a PR has to handle the small-RAM case. Your peer-slot lookup is one way. A simpler first step would be to leave a prompt to the layer pipeline when the arena does not hold the foreign layers' experts.

2. The foreign sessions' pinned K/V copy. Confirmed in my port too. qsa_state_init pins a full host copy for each streamed layer of the foreign session, and the port then points .host at the owner's copy. At 512K that is another ~2.6 GiB of pinned RAM next to the real 2.58 GiB. I have not measured its decode cost on this box, but it is plain waste, and skipping that allocation for these sessions belongs in the first PR.

3. Stage trim. That closes the gap I flagged: every arm here ran without --trim-stage-weights. I'd keep it as a follow-up, since it adds peer reads.

Xid. The kernel log here has no Xid since 10-27, across eight boots of daily DP use. These cards use peer copies over PCIe 4.0 x16, no NVLink. My port only peer-copies the per-layer state, and experts come from RAM, so its peer traffic is much lighter than the peer-read forms in 1 and 3. Those would need a stress run before going in.

Long prompts. Same shape here: the gain shrinks with length, from +68 % at 19K to +14 % at 123K on PCIe 4.0 x16.

A possible split, if the maintainer wants this:

  • First PR: the base DP path, opt-in, with your fix 2. It would fall back to the pipeline when the arena does not hold the foreign experts.
  • Follow-ups: the peer-slot residency (1) and DP with stage trim (3), each with a peer-traffic stress run.

Would you like to own the follow-ups, or co-author? Your 2080 Ti box covers the low-RAM, x8 case that mine cannot.

Prepared with AI assistance (Claude).

<!-- gh-comment-id:6560325794 --> @orochifj commented on GitHub (Nov 1, 2026): @rafatxf thank you, this is exactly the cross-check the proposal needed. Here is how each point looks against my port on v0.2.9 (2x RTX 3090, 256 GB RAM, 512K context). **1. Experts from the model file.** This does not arise here. The expert arena holds every expert in RAM (about 61 GiB), so a foreign layer's experts always come from RAM. I agree a PR has to handle the small-RAM case. Your peer-slot lookup is one way. A simpler first step would be to leave a prompt to the layer pipeline when the arena does not hold the foreign layers' experts. **2. The foreign sessions' pinned K/V copy.** Confirmed in my port too. `qsa_state_init` pins a full host copy for each streamed layer of the foreign session, and the port then points `.host` at the owner's copy. At 512K that is another ~2.6 GiB of pinned RAM next to the real 2.58 GiB. I have not measured its decode cost on this box, but it is plain waste, and skipping that allocation for these sessions belongs in the first PR. **3. Stage trim.** That closes the gap I flagged: every arm here ran without `--trim-stage-weights`. I'd keep it as a follow-up, since it adds peer reads. **Xid.** The kernel log here has no Xid since 10-27, across eight boots of daily DP use. These cards use peer copies over PCIe 4.0 x16, no NVLink. My port only peer-copies the per-layer state, and experts come from RAM, so its peer traffic is much lighter than the peer-read forms in 1 and 3. Those would need a stress run before going in. **Long prompts.** Same shape here: the gain shrinks with length, from +68 % at 19K to +14 % at 123K on PCIe 4.0 x16. A possible split, if the maintainer wants this: - **First PR:** the base DP path, opt-in, with your fix 2. It would fall back to the pipeline when the arena does not hold the foreign experts. - **Follow-ups:** the peer-slot residency (1) and DP with stage trim (3), each with a peer-traffic stress run. Would you like to own the follow-ups, or co-author? Your 2080 Ti box covers the low-RAM, x8 case that mine cannot. Prepared with AI assistance (Claude).
Author
Owner

@nicejunjie commented on GitHub (Nov 1, 2026):

@orochifj Thanks for porting it and for the careful measurements. I'm happy that you submit the PR. Please add me as co-author on the commits:
Co-authored-by: Junjie Li nicejunjie@gmail.com

<!-- gh-comment-id:6562096271 --> @nicejunjie commented on GitHub (Nov 1, 2026): @orochifj Thanks for porting it and for the careful measurements. I'm happy that you submit the PR. Please add me as co-author on the commits: Co-authored-by: Junjie Li <nicejunjie@gmail.com>
Author
Owner

@rafatxf commented on GitHub (Nov 1, 2026):

Thanks, that split works for me. The first PR as you describe it (the base path, opt-in, the foreign sessions' host K/V skipped, and a pipeline fallback when the arena does not hold the foreign layers' experts) is the safe start.

I'm glad to co-author the two follow-ups, the peer-slot residency and DP with stage trim. Once your PR is up I'll rebase my patches onto it, so the follow-ups apply cleanly to your branch.

On the stress run: this box is moving to a new platform within a couple of weeks (X99, both cards at x16, 128 GB). GPU1 here has thrown Xid 62 twice under peer-heavy loads, so I'd rather run the peer-traffic stress test there than risk another hard reset here. I'll post the numbers and the kernel log from that run with the follow-ups.

<!-- gh-comment-id:6563378712 --> @rafatxf commented on GitHub (Nov 1, 2026): Thanks, that split works for me. The first PR as you describe it (the base path, opt-in, the foreign sessions' host K/V skipped, and a pipeline fallback when the arena does not hold the foreign layers' experts) is the safe start. I'm glad to co-author the two follow-ups, the peer-slot residency and DP with stage trim. Once your PR is up I'll rebase my patches onto it, so the follow-ups apply cleanly to your branch. On the stress run: this box is moving to a new platform within a couple of weeks (X99, both cards at x16, 128 GB). GPU1 here has thrown Xid 62 twice under peer-heavy loads, so I'd rather run the peer-traffic stress test there than risk another hard reset here. I'll post the numbers and the kernel log from that run with the follow-ups.
Author
Owner

@orochifj commented on GitHub (Nov 2, 2026):

The draft is up: #5002, one commit on main (branch pr/dp-prompt-path on orochifj/Strata), with Co-authored-by: Junjie Li.

  • It is the first PR as agreed above: the base path behind STRATA_DP_PREFILL=1, the foreign sessions without their own pinned K/V copy, and DP off with a log line when not every expert is in RAM.
  • Measured on 2x RTX 3090: prompts of 12K-123K tokens read 16-67 % faster; prompts DP does not take are up to 4 % slower, because the extra sessions take 308 expert-cache slots a card. The PR has the details, the needle and dump checks, and the HIP builds.
  • It also measures the drafter gap: after a DP read, only the drafter card's chunks have draft-layer cells. Copying from the other card's chunks dropped draft acceptance from 97.0 to 91.6 %. Feeding those rows to the drafter is a separate follow-up.

@rafatxf, you can rebase your two follow-ups onto that branch. @Niko1221, the PR stays a draft until you agree the scope here.

Prepared with AI assistance (Claude).

<!-- gh-comment-id:6578854423 --> @orochifj commented on GitHub (Nov 2, 2026): The draft is up: #5002, one commit on main (branch `pr/dp-prompt-path` on orochifj/Strata), with `Co-authored-by: Junjie Li`. - It is the first PR as agreed above: the base path behind `STRATA_DP_PREFILL=1`, the foreign sessions without their own pinned K/V copy, and DP off with a log line when not every expert is in RAM. - Measured on 2x RTX 3090: prompts of 12K-123K tokens read 16-67 % faster; prompts DP does not take are up to 4 % slower, because the extra sessions take 308 expert-cache slots a card. The PR has the details, the needle and dump checks, and the HIP builds. - It also measures the drafter gap: after a DP read, only the drafter card's chunks have draft-layer cells. Copying from the other card's chunks dropped draft acceptance from 97.0 to 91.6 %. Feeding those rows to the drafter is a separate follow-up. @rafatxf, you can rebase your two follow-ups onto that branch. @Niko1221, the PR stays a draft until you agree the scope here. Prepared with AI assistance (Claude).
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#2239
No description provided.