Skip to content

[Engine] qwen4 serve: MTP stays idle without --spec and with 2 slots; the launcher silently drops --parallel and --vram-reserve-mib #8220

Backlog

Description

@bzhwindtalker

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

  1. added
    needs-format
    on Dec 5, 2026
  2. github-actions commented on Dec 5, 2026

    @github-actions

    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:

    • Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other], then a short description. Example: "[Engine] decode stops after 2 minutes".

    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

  3. 03c commented on Dec 5, 2026

    @03c

    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. --parallel drop looks fixed in Control 0.1.75.0. In the installed 0.1.75.0/strata_control/qwen4_family.py, STRATA_SERVE_FLAGS contains --parallel, --batch and --slots, with those three in STRATA_SERVE_GATED; --vram-reserve is listed but --vram-reserve-mib is not. Yet our saved-profile start still reaches the engine with --vram-reserve-mib 512 on 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 shows drafts accepted 17 of 19 and 18 of 35 in the same session, i.e. speculation still runs in slot 0 while followers do not draft. That matches the engine's speculative 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-request drafts_offered/drafts_accepted counters 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 --mtp without --spec, would close that.

    We did not test your PLE-lock point (our service is a user unit without LimitMEMLOCK); no claim there.

  4. changed the title [-]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[/+] on Dec 5, 2026
  5. removed
    needs-format
    on Dec 5, 2026
  6. github-actions commented on Dec 5, 2026

    @github-actions

    Thanks, this follows the format now.

  7. 03c commented on Dec 5, 2026

    @03c

    Addendum after the 0.1.75.1 release: I extracted strata-control-0.1.75.1-linux-x86_64.tar.gz and checked STRATA_SERVE_FLAGS directly.

    • --parallel is present (also --batch/--slots, gated), so the "engine does not take --parallel" line should be gone on 0.1.75.x.
    • --vram-reserve is present, but --vram-reserve-mib is 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions