[GH-ISSUE #1428] --layer-split auto on a P40 + RTX 3070 (3070 first) flips from K=43 to K=47 with --kv int8 or --vram-reserve-mib 600, and prefill drops from 458 to 111-113 tok/s (0.1.40.2) #578

Closed
opened 2026-11-04 01:44:12 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @paulhothersall on GitHub (Oct 7, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/1428

On v0.1.40.2, auto with the 3070 first picks K=43 with the default flags (4K prefill 458 tok/s) and K=47 with either --kv int8 or --vram-reserve-mib 600 added (prefill 113 and 111 tok/s), one launch each; the cost model predicts 63.1 ms per decode window for K=43 and 61.9 / 62.8 ms for K=47, so it moves layers onto the P40 for about 1-2% of predicted decode while the prompt path gets about 4x slower. The same flip showed on 0.1.39 and 0.1.40 (0.1.39 also with --kv-resident 32768). These flags are in the community benchmark recipe.
Setup: P40 24 GB (cc 6.1) + RTX 3070 8 GB (cc 8.6), PCIe 3.0 x8 each, 64 GB RAM, IQ3_XXS, ctx 36,864, v0.1.40.2 built from the tag (archs 61, 75, 86), 4K prompt, 3 runs, prefill = prompt tokens / TTFT.

flags added auto K prefill 4K predicted decode window
none 43 458 63.1 ms
--kv int8 47 113 61.9 ms
--vram-reserve-mib 600 47 111 62.8 ms

Measured decode is about the same in all rows (28-34 tok/s). For reference on this pair: a forced K=34 with STRATA_STAGE_TRIM=1 gives 446 / 799 prefill (4K / 32K).

Questions: 1. Should the search price prompt reading, or need a margin before it moves layers onto the smaller card? 2. Is K=47 meant to be reachable here, with the P40 keeping one layer? Not tested: other card pairs, forced splits near K=43-47 on 0.1.40.2, the --kv-resident flag on 0.1.40.2.

Originally created by @paulhothersall on GitHub (Oct 7, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/1428 **On v0.1.40.2, `auto` with the 3070 first picks K=43 with the default flags (4K prefill 458 tok/s) and K=47 with either `--kv int8` or `--vram-reserve-mib 600` added (prefill 113 and 111 tok/s), one launch each; the cost model predicts 63.1 ms per decode window for K=43 and 61.9 / 62.8 ms for K=47, so it moves layers onto the P40 for about 1-2% of predicted decode while the prompt path gets about 4x slower.** The same flip showed on 0.1.39 and 0.1.40 (0.1.39 also with `--kv-resident 32768`). These flags are in the community benchmark recipe. Setup: P40 24 GB (cc 6.1) + RTX 3070 8 GB (cc 8.6), PCIe 3.0 x8 each, 64 GB RAM, IQ3_XXS, ctx 36,864, v0.1.40.2 built from the tag (archs 61, 75, 86), 4K prompt, 3 runs, prefill = prompt tokens / TTFT. | flags added | auto K | prefill 4K | predicted decode window | |---|---|---|---| | none | 43 | 458 | 63.1 ms | | `--kv int8` | **47** | **113** | 61.9 ms | | `--vram-reserve-mib 600` | **47** | **111** | 62.8 ms | Measured decode is about the same in all rows (28-34 tok/s). For reference on this pair: a forced K=34 with `STRATA_STAGE_TRIM=1` gives 446 / 799 prefill (4K / 32K). Questions: 1. Should the search price prompt reading, or need a margin before it moves layers onto the smaller card? 2. Is K=47 meant to be reachable here, with the P40 keeping one layer? Not tested: other card pairs, forced splits near K=43-47 on 0.1.40.2, the `--kv-resident` flag on 0.1.40.2.
Author
Owner

@Niko1221 commented on GitHub (Oct 13, 2026):

Thanks for the report. To keep the tracker current we are closing issues older than three days: 0.1.44 is out with a long list of fixes, and many older reports are covered by it or by 0.1.43.1.

If this still happens on 0.1.44, please leave a comment here with your engine log (and the version line it prints), and we will reopen it. A new issue that links this one works too.

<!-- gh-comment-id:6156092990 --> @Niko1221 commented on GitHub (Oct 13, 2026): Thanks for the report. To keep the tracker current we are closing issues older than three days: [0.1.44](https://github.com/Niko1221/Strata/releases/tag/v0.1.44) is out with a long list of fixes, and many older reports are covered by it or by 0.1.43.1. If this still happens on 0.1.44, please leave a comment here with your engine log (and the version line it prints), and we will reopen it. A new issue that links this one works too.
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#578
No description provided.