AX Engine for vLLM
AX Engine's Linux CUDA edition for NVIDIA GPUs, implemented as a vLLM plugin.
ax-engine-vllm is the vLLM implementation of AX Engine. It has the same role for vLLM that ax-engine-sglang has for SGLang. vLLM runs the server, schedules requests and executes the model on CUDA. This package loads as the ax-engine-vllm general plugin and applies opt-in changes in the engine and worker processes.
The Apple Silicon edition runs on MLX. The SGLang edition is the other CUDA serving path. The editions share target-verified speculative decoding. Serving paths, plugin flags and checkpoint loaders stay specific to each runtime. Documentation · Benchmarks · AX Engine · AX Engine for SGLang
Measured throughput
RTX PRO 6000
C1 and C8 are one and eight concurrent streamed requests. Each pair uses the same checkpoint and 128 greedy output tokens per request. Throughput pools both test orders.
Qwen3.8-27B
Both lanes used seven DFlash2 proposals. The AX lane enabled accepted-state GDN replay with DFlash2 overlap.
| Precision | C1 stock → AX (tok/s) | C8 stock → AX (tok/s) | C8 change |
|---|---|---|---|
| BF16 | 73.63 → 73.63 | 381.61 → 398.81 | +4.51% |
| NVFP4 | 154.68 → 154.80 | 696.69 → 749.41 | +7.57% |
BF16 matched every paired output. NVFP4 matched every C1 output. At NVFP4 C8, the first three passes agreed and the fourth pass diverged inside each lane as well as across lanes. Latency and output agreement
A separate 27B NVFP4 comparison with AX overlap on both lanes measured 781.80 → 795.67 tok/s at C8 when the high-concurrency draft width moved from seven to five. Draft width results
With seven proposals, a separate 27B NVFP4 comparison measured 762.67 → 788.83 tok/s at C8 with the validated FP8 tactics. With five proposals for batches of four to eight, the RunPod comparison measured 756.80 → 767.85 tok/s at C8 (+1.46%). All 2,560 same-input FP8 output checks matched bitwise, and both tactics replayed in timed 48-row CUDA Graphs. Seven-proposal results · Five-proposal results
Qwen3.8-Flash-Next NVFP4
The greedy verification and QSA metadata comparisons used native MTP3 and a separate stock vLLM control for each experiment.
| AX experiment | C1 stock → AX (tok/s) | C8 stock → AX (tok/s) | C8 change |
|---|---|---|---|
| Greedy verification | 149.14 → 153.10 | 575.20 → 574.70 | −0.09% |
| QSA draft metadata | 148.40 → 151.71 | 574.01 → 576.27 | +0.39% |
The QSA retest measured −0.62% at C8 when stock ran first and +1.40% when AX ran first. Pooled C8 request p95 rose from 2.006 to 2.094 s. Complete output sequences also varied across repeated stock passes. The QSA path remains opt-in. Flash Next QSA retest
A separate RunPod test compared fixed K=3 and adaptive K=3/5/7 on one warmed server. Throughput moved from 165.57 to 164.47 tok/s at C1 (−0.66%) and from 545.44 to 551.84 tok/s at C8 (+1.17%). The C8 gain varied by test order, so fixed K=3 remains the default for this chat workload. Flash Next adaptive MTP results
Serving comparison · Measurement record
How it speeds up decoding
AX aims to emit more tokens per target-model pass while the target model decides what is emitted. On Qwen3.8-27B with DFlash2, the measured gain on RTX PRO 6000 comes from replaying only the accepted Gated DeltaNet state after sampling, and from overlapping that commit with the next DFlash2 proposal on full eight-request batches. Context KV views and the greedy verifier are separate opt-in experiments. A route pays off when it saves more time in the target pass than it adds in drafting and verification. Experiments and flags
Quick start
Use Python 3.11 or newer and the pinned vLLM build
0.34.0rc1.dev1105+g2f170a0fe. Install that wheel from the CUDA index for
the target platform, then install this package from a source checkout.
vLLM commit 2f170a0fe
uv pip install --index https://wheels.vllm.ai/2f170a0fed20fd84dfcf6da2a3a8188a32f67e4e \
--prerelease allow 'vllm==0.34.0rc1.dev1105+g2f170a0fe'
uv pip install --no-deps -e .
For a packaged install, download ax_engine_vllm-0.2.0-py3-none-any.whl
and install it with python -m pip install --no-deps ax_engine_vllm-0.2.0-py3-none-any.whl
after installing the pinned vLLM build. v0.2.0 release
For Qwen3.8-27B with DFlash2, build the GDN replay library from the pinned vLLM source and launch vLLM with the plugin. Build steps and flags
python benchmarks/build_gdn_probe.py \
"$VLLM_SRC/csrc/gdn/fused_gdn_decode_kernel.cu" /tmp/ax-gdn
VLLM_PLUGINS=ax-engine-vllm \
AX_VLLM_GDN_REPLAY_SO=/tmp/ax-gdn/gdn_probe.so \
AX_VLLM_GDN_OVERLAP=1 \
vllm serve "$TARGET" \
--speculative-config '{"method":"dflash","model":"'"$DRAFT"'","num_speculative_tokens":7}'
The serving benchmark compares stock vLLM with the AX lane. It uses the included 24 chat prompts and 128 greedy output tokens.
python benchmarks/streamed_chat.py --target "$TARGET" --draft "$DRAFT" \
--input-ids benchmarks/chat_input_ids.json --out results/chat \
--gdn-replay-so /tmp/ax-gdn/gdn_probe.so --gdn-overlap --stock-control
For Flash Next NVFP4, use the checkpoint's built-in MTP layer. MTP3 benchmark commands · Adaptive MTP benchmark commands
Supported platforms
| Host | NVIDIA configurations with measured serving throughput |
|---|---|
| Linux amd64 (x86_64) | RTX PRO 6000 Blackwell Server Edition (SM120) |
The RTX PRO 6000 runs used driver 595.112.07, PyTorch 2.14.0 and FlashInfer 0.7.4. Flash Next QSA metadata parity also passed on Jetson Thor. Platform record
vLLM compatibility and accelerated models
Use the standard vLLM server, client API and model loader. The table lists the measured speculative routes.
| Model family | Measured target precision | What this edition changes |
|---|---|---|
| Qwen3.8-27B dense (Gated DeltaNet) | BF16 and NVFP4 | DFlash2 serving with accepted-state GDN replay, and optional overlap of that commit with the draft proposal |
| Qwen3.8-Flash-Next | NVFP4 | Native MTP with opt-in greedy verification, QSA draft metadata and adaptive proposal counts |
The measured 27B NVFP4 target was RadixArk/Qwen3.8-27B-NVFP4 at
319f741cce68d7914884900c138a1fbb70a42f30, with the BF16 counterpart on
the same serving shape. The drafter was incoai/Qwen3.8-27B-DFlash2 at
015e795645c74b1a0eeef3b570031fb62e769bc5.
Model routes and flags · Flash Next QSA draft experiment
Documentation and repository layout
| Path | Use |
|---|---|
| docs/ | Install, platforms, model route and how to read the benchmarks |
| docs/performance.md | Stock vLLM and AX serving comparisons |
| src/ax_engine_vllm/ | Installable vLLM plugin |
| benchmarks/ | Streamed-chat benchmark and the GDN probe builder |
| tests/ | Dispatch tests and GPU checks |
| results/ | Benchmark report |
License
Apache License, Version 2.0. License text
Metadata
Release files for ax-engine-vllm 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ax_engine_vllm-0.2.0.tar.gz | 51.8 kB | With provenance | Details for ax_engine_vllm-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ax_engine_vllm-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for ax_engine_vllm-0.2.0-py3-none-any.whl |
Total release size: 91.7 kB
Release files / ax_engine_vllm-0.2.0.tar.gz
| Download URL | ax_engine_vllm-0.2.0.tar.gz |
|---|---|
| Size | 51.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0c75e177b730976172602d54f77e58464013cd798b638bb8105d2aa938b2fcde
|
|
BLAKE2b-256 checksum How to use checksums |
1d1303df13e4f11d253fdf899cc83c51f2af033e935e291758f47e0b96c3f288
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.
Transparency logRelease files / ax_engine_vllm-0.2.0-py3-none-any.whl
| Download URL | ax_engine_vllm-0.2.0-py3-none-any.whl |
|---|---|
| Size | 39.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c0628e480e415856197c8795081d89570e931b1735b73cc1f0d22e40bfaaf9eb
|
|
BLAKE2b-256 checksum How to use checksums |
4e128ef3cffb9d1f2f45789e00f101dca3734a20528b639e69e7ed5821fc58d6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.
Transparency logSecurity for ax-engine-vllm 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for ax_engine_vllm-0.2.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.