diff --git a/docs/BATCHING.md b/docs/BATCHING.md index e1896fd9..2c0af96c 100644 --- a/docs/BATCHING.md +++ b/docs/BATCHING.md @@ -204,6 +204,14 @@ python3 tools/parking_test.py --exe engine/strata --config strata-.json \ STRATA_KEY= python3 tools/early_close_test.py http://127.0.0.1:8080 ``` +For single-GPU `--batch-mtp`, use a model with `rt/draft_vocab.bin` to exercise admission with a +shared draft-vocabulary head. This compares both slots' output against solo decoding: + +``` +python3 tools/batch_test.py --exe engine/strata --config strata-.json --batch 2 --n 2 --max-new 64 \ + --extra "--batch-mtp --pcie-frac 0 --adapt-every 1000000" +``` + ## Engine protocol (`--serve`) On top of `GEN` / `GENI`: diff --git a/src/core/mtp.cpp b/src/core/mtp.cpp index e73ce24a..1981a33e 100644 --- a/src/core/mtp.cpp +++ b/src/core/mtp.cpp @@ -627,6 +627,7 @@ bool MtpDrafter::bind(const WeightTable& wt, const NativeHead* head, const float dhead_type_ = shared->dhead_type_; // the subset's type (the main head's, or Q4_0): -1 failed every --batch-mtp step dvocab_ = shared->dvocab_; n_dvocab_ = shared->n_dvocab_; + dhead_type_ = shared->dhead_type_; owns_draft_head_ = false; } // the draft head's token subset, when tools/draft_vocab.py wrote one