Repository navigation
Description
Summary
Three defects in the Qwen4 .strata serve path cost several hours of deployment on a Tesla V100-PCIE-32GB (32 GB), driver 580.159.04, component strata-q4-lite 0.1.75-linux-x86_64-cuda-cuda12 with the control component 0.1.74.4.
1. --mtp loads the drafter but never drafts without --spec
--mtp <MTP.strata> -> "MTP: weights 203 MiB (fp32), experts 254 MiB, scratch + KV 641 MiB, load 0.7 s"
/metrics -> {"spec": "mtp", "drafting": "mtp"}
every request -> drafts_offered: 0, drafts_accepted: 0
Adding --spec 2 makes drafting work: drafts_offered 212 for a 256-token answer, 456 of 744 accepted (61 %). Decode goes from 69.4–75.5 tok/s to 74.6–81.8 tok/s.
The status field "drafting": "mtp" is reported in both cases, so a monitoring check cannot tell a working drafter from an idle one. Reporting drafts_offered at start time, or refusing --mtp without --spec, would make this visible.
2. Speculation and two slots are mutually exclusive, with no warning
With --spec 2 --parallel 2 the draft counters stay at 0. The engine binary states the rule:
forward_spec: speculative windows run in slot 0 only
batch_slots=2 is still reported by /metrics, and both slots serve normally, so nothing signals that the drafter is disabled. On a single-GPU host this forces a choice between two slots at 72 tok/s and one slot with a drafter at 78 tok/s; the default should say so at start.
3. Launcher drops engine flags while claiming the engine cannot take them
serve.server prints, at start:
[strata] Qwen4-35B-A3B: the engine does not take --parallel, so they are left out of its start
[strata] Qwen4-35B-A3B: the engine does not take --vram-reserve-mib, so they are left out of its start
[strata] Qwen4-35B-A3B: the engine does not take --expert-frac, so they are left out of its start
The engine does take --parallel and --vram-reserve-mib. Verified directly:
strata-q4-lite --serve ... --parallel 2
q4lite: mixers state arena 859.7 MiB for 2 slot(s)
INFO ... batch_slots=2
They are filtered because strata_control/qwen4_family.py STRATA_SERVE_FLAGS lacks both keys. Adding "--parallel": 1 and "--vram-reserve-mib": 1 fixes it locally. A second launcher path rejects the pair --slots in the saved engine args plus --parallel on the server command line (--parallel conflicts with an explicit --batch/--slots in the saved engine args), which is a different symptom for the same knob.
4. Related: the PLE table cannot be locked from a user unit
--ple-gguf prints this program may lock only 7.8 GiB (RLIMIT_MEMLOCK) and then reads rows from the drive. On this host the hard limit is 8214176 KiB, and neither LimitMEMLOCK=infinity in a systemd user unit nor DefaultLimitMEMLOCK=infinity in ~/.config/systemd/user.conf raises it. A system unit with User=<user> and LimitMEMLOCK=infinity does: PLE table: locked in RAM (20.3 GiB; RAM budget 60.7 GiB, experts pinned 3.7 GiB). Locking it did not change prefill in our measurements (658–685 tok/s before and after), so this is a documentation gap, not a speed fix.
Measurements, warm, temperature 0, 2026-12-05
| Case | Prefill | Decode |
|---|---|---|
| 9,935-token prompt | 658 tok/s | 81 tok/s |
| 31,979-token prompt | 685 tok/s | 77 tok/s |
| 51-token prompt | — | 75 tok/s, TTFT 0.30 s |
Reference on the same card, Qwen3.8-Flash-Next IQ3_S with --spec 4 --batch-mtp: to be measured with the same stopwatch.
Activity
github-actions commentedon Dec 5, 2026
Thanks for the issue. To keep the tracker readable, every item needs an area prefix in the title and the parts of the issue form filled in. This one is missing:
Edit the issue (title and description) and this note goes away on its own. If it is still missing parts in 5 days it will be closed, which is not a rejection: fix it and comment
/reopen.Details: CONTRIBUTING.md
03c commentedon Dec 5, 2026
Three of these have a datapoint from the Intel/SYCL side (Arc Pro B70, engine 0.1.74 SYCL, Control 0.1.75.0), which may narrow the version boundary:
1.
--paralleldrop looks fixed in Control 0.1.75.0. In the installed0.1.75.0/strata_control/qwen4_family.py,STRATA_SERVE_FLAGScontains--parallel,--batchand--slots, with those three inSTRATA_SERVE_GATED;--vram-reserveis listed but--vram-reserve-mibis not. Yet our saved-profile start still reaches the engine with--vram-reserve-mib 512on the command line, so the saved-args route is evidently not filtered the same way as the launcher route you hit on Control 0.1.74.4. Worth re-testing the launcher on 0.1.75.0 before patching 0.1.74.4 locally.2. Slot 0 only — confirmed, but 0.1.74 does not zero every counter. Our 2-slot profile (
"parallel": 2, engine log--batch: 2 slot sessions,verify: batch windows of up to 2 sequences) on 0.1.74 SYCL showsdrafts accepted 17 of 19and18 of 35in the same session, i.e. speculation still runs in slot 0 while followers do not draft. That matches the engine'sspeculative windows run in slot 0 only, but not "all counters stay 0"; it may have changed in 0.1.75, or your requests may have both landed off slot 0. Either way, the start-time warning you propose is the right fix.3.
drafting: "mtp"is not a health signal — agreed. Our working server reports"drafting": "mtp"and per-requestdrafts_offered/drafts_acceptedcounters in/metrics; the top-level field alone cannot distinguish a loaded-but-idle drafter from a working one. A one-token probe at start, or refusing--mtpwithout--spec, would close that.We did not test your PLE-lock point (our service is a user unit without
LimitMEMLOCK); no claim there.[-]qwen4 serve: MTP stays idle without --spec and with 2 slots, and the launcher silently drops --parallel / --vram-reserve-mib[/-][+][Engine] qwen4 serve: MTP stays idle without --spec and with 2 slots; the launcher silently drops --parallel and --vram-reserve-mib[/+]github-actions commentedon Dec 5, 2026
Thanks, this follows the format now.
03c commentedon Dec 5, 2026
Addendum after the 0.1.75.1 release: I extracted
strata-control-0.1.75.1-linux-x86_64.tar.gzand checkedSTRATA_SERVE_FLAGSdirectly.--parallelis present (also--batch/--slots, gated), so the "engine does not take --parallel" line should be gone on 0.1.75.x.--vram-reserveis present, but--vram-reserve-mibis still absent — and so is--expert-frac. The new release's control changes are otherwise centred on vision gating.That matches the version split in my earlier comment: worth re-testing the launcher on 0.1.75.1, but do not expect the MiB spelling to pass through the launcher filter yet. Our saved-profile route still reaches the engine with
--vram-reserve-mib 512, so the two paths remain different.Package inspected read-only; nothing installed and no serving change here.