Skip to content

examples: compare greedy vLLM target-only and native MTP trials - #1008

Draft
cuihangbin wants to merge 2 commits into
InferMatrixLab:mainfrom
cuihangbin:examples/vllm-spec-decode-ab
Draft

cuihangbin wants to merge 2 commits into
InferMatrixLab:mainfrom
cuihangbin:examples/vllm-spec-decode-ab

Conversation

@cuihangbin

@cuihangbin cuihangbin commented Dec 3, 2026 •

Copy link
Copy Markdown

Governing issue and delivery slice

Refs #1007

This contributor-proposed example compares a target-only vLLM server with native MTP on the same target, greedy requests and fixed output length. A reviewer can run the CPU regression tests without model weights. The issue records the contributor's scope and delegation; upstream triage is pending.

Changes

  • Add a standalone trial under examples/vllm_spec_decode/ with a small prompt set and instructions for serving and measuring each arm in turn.
  • Emit InferRSI-compatible JSON for mean request TPOT and client-observed output throughput. Aggregate request-level vLLM acceptance counts with their respective denominators and preserve unavailable telemetry.
  • Provide a validation command that checks matching request protocols and reports the first differing generated token. Cover weighted counts, zero and missing telemetry, warmup exclusion and parity failure in CPU tests.

The follow-up records model/tokenizer revisions supplied by the caller, stable prompt IDs, stop and finish reasons, and the actual throughput numerator and time window. Zero- and one-token outputs are retained and excluded only from the TPOT denominator; missing speculation counters leave the aggregate unavailable. The read-only parity check rejects mismatched outputs or termination before the results can be accepted.

Checks and evidence

  • Ruff passed for src, tests, tools and the new example.
  • All 12 focused tests passed (new tests, repository smoke and claim contract).
  • On the initial revision, a local HTTP fixture exercised both CLI commands at concurrency two. Matching token IDs passed; a changed token failed at the expected position.
  • Full repository pytest (--maxfail=1) stopped in the existing test_cli_deadline_kills_upstream_descendants[discover] test: this macOS sandbox denied execution of ps (EPERM). The remaining suite was not run. No GPU service run or throughput improvement is claimed. Running a live trial requires an MTP-capable target and a vLLM build exposing per-request timing and speculative counters.

Remaining work

Upstream review and any accelerator qualification are pending. The issue remains open for acceptance. Knowledge authorship policy: not applicable to these example and test paths. This contribution was assisted by Codex.

Agent-assisted-by: Codex (implementation and tests)
Signed-off-by: cuihangbin <111357255+cuihangbin@users.noreply.github.com>
Agent-assisted-by: Codex (implementation and tests)
Signed-off-by: cuihangbin <111357255+cuihangbin@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant