Fix shared MTP draft head type for batch slots
This commit is contained in:
1 parent
0d994dfb9c
commit
e0f6da57f5
2 files changed
+9
No files matched your search
@@ -204,6 +204,14 @@ python3 tools/parking_test.py --exe engine/strata --config strata-<model>.json \
|
||||
STRATA_KEY=<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-<model>.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`:
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user