Layer split + --batch: the default pipeline wins over --batch-mtp (STRATA_BATCH_MTP_SERIAL=1 or --batch-groups 1 keeps the serial MTP windows) (#2038)

0.1.42 let --batch-mtp run on a layer split and made the --batch-groups auto default give way to it: one serial group. On
2x RTX A4000 (IQ3_XXS, 3 pairs) four streams aggregated 62.2 tok/s against 92.7 on 0.1.41's pipelined groups (-33%, 0/3 pairs
faster), two streams 55.7 against 71.4 (-22%). With --batch-groups 2 (which turns --batch-mtp off) 88.3 and 71.1. The start-up
line says why --batch-mtp is off and how to keep it. --adapt-async 1 still gives one group. Solo decode and the answers are
untouched.
This commit is contained in:
Niko1221 committed 2026-10-12 16:00:57 +02:00
1 parent 85f839d80c
commit a0116b2782
4 files changed
+29 -11

No files matched your search

+10 -4
View File
@@ -49,9 +49,13 @@ int main() {
{ // the production shape: parallel 2 on a 2-GPU split with --batch-mtp
bg::Input i = in(2, 1);
i.batch_mtp = true;
const auto r = bg::resolve(i);
check(r.groups == 1 && r.from_auto && r.serial == bg::Serial::BatchMtp && r.would_be == 2,
"--batch-mtp, nothing given: one group, because of --batch-mtp");
auto r = bg::resolve(i);
check(r.groups == 2 && r.from_auto && r.serial == bg::Serial::None && r.mtp_dropped,
"--batch-mtp, nothing given: the pipeline wins, --batch-mtp is dropped");
i.mtp_serial = true;
r = bg::resolve(i);
check(r.groups == 1 && r.from_auto && r.serial == bg::Serial::BatchMtp && r.would_be == 2 && !r.mtp_dropped,
"STRATA_BATCH_MTP_SERIAL: one group, because of --batch-mtp");
check(bg::serial_what(r.serial)[0] == '-', "the reason names the feature");
}
{
@@ -64,7 +68,9 @@ int main() {
bg::Input i = in(2, 1);
i.batch_mtp = true;
i.adapt_async = true;
check(bg::resolve(i).serial == bg::Serial::BatchMtp, "both: --batch-mtp is named");
check(bg::resolve(i).serial == bg::Serial::AdaptAsync, "both: --adapt-async 1 still gives one group");
i.mtp_serial = true;
check(bg::resolve(i).serial == bg::Serial::BatchMtp, "both with STRATA_BATCH_MTP_SERIAL: --batch-mtp is named");
}
{ // nothing to give way: the slots do not divide, so auto is one group anyway and there is nothing to say
bg::Input i = in(3, 1);