serve: an explicit --pipeline-windows 2 on two stages says when the draft layer is not on the first card (#2637)
The default takes the pipelined decode on two stages only with the draft layer on the first card (mtp_first); asked for by hand it was taken without a word, and without mtp_first the draft chain shares the last card with its window (2x R9700: the pipeline lost to the serial loop before 0.1.44). Recommend, never force: it stays on as asked and a note says what it costs, why mtp_first is not on (no --mtp / --spec 2+ / draft_vocab.bin, or STRATA_MTP_STAGE0=1 to ask for it) and how to turn it off. No default output changes. Reported by @dinesh-chander on #2637 (closed by the reporter).
This commit is contained in:
1 parent
3b848837fa
commit
14038ee30c
1 file changed
+12
@@ -3748,6 +3748,18 @@ int main(int argc, char** argv) {
|
||||
if (off != nullptr) {
|
||||
std::fprintf(stderr, "strata generate: --pipeline-windows %d is off: %s\n", o.pipeline_windows, off);
|
||||
o.pipeline_windows = 0;
|
||||
} else if (!pw_auto && o.pipeline_windows >= 2 && split_devs.size() == 1) {
|
||||
// #2637: the default (above) takes two stages only with the draft layer on the first card (mtp_first); asked for by
|
||||
// hand it was taken without a word. Recommend, never force: it stays on as asked, and the line says what it costs.
|
||||
const char* e0 = std::getenv("STRATA_MTP_STAGE0");
|
||||
const bool first_card = mtp_first_ok && (e0 != nullptr ? std::atoi(e0) != 0 : mtp_first_default_on());
|
||||
if (!first_card)
|
||||
std::fprintf(stderr, "strata generate: note: --pipeline-windows %d on a layer split of two stages without the draft layer "
|
||||
"on the first card (%s): the draft chain then shares the last card with its window and the "
|
||||
"pipeline lost to the serial loop on 2x R9700 before 0.1.44 (docs/MULTI_GPU.md); kept as asked, "
|
||||
"--pipeline-windows 0 turns it off\n", o.pipeline_windows,
|
||||
!mtp_first_ok ? "it needs --mtp with --spec 2 or more and the draft head's subset file (draft_vocab.bin)"
|
||||
: "STRATA_MTP_STAGE0=1 asks for it");
|
||||
}
|
||||
}
|
||||
// ---- layer split across GPUs: each later stage's own copy of the dense weights, its session and (the last) the
|
||||
|
||||
Reference in new issue
Block a user