Skip to content

Commit 90a3bdf

Browse files
AlpinDalexaguilar-amdAneurekawan-danfengchengzheng345
authored
[sync] vLLM 2026-07-04 — 63 commit(s) (d63c8e944..4a6bf3c77) (#1682)
* [sync] [ROCm][MLA] Fuse MLA q/kv RMSNorm + FP8 per-token quant in the FP8 attention path (#44977) Ported the ROCm MLA FP8 per-token quant fusion to Aphrodite namespaces: added the AITER custom op wrapper/registration, registered the new fusion pattern, and added compile test coverage. The upstream docs hunk was not applicable because this fork has no docs/design/fusions.md. Verified with py_compile on the modified Python files. Upstream-vLLM: 09663abde0f50944a8d5ea30120666024b503faa Co-authored-by: xaguilar-amd <xavier.aguilarfruto@amd.com> * [sync] [Bugfix][Kernel] Correct FlashInfer CUTLASS MoE tuning token bound (#46838) Applied the FlashInfer CUTLASS MoE token-bound fix by removing the max_capture_size-backed tune_max_num_tokens override from the matching modular experts implementation and the fork's adjacent legacy wrapper; also removed the now-unused config import. Verified no leftover max_capture_size/tune_max_num_tokens references remain in those two FlashInfer CUTLASS MoE files. Upstream-vLLM: 2665ed704b04219dd67a6bb82636cd51bbe98183 Co-authored-by: Hiki <aneureka2@gmail.com> * [sync] [Feature] Universal speculative decoding for heterogeneous vocabularies (TLI) (#38174) Applied the heterogeneous-vocabulary speculative decoding port to Aphrodite equivalents, including config validation, draft tokenizer selection, vocab mapping, proposer ID/logit translation, docs, and tests. Static py_compile verification passed; runtime tests were not run because torch is not installed in this environment. Upstream-vLLM: 3af878955935dd356182f6dd2ea9660acb1757be Co-authored-by: Wonderful <wandanfeng0802@gmail.com> * [sync] [Model] Add LLaVA-OneVision-2 (LlavaOnevision2ForConditionalGeneration) (#44785) Ported LLaVA-OneVision-2 support into Aphrodite: added the model implementation, registered LlavaOnevision2ForConditionalGeneration, added docs and multimodal processing tests/skips. Syntax parsing passes for the new Python files; a full import/test run is blocked by the environment missing torch. Root ./AGENTS.md was not present, so only the visible repository instructions and nested-path checks were applied. Upstream-vLLM: b0b8a286ddf6a2914d89ab2ff39507d8d4a71b65 Co-authored-by: chengzheng345 <chengzheng345@gmail.com> * [sync] feat(rust): expose profiler control routes in Rust frontend (#46306) Implemented the profiler config port across the Rust CLI, managed-engine forwarding, server config/state, engine-core utility methods, profiler routes, example config, and targeted tests. Could not run formatting or tests because cargo/rustfmt/rustc are not available in this environment. Upstream-vLLM: 08a8a4af3fb904ab809c6347b785407f180ccf22 Co-authored-by: Pranav Thakur <103683515+pranavthakur0-0@users.noreply.github.com> * [sync] [Rust Frontend] Use enum-backed domain types for engine outputs and structured outputs (#47283) Applied the enum-backed engine output and structured output port across the Rust protocol, dispatcher/coordinator handling, response-format conversion, mock engine, and affected tests. Could not run cargo/rustfmt because neither binary is installed in the environment. Upstream-vLLM: 25fcb65d51deef0026aa34e6067703da4a91f956 Co-authored-by: Bugen Zhao <i@bugenzhao.com> * [sync] Update DeepGEMM tag to point to latest nv-dev branch for sm120 support (#47304) Updated DeepGEMM default git ref to a6b593d2826719dcf4892609af7b84ee23aaf32a in cmake/external_projects/deepgemm.cmake and tools/install_deepgemm.sh, adding the nv-dev/sm120 note from the upstream patch. Verified the old ref is gone from those files. No git commands were run. Upstream-vLLM: 84b9c2762f5fdfa6ec1b133397e9ea460bd19152 Co-authored-by: Michael Goin <mgoin64@gmail.com> * [sync] [ROCm] [PyTorch] Move to stable abi since ROCm upgraded to torch 2.11 (#47128) Applied the ROCm stable ABI port: moved cuda_view and cuda_utils into the stable libtorch extension for CUDA/HIP, set stable and MoE stable targets to PyTorch 2.11 ABI for both backends, removed legacy ROCm registrations/declarations, and deleted the obsolete csrc/cuda_view.cu file. Upstream-vLLM: de2a8fc042b6e9ca834ff20746734ed32b5ca219 Co-authored-by: TJian <tunjian.tan@embeddedllm.com> * [sync] [ModelRunner V2] Enable by default for all dense models (#44443) Applied the applicable ModelRunner V2 defaulting change to Aphrodite config and updated corresponding tests; the upstream Buildkite test-area file is absent in this fork, so that hunk was not applicable. Upstream-vLLM: a2f713002df9fd08c0fe13272c76547421721f2d Co-authored-by: Wentao Ye <44945378+yewentao256@users.noreply.github.com> * [sync] [ModelRunner V2] Fix Mamba2 crash on non-spec-decode (#47428) Applied the upstream MambaHybridModelState guard in aphrodite/v1/worker/gpu/model_states/mamba_hybrid.py so speculative decode metadata is only built when num_speculative_tokens > 0. Verified the edited block by rereading the file; no git commands were run. Upstream-vLLM: 3e158ae62d1c227004fa9f702a51126e58ebbcb2 Co-authored-by: Nick Hill <nickhill123@gmail.com> * [sync] [Bugfix][Model Runner V2][Spec Decode] Fix int32 offset overflow in block verification kernels (#47383) Applied the int64 index promotions in aphrodite/v1/worker/gpu/spec_decode/rejection_sampler_utils.py and added the Aphrodite-renamed CUDA regression test at tests/v1/worker/test_gpu_rejection_sampler_i64.py. Verified syntax with python -m py_compile; did not run git. Upstream-vLLM: a47f38f82569c236d7d23b7ad0c8792ac6d62247 Co-authored-by: Woosuk Kwon <woosuk@inferact.ai> * [sync] support GLM-5.2 gate use FP32 (#47410) Applied the GLM-5.2 fp32 MoE router port to Aphrodite paths: GateLinear now restricts DSV3 router GEMM to bf16 weights, and DeepseekV2MoE now selects fp32 router params/output/compute for glm_moe_dsa or moe_router_dtype=float32 while preserving the ROCm out_dtype guard. No git commands were run. Upstream-vLLM: 178fd5609427d4da1ca901ec0e78364d4d1c6d15 Co-authored-by: Yuxuan Zhang <Yuxuan.Zhang2@liverpool.ac.uk> * [sync] [Rust Frontend] Improve scheduler stats logging parity (#47435) Applied the Rust scheduler stats logging parity changes to the fork. Added engine index tracking, scheduler log stat accumulation, spec/MFU/external cache/deferred/preemption log calculations, CUDAGraph DTO rename, and wired stats recording into the accumulator. Could not run rustfmt or cargo because both binaries are unavailable in this environment. Upstream-vLLM: ec0ffaacc8a6437681b5743cfdcc7841ada6b4d7 Co-authored-by: Bugen Zhao <i@bugenzhao.com> * [sync] [Model Runner V2][Perf] Warm up GLM-5.2 DSA indexer prefill metadata kernel (#47285) Applied the upstream warmup change to aphrodite/model_executor/warmup/sparse_mla_triton_warmup.py by adding the DEEPSEEK_V32_INDEXER backend set and warming the prefill chunk metadata kernel for it. Verified the edited sections by rereading the file; no git commands were run. Upstream-vLLM: 320ee285c9d8227d87782854f83b4f3216e169c7 Co-authored-by: Chauncey <chaunceyjiang@gmail.com> * [sync] [Bugfix] Fix pooled Whisper encoder sliding-window kernel size (#47437) Applied the Whisper pooled sliding-window fix to Aphrodite paths and updated the Voxtral realtime test expectation to 189. No git commands were run; only read-only sanity inspection was performed after edits. Upstream-vLLM: 443e68cfa616312d88aecd613a8013d5b5169956 Co-authored-by: Nick Hill <nickhill123@gmail.com> * [sync] [BugFix][MRV2] Ensure all req slots are accounted for when scheduling (#46974) Applied the upstream scheduler fix to Aphrodite paths and added the worker-slot overflow regression tests with local imports. Static AST parsing passed for touched files; pytest could not be run because pytest is not installed in this environment. Upstream-vLLM: e392bf7a68ff440636c68f36a1f198c1608097dd Co-authored-by: Nick Hill <nickhill123@gmail.com> * [sync] [Bugfix][Tool Parser] poolside_v1: accept tool calls without newline after function name (#47311) Applied the poolside_v1 parser regex change to accept tool calls without a newline after the function name and added the corresponding non-streaming/streaming regression tests adapted to Aphrodite paths. Syntax compile passed; pytest could not be run because pytest is not installed in this environment. Upstream-vLLM: 258f8de91f99b40a4dfb234e55a09e9493c6ece8 Co-authored-by: Joe Rowell <joerowell4@gmail.com> * [sync] Delete PagedAttention (#47361) Applied the upstream PagedAttention deletion to Aphrodite: removed libtorch stable CUDA sources and registrations, removed Python v1/v2 wrappers, and narrowed the benchmark/test coverage to the remaining ROCm paged attention path. Verified touched Python files with py_compile and did not run git. Upstream-vLLM: d715b3aa1ea6af3f663eb6d3cd8f5b6bb15770e9 Co-authored-by: Michael Goin <mgoin64@gmail.com> * [sync] Xqa decode kernels (#43232) Port completed. Updated FlashInfer TRTLLM/XQA support, docs generator, and adapted tests for Aphrodite naming. Verified with py_compile and ruff; pytest could not run because pytest is not installed. Upstream-vLLM: d29125c0852eb61efef060d55675010d1abf51fe Co-authored-by: Dan Blanaru <48605845+DanBlanaru@users.noreply.github.com> * [sync] Fix Transformers modeling backend usage stats (#47472) Applied the upstream usage stats change to aphrodite/v1/utils.py. Transformers backend usage now reports the backend wrapper class with the wrapped architecture, while non-Transformers backends keep the existing architecture class reporting. No tests were run per the edit-only/no-git instruction. Upstream-vLLM: e24d1b24fe96a56ba8b0d653efa076d03eb95d6c Co-authored-by: Harry Mellor <19981378+hmellor@users.noreply.github.com> * [sync] [ROCm][CI] Adding metadata (#47477) Applied the applicable ROCm metadata packaging change to this fork: docker/Dockerfile.rocm now exports the present Docker metadata input files for both ROCm build stages, using Aphrodite paths. Added a focused test covering those exported inputs. Upstream Buildkite and ROCm bake additions were not copied because this fork lacks the corresponding .buildkite/test-amd.yaml, .buildkite/scripts/ci-bake-rocm.sh, docker/Dockerfile.rocm_base, and docker/docker-bake-rocm.hcl files. Upstream-vLLM: 407f4063007bbe5164a6d9a93f6f93b360230273 Co-authored-by: Andreas Karatzas <akaratza@amd.com> * [sync] [ROCm][CI] Adding extract hs 2gpu (#47482) Ported the applicable Aphrodite-renamed test change: added current_platform import and extended the TP2 hidden-states timeout to 240s on ROCm. The upstream .buildkite/test-amd.yaml change is not applicable because this fork has no such file; no git commands were run. Upstream-vLLM: 442ccc60983b4acc8a5a9c793c65509814dbc552 Co-authored-by: Andreas Karatzas <akaratza@amd.com> * [sync] Add Laguna XS.2.1 DFlash drafter support (#46853) Applied the Laguna XS-2.1 DFlash support to the Aphrodite fork: added the Laguna DFlash model, wired architecture registry and proposer handling, adapted Laguna attention prefixes/layer indices for DFlash cache mapping, refactored shared DFlash KV precompute hooks, and added registry/e2e smoke coverage. Syntax checks passed with py_compile; no git commands were run. Upstream-vLLM: 4c3c64fcf76450d3d0bbfd3d1725eade0f214710 Co-authored-by: adamkbaranowski <131254863+adamkbaranowski@users.noreply.github.com> * [sync] [ModelRunner V2][BugFix] Free all model refs on shutdown (#47483) Applied the upstream shutdown cleanup to aphrodite/v1/worker/gpu/model_runner.py: model_state is deleted and speculator is cleared after free_before_shutdown and before deleting model. Verified the changed block by reading the file; no git commands were run. Upstream-vLLM: 276b837dc4d6a15ec7a82099dccd4c997eec916b Co-authored-by: Nick Hill <nickhill123@gmail.com> * [sync] [CI] Pin modelscope version to fix test breakage (#47465) Applied the modelscope<1.38 pin to the applicable fork files: docker/Dockerfile and requirements/test/xpu.in. Upstream Buildkite YAML targets were not present in this fork. Upstream-vLLM: d85601c20f8df3baee689ac0e27ad84d39c2507e Co-authored-by: Nick Hill <nickhill123@gmail.com> * [sync] [BugFix] Derive FlashInfer Q dtype from resolved per-group builder state (#47485) Applied the FlashInfer Q dtype port in aphrodite/v1/attention/backends/flashinfer.py: q dtype resolution now uses the builder's resolved per-group cache_dtype and instance state, with the SM90/SM100 FP8-Q guard from upstream. Syntax check passed for the touched file; no git commands were run. Upstream-vLLM: 41de1380c23d9993197f8103b4f6c5b63a5b0835 Co-authored-by: Michael Goin <mgoin64@gmail.com> * [sync] [Bugfix][Gemma4] Keep image bidirectional attention within the sliding window (#47217) Applied the Gemma4 mm_prefix sliding-window clamp port to the local Aphrodite paths and verified the edited Python files with a read-only syntax compile. No git commands were run. Upstream-vLLM: 979f5511d78b317760d45df9290233c27793a0af Co-authored-by: Luciano Martins <22145370+lucianommartins@users.noreply.github.com> * [sync] [Bugfix][Rust Frontend] Tolerate out-of-vocab prompt ids in detokenizer (#44682) Applied the Rust tokenizer incremental detokenizer port in rust/src/tokenizer/src/incremental.rs, including prompt-only unknown-id filtering and regression tests. Verification via cargo nextest could not run because cargo is not installed in the environment. Upstream-vLLM: 1aeabec355ebf2ea9efc5f60f68730d2316ce9f0 Co-authored-by: Ting SUN <suntcrick@gmail.com> * [sync] [Rust Frontend] Recover buffered text from incomplete tool calls at EOS (#47289) Applied the upstream Rust frontend change in rust/src/chat/src/output/default/unified.rs: finish errors now reset the parser and emit recovered buffered text, with Aphrodite-local test coverage for scripted finish recovery and incomplete Gemma4 tool-call recovery. Could not run formatting/tests because cargo/rustfmt are not installed on PATH. Upstream-vLLM: 9b8e76589dc8cd3a5c6928e8ca6f1bd5feea0a2b Co-authored-by: Reid <61492567+reidliu41@users.noreply.github.com> * [sync] [CPU][Build] Enable oneDNN ITT task collection by default for CPU primitive-level profiling (#47467) Applied the upstream one-line CMake change in cmake/cpu_extension.cmake, setting ONEDNN_ENABLE_ITT_TASKS to ON. Verified the target setting without running git. Upstream-vLLM: bd8d9021ce51ca465e271de95ec6de253e553641 Co-authored-by: Evgeny Parshutin <eugeny.parshutin@intel.com> * [sync] New stable abi cleanup (#46656) Applied the stable ABI cleanup: moved the shared helper headers into csrc/libtorch_stable, updated stable-ABI include paths including Aphrodite-local CUTLASS helper names, added the upstream DeviceGuard placements, and verified no stale old-path references remain. Upstream-vLLM: fbc9ba6d303b97d38a3f8b420a90de161b709aff Co-authored-by: Chris Leonard <chleonar@redhat.com> * [sync] [Rust Frontend] add repetition_detection support to sampling params (#46684) Applied the Rust frontend repetition_detection port across engine-core sampling params, text lowering/validation, OpenAI chat/completions request conversion, and repetition finish reason handling. Could not run formatting or tests because cargo/rustfmt are not installed in the environment. Upstream-vLLM: 6429d5f527f57d4a88b79b7fda2fcdd32f4a0e13 Co-authored-by: yangyang-cs95 <360635545@qq.com> * [sync] [CI] Enable sccache for Rust build under CUDA/ROCm (#45246) Applied the sccache Rust build port to this fork's Docker layout: CUDA base now installs/configures sccache and the CUDA/ROCm wheel builds set RUSTC_WRAPPER with stats and AWS secret mounts when USE_SCCACHE=1. Updated docker/versions.json for the new sccache ARG defaults. The versions checker could not run because dockerfile_parse is not installed, but JSON validity and sccache default consistency were verified without git. Upstream-vLLM: b790c84cde050c39f37a0a1f967e877d4c2fb4c9 Co-authored-by: Bugen Zhao <i@bugenzhao.com> * [sync] Add Triton Backend for Unlimited-OCR R-SWA (#47102) Applied the Unlimited-OCR TritonAttention R-SWA port to Aphrodite: config selection now permits and auto-falls back to TRITON_ATTN, docs were updated, Triton attention metadata carries R-SWA prefix/window data, and the unified Triton mask now supports prefix-global plus generated-token sliding-window attention. Syntax checks passed with bytecode writing disabled. Upstream-vLLM: 1f486d96a17303ce8db8e02be39545b2be338446 Co-authored-by: Dakai An <77474977+andakai@users.noreply.github.com> * [sync] Move Roberta remaining nn.Embedding to VocabParallelEmbedding (#47452) Applied the upstream RoBERTa embedding change to aphrodite/model_executor/models/roberta.py, replacing the remaining position and token type nn.Embedding layers with VocabParallelEmbedding. No tests were run. Upstream-vLLM: bbdcbe468636f4174a34ce9396c3e469da045b4b Co-authored-by: Max de Bayser <mbayser@br.ibm.com> * [sync] [Rust Frontend] Bump llm-multimodal version (#47530) Applied the Rust frontend llm-multimodal bump and corresponding API/test updates to Cargo.toml, Cargo.lock, and affected Rust sources. Did not run git or tests per instruction. Upstream-vLLM: 400a9c386da89ef86a72f4f84300ef94030fac6d Co-authored-by: Isotr0py <Isotr0py@outlook.com> * [sync] [Bugfix][Frontend] Fix batch chat endpoint corrupting logprobs when return_token_ids is set (#47384) Applied the upstream batch chat logprobs fix to Aphrodite paths: added return_tokens_as_token_ids to BatchChatCompletionRequest, wired batch logprob rendering to that field instead of return_token_ids, and added the regression tests from the patch. Root AGENTS.md was not present; no git commands were run. Upstream-vLLM: 18f658bb3185779ee58999a328246d09886d568b Co-authored-by: David Feng <15175853+fenghourun@users.noreply.github.com> * [sync] [Frontend] Refine the entrypoint class's inheritance hierarchy. (#47498) Applied the entrypoint hierarchy port: added GenerateBaseServing, updated concrete generate/speech/pooling serving classes and tests, kept an OpenAIServing compatibility shim, and verified affected files with py_compile. Full import smoke was not possible because torch is not installed in this environment. Upstream-vLLM: a14f57a3ac0f011a50b62adc410cef93de4d7854 Co-authored-by: wang.yuqi <yuqi.wang@daocloud.io> * [sync] [Bugfix][CPU] Ship examples/ in the CPU release image (#47447) Applied the CPU release image change to docker/Dockerfile.cpu by copying examples/ into the final aphrodite-openai stage before the entrypoint, adapted to this fork's Dockerfile structure. No git commands were run. Upstream-vLLM: 978de8335305fe99b610109254e7e3037a735948 Co-authored-by: AgenticSpark <jianglie2023@gmail.com> * [sync] [CI Bugfix] Lazily import Qwen warmup dependencies (#47539) Applied the upstream lazy-import change to the Aphrodite-renamed warmup module at aphrodite/model_executor/warmup/qwen_triton_warmup.py. Moved Qwen warmup dependencies out of module scope and into the helper functions that use them. No git commands were run. Upstream-vLLM: d7192cfccf0f4fa677fc108c6d9a7828d32a8eea Co-authored-by: Roberto L. Castro <38211239+LopezCastroRoberto@users.noreply.github.com> * [sync] [ROCm][CI] Adding test groups for parity with upstream (#47479) Applied the applicable ROCm kernel change to aphrodite/model_executor/layers/fla/ops/chunk_delta_h.py, mapping upstream vllm path to this fork. The Buildkite CI additions were not applied because this fork has no .buildkite/test-amd.yaml or equivalent test pipeline file. Upstream-vLLM: 3775d5fcabf7bc5d4d92768485d860d132c6e1b6 Co-authored-by: Andreas Karatzas <akaratza@amd.com> * [sync] [Rust Frontend] Speed up chat roundtrip tests (#47523) Applied the upstream Rust frontend test speedup: added dev-package optimization overrides in rust/Cargo.toml and changed chat roundtrip tests to load model backends once per case using this fork's aphrodite_chat types. Upstream-vLLM: 8651f043b854b75c6dc875261073e2346290f4f5 Co-authored-by: Bugen Zhao <i@bugenzhao.com> * [sync] [ROCm] Fix encoder-decoder cross-attention KV layout aliasing (#47035) Applied the upstream ROCm encoder-decoder KV layout fix with Aphrodite package renames: skipped fp16 AITER Whisper validation, normalized AITER unified attention KV splitting/fallback for non-causal cross-attention, and added mixed attention KV layout detection in the GPU model runner. Verified the edited Python files parse successfully without running git. Upstream-vLLM: f63dca68385c41148f386c86eac796c83d5ddd3b Co-authored-by: djramic <djoramic@amd.com> * [sync] [AMD][EPLB] Enable EPLB for Quark OCP MXFP4 MoE (#47220) Applied the upstream change to the Aphrodite-renamed path: QuarkOCP_MX_MoEMethod now reports supports_eplb = True with the AITER layout-safety comment. Upstream-vLLM: 576bf75d0e79d6cca2440138fedae68a73089073 Co-authored-by: Oxana Korzh <okorzh@amd.com> * [sync] [Bugfix][Multimodal] Normalize direct PIL image inputs (#47566) Applied the upstream multimodal parser change to aphrodite/multimodal/parse.py: direct PIL image inputs are now EXIF-normalized and converted to RGB before ImageProcessorItems. Verified with python -m py_compile aphrodite/multimodal/parse.py. No git commands were run. Upstream-vLLM: 379950191f9d229a44c75d0256d95677fa34519c Co-authored-by: Ting SUN <suntcrick@gmail.com> * [sync] [GLM4V] Avoid GLM4V processor init during startup metadata reads (#47155) Applied the GLM4V metadata-read port to aphrodite/model_executor/models/glm4_1v.py: processor class is read from config before falling back to processor init, image/video max pixels are read from processor configs with multimodal overrides, and dummy text now uses config/tokenizer IDs. Read-only AST syntax parse passed; runtime import check could not run because transformers is not installed in this environment. Upstream-vLLM: d6d39c111e60e7b3c684503fe7a9bb7ecf9358dc Co-authored-by: labAxiaoming <34019940+labAxiaoming@users.noreply.github.com> * [sync] [Frontend] [Parser] Port DeepSeek V4 to streaming parser engine framework (#45877) Applied the DeepSeek V3.2/V4 parser-engine port with Aphrodite renames: added engine parsers/adapters, switched registrations, removed legacy parser modules, updated parser-engine fixes, and aligned local DeepSeek tests. Python compile checks passed; a runtime smoke import could not run because this environment lacks torch. Upstream-vLLM: fb5291b35b0b1b1ec5840438da0f62f127417710 Co-authored-by: Ben Browning <bbrownin@redhat.com> * [sync] [Frontend] Limit `SO_REUSEPORT` to multi-worker serving (#47529) Applied the upstream change to the Aphrodite paths: setup_server now requires a reuse_port flag, SO_REUSEPORT is only set when requested, single-worker launch/run_server pass false, and run_multi_api_server enables it only for api_server_count > 1. Verified edited Python files parse successfully. Upstream-vLLM: ab3b6d97aa02af45b96607042d75eedefd1e122e Co-authored-by: Bugen Zhao <i@bugenzhao.com> * [sync] Support nvfp4 kv with kv-cache-dtype-skip-layers sliding_window (#42890) Applied the upstream kv-cache skip-layer alignment change to Aphrodite paths: added skip page padding config, heterogeneous KV block/page alignment, sliding-window skip-layer padding/block selection, unquantized cache shape handling for skipped layers, and updated KV-cache docs. Validated touched Python files with read-only AST parsing; no git commands were run. Upstream-vLLM: 67ff0ae30fe6b1ab1a912e10977d99ddb169c4b2 Co-authored-by: sychen52 <41452870+sychen52@users.noreply.github.com> * [sync] [MRV2][SD] Make Dynamic SD comatible with Full Cuda Graphs (#45953) Ported the dynamic speculative decoding CUDA graph changes to Aphrodite paths, including MRV2 capture sizing, V1-only spec-decode size adjustment, V2 support gating, and adapted tests. Could not run pytest because pytest/torch are not installed in this environment. Upstream-vLLM: 07516fda67d2133e26c0fd7386c0b0c8641e2a6e Co-authored-by: Ekagra Ranjan <3116519+ekagra-ranjan@users.noreply.github.com> * [sync] [ROCm][CI][Bugfix] Use VllmRunner for `voxtral_realtime` tests to avoid OOM on AMD GPU (#47536) Applied the upstream Voxtral realtime test change to this Aphrodite fork: the forward test now uses aphrodite_runner with local naming, the manual EngineArgs fixture/import was removed, and async cleanup now includes ROCm-aware shutdown and memory settling. Verified with py_compile; no git commands were run. Upstream-vLLM: f329ce405b12623fb8b1cf1830f12e5a712523be Co-authored-by: Shanshan Shen <467638484@qq.com> * [sync] [ROCm] Disable persistent sparse-MLA kernel for chunked-prefill continuations (#47567) Applied the upstream ROCm sparse MLA backend change to the renamed Aphrodite path, disabling persistent metadata for chunked-prefill continuations and passing null work metadata in that case. No git commands were run. Upstream-vLLM: 4c3c17d43bbdb6ec082914a482052bb7ca21784b Co-authored-by: Rohan Potdar <rohan.potdar@amd.com> * [sync] [Bugfix] Fix CPU split-KV scratchpad sizing (#45844) Applied the CPU split-KV scratchpad sizing fix to csrc/cpu/cpu_attn_impl.hpp and updated the CPU attention metadata builder to use kv_cache_spec.num_kv_heads in aphrodite/v1/attention/backends/cpu_attn.py. No git commands were run. Upstream-vLLM: 26eb87204d58d9d8a25c378fbaec9da23db3fb85 Co-authored-by: gausah01 <141038176+gausah01@users.noreply.github.com> * [sync] [Bugfix][Structured Output][Spec Decode] Constrain bitmask and trim grammar advance at the reasoning boundary (#44297) Applied the structured-output/spec-decode reasoning-boundary fix with Aphrodite path/import renames, added regression coverage, and verified modified files with py_compile. Root AGENTS.md was absent; only rust/AGENTS.md existed and was not applicable. Upstream-vLLM: e7c9df944969c251bdceed7b9d7bbcc7fec3639b Co-authored-by: yue.yu <yuyue0225sc@163.com> * [sync] [XPU] Add W8A8 FP8 linear kernel with multi-granularity quant support (#43645) Applied the XPU FP8 W8A8/W8A16 backend port to Aphrodite paths, including kernel selection, compressed-tensors opt-in behavior, and local docs. Upstream Buildkite changes were not applicable because this fork has no matching Intel CI YAML. Syntax compile passed for touched Python files; runtime import smoke test could not run because torch is not installed in the environment. Upstream-vLLM: 1a308c449c93d25b11dc79a199ed67db185a18df Co-authored-by: Chaojun Zhang <chaojun.zhang@intel.com> * [sync] [Misc] Preserve cross-encoder pooling extra kwargs (#47082) Applied the upstream cross-encoder pooling change to aphrodite/entrypoints/pooling/scoring/io_processor.py so compressed_token_type_ids is merged with existing PoolingParams.extra_kwargs instead of replacing them. Verified the edited file with py_compile. Root ./AGENTS.md was not present; no applicable AGENTS.md covered the touched path. Upstream-vLLM: 6eac8e0070c574fe1b8d6c276422ea301ddfda4c Co-authored-by: Taneem Ibrahim <taneem.ibrahim@gmail.com> * [sync] [Misc] Forward request-level prompt extras for cross-encoder scoring (#46939) Applied the upstream cross-encoder scoring change to aphrodite/entrypoints/pooling/scoring/io_processor.py and verified the edited file parses with ast. Upstream-vLLM: fa1fa968c4f1ed89d1df39af28db70544a41fa12 Co-authored-by: Taneem Ibrahim <taneem.ibrahim@gmail.com> * [sync] [Misc] Update request-extras parity for batch chat completion (#47333) Applied upstream batch chat request-extras parity changes to Aphrodite: added media_io_kwargs, mm_processor_kwargs, priority, and cache_salt to BatchChatCompletionRequest, and batch serving now passes request.priority directly. Upstream-vLLM: 2f21224527bdac2e4ccd251563101257ad61b214 Co-authored-by: Taneem Ibrahim <taneem.ibrahim@gmail.com> * [sync] [Misc] Validate Pooling cache_salt Values (#46966) Added pooling request validation so cache_salt must be a non-empty string when provided; verified the edited protocol file compiles. Upstream-vLLM: 1d354c694eedf241b836319dba497345a5aa1167 Co-authored-by: Taneem Ibrahim <taneem.ibrahim@gmail.com> * [sync] [CI] Bump `huggingface-hub` from `v1.10.2` to `v1.22.0` (#47551) Applied the applicable upstream change: bumped huggingface-hub-related locked test requirements, updated benchmark tokenizer references to openai-community/gpt2 including the fork-only txt_slices benchmark, and verified no old pins or benchmark gpt2 references remain in targeted paths. Upstream Buildkite YAML hunks were not applicable because those files are absent in this fork. Upstream-vLLM: f1445f6dbd341b09b93c16f17c85fe8dcfa70e3d Co-authored-by: Harry Mellor <19981378+hmellor@users.noreply.github.com> * [sync] [Bugfix][Frontend][gpt-oss] Recover raw tail when Harmony parser ends non-terminal (#47379) Applied the Harmony raw-tail recovery port to Aphrodite equivalents, including parser flush list semantics, response context handling, and updated focused tests. Verified modified files with py_compile; pytest could not be run because pytest is not installed in this environment. Upstream-vLLM: 0cd6f767e36f78598c2a932478b59c2f78897ff3 Co-authored-by: yzong-rh <yzong@redhat.com> * [sync] [Perf] Remove redundant op for GLM 5.2 (#47198) Applied the upstream DeepSeek V2 Indexer performance changes to aphrodite/model_executor/models/deepseek_v2.py, including cached n_head scaling, removing redundant k_pe squeeze/unsqueeze and weights reshaping, and replacing attn_kwargs construction with direct self_attn calls. Upstream-vLLM: 2a9113f9985f10d2089a55e419c3b67b1b9731de Co-authored-by: Wentao Ye <44945378+yewentao256@users.noreply.github.com> * [sync] [ROCm][CI] Fix Kernels and Kernels attention test failures (#47519) Applied the upstream ROCm CI test fixes to the Aphrodite-renamed test files: MLA decode metadata now uses a tensor prefill_backend stub, and the MXFP4 MoE oracle test now monkeypatches TP state plus AITER enablement using local aphrodite modules. Upstream-vLLM: 4a6bf3c77f05b398b46fe4207ea1ee715d56c64f Co-authored-by: Carl Persson <carl.persson@amd.com> * [sync] advance vllm-sha to 4a6bf3c77 Upstream-vLLM: 4a6bf3c77f05b398b46fe4207ea1ee715d56c64f --------- Co-authored-by: xaguilar-amd <xavier.aguilarfruto@amd.com> Co-authored-by: Hiki <aneureka2@gmail.com> Co-authored-by: Wonderful <wandanfeng0802@gmail.com> Co-authored-by: chengzheng345 <chengzheng345@gmail.com> Co-authored-by: Pranav Thakur <103683515+pranavthakur0-0@users.noreply.github.com> Co-authored-by: Bugen Zhao <i@bugenzhao.com> Co-authored-by: Michael Goin <mgoin64@gmail.com> Co-authored-by: TJian <tunjian.tan@embeddedllm.com> Co-authored-by: Wentao Ye <44945378+yewentao256@users.noreply.github.com> Co-authored-by: Nick Hill <nickhill123@gmail.com> Co-authored-by: Woosuk Kwon <woosuk@inferact.ai> Co-authored-by: Yuxuan Zhang <Yuxuan.Zhang2@liverpool.ac.uk> Co-authored-by: Chauncey <chaunceyjiang@gmail.com> Co-authored-by: Joe Rowell <joerowell4@gmail.com> Co-authored-by: Dan Blanaru <48605845+DanBlanaru@users.noreply.github.com> Co-authored-by: Harry Mellor <19981378+hmellor@users.noreply.github.com> Co-authored-by: Andreas Karatzas <akaratza@amd.com> Co-authored-by: adamkbaranowski <131254863+adamkbaranowski@users.noreply.github.com> Co-authored-by: Luciano Martins <22145370+lucianommartins@users.noreply.github.com> Co-authored-by: Ting SUN <suntcrick@gmail.com> Co-authored-by: Reid <61492567+reidliu41@users.noreply.github.com> Co-authored-by: Evgeny Parshutin <eugeny.parshutin@intel.com> Co-authored-by: Chris Leonard <chleonar@redhat.com> Co-authored-by: yangyang-cs95 <360635545@qq.com> Co-authored-by: Dakai An <77474977+andakai@users.noreply.github.com> Co-authored-by: Max de Bayser <mbayser@br.ibm.com> Co-authored-by: Isotr0py <Isotr0py@outlook.com> Co-authored-by: David Feng <15175853+fenghourun@users.noreply.github.com> Co-authored-by: wang.yuqi <yuqi.wang@daocloud.io> Co-authored-by: AgenticSpark <jianglie2023@gmail.com> Co-authored-by: Roberto L. Castro <38211239+LopezCastroRoberto@users.noreply.github.com> Co-authored-by: djramic <djoramic@amd.com> Co-authored-by: Oxana Korzh <okorzh@amd.com> Co-authored-by: labAxiaoming <34019940+labAxiaoming@users.noreply.github.com> Co-authored-by: Ben Browning <bbrownin@redhat.com> Co-authored-by: sychen52 <41452870+sychen52@users.noreply.github.com> Co-authored-by: Ekagra Ranjan <3116519+ekagra-ranjan@users.noreply.github.com> Co-authored-by: Shanshan Shen <467638484@qq.com> Co-authored-by: Rohan Potdar <rohan.potdar@amd.com> Co-authored-by: gausah01 <141038176+gausah01@users.noreply.github.com> Co-authored-by: yue.yu <yuyue0225sc@163.com> Co-authored-by: Chaojun Zhang <chaojun.zhang@intel.com> Co-authored-by: Taneem Ibrahim <taneem.ibrahim@gmail.com> Co-authored-by: yzong-rh <yzong@redhat.com> Co-authored-by: Carl Persson <carl.persson@amd.com>
1 parent 50e8fcd commit 90a3bdf

272 files changed

Lines changed: 11531 additions & 9245 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.sync/vllm-sha‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
d63c8e944481e057d00dfee20bc49544d291e521
1+
4a6bf3c77f05b398b46fe4207ea1ee715d56c64f

‎CMakeLists.txt‎

Lines changed: 17 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -352,9 +352,7 @@ endif()
352352
if(APHRODITE_GPU_LANG STREQUAL "HIP")
353353
set(APHRODITE_EXT_SRC
354354
"csrc/torch_bindings.cpp"
355-
"csrc/custom_quickreduce.cu"
356-
"csrc/cuda_view.cu"
357-
"csrc/libtorch_stable/cuda_utils_kernels.cu")
355+
"csrc/custom_quickreduce.cu")
358356

359357
message(STATUS "Enabling C extension.")
360358
define_extension_target(
@@ -382,6 +380,8 @@ if(APHRODITE_GPU_LANG STREQUAL "CUDA" OR APHRODITE_GPU_LANG STREQUAL "HIP")
382380
#
383381
set(APHRODITE_STABLE_EXT_SRC
384382
"csrc/libtorch_stable/torch_bindings.cpp"
383+
"csrc/libtorch_stable/cuda_view.cu"
384+
"csrc/libtorch_stable/cuda_utils_kernels.cu"
385385
"csrc/libtorch_stable/activation_kernels.cu"
386386
"csrc/libtorch_stable/quantization/activation_kernels.cu"
387387
"csrc/libtorch_stable/quantization/w8a8/int8/scaled_quant.cu"
@@ -401,8 +401,6 @@ if(APHRODITE_GPU_LANG STREQUAL "CUDA" OR APHRODITE_GPU_LANG STREQUAL "HIP")
401401
"csrc/libtorch_stable/sampler.cu"
402402
"csrc/libtorch_stable/topk.cu"
403403
"csrc/libtorch_stable/mamba/selective_scan_fwd.cu"
404-
"csrc/libtorch_stable/attention/paged_attention_v1.cu"
405-
"csrc/libtorch_stable/attention/paged_attention_v2.cu"
406404
"csrc/libtorch_stable/cache_kernels.cu"
407405
"csrc/libtorch_stable/cache_kernels.cu"
408406
"csrc/libtorch_stable/cache_kernels_fused.cu"
@@ -461,8 +459,6 @@ if(APHRODITE_GPU_LANG STREQUAL "CUDA" OR APHRODITE_GPU_LANG STREQUAL "HIP")
461459
FetchContent_MakeAvailable(cutlass)
462460

463461
list(APPEND APHRODITE_STABLE_EXT_SRC
464-
"csrc/libtorch_stable/cuda_view.cu"
465-
"csrc/libtorch_stable/cuda_utils_kernels.cu"
466462
"csrc/libtorch_stable/cutlass_extensions/common.cpp"
467463
"csrc/libtorch_stable/quantization/w8a8/cutlass/scaled_mm_entry.cu"
468464
"csrc/libtorch_stable/quantization/fp4/nvfp4_quant_entry.cu"
@@ -1154,14 +1150,15 @@ if(APHRODITE_GPU_LANG STREQUAL "CUDA" OR APHRODITE_GPU_LANG STREQUAL "HIP")
11541150
USE_SABI 3
11551151
WITH_SOABI)
11561152

1153+
# Set TORCH_TARGET_VERSION for stable ABI compatibility.
1154+
# This ensures we only use C-shim APIs available in PyTorch 2.11.
1155+
# _C_stable_libtorch is abi compatible with PyTorch >= TORCH_TARGET_VERSION
1156+
# which is currently set to 2.11.
1157+
target_compile_definitions(_C_stable_libtorch PRIVATE
1158+
TORCH_TARGET_VERSION=0x020B000000000000ULL)
1159+
11571160
# Needed to use cuda/hip APIs from C-shim
11581161
if(APHRODITE_GPU_LANG STREQUAL "CUDA")
1159-
# Set TORCH_TARGET_VERSION for stable ABI compatibility.
1160-
# This ensures we only use C-shim APIs available in PyTorch 2.11.
1161-
# _C_stable_libtorch is abi compatible with PyTorch >= TORCH_TARGET_VERSION
1162-
# which is currently set to 2.11.
1163-
target_compile_definitions(_C_stable_libtorch PRIVATE
1164-
TORCH_TARGET_VERSION=0x020B000000000000ULL)
11651162
target_compile_definitions(_C_stable_libtorch PRIVATE USE_CUDA)
11661163
if(COOPERATIVE_TOPK_ARCHS)
11671164
target_compile_definitions(_C_stable_libtorch PRIVATE
@@ -1171,12 +1168,6 @@ if(APHRODITE_GPU_LANG STREQUAL "CUDA" OR APHRODITE_GPU_LANG STREQUAL "HIP")
11711168
target_compile_definitions(_C_stable_libtorch PRIVATE
11721169
CUTLASS_ENABLE_DIRECT_CUDA_DRIVER_CALL=1)
11731170
elseif(APHRODITE_GPU_LANG STREQUAL "HIP")
1174-
# Set TORCH_TARGET_VERSION for stable ABI compatibility.
1175-
# This ensures we only use C-shim APIs available in PyTorch 2.10.
1176-
# _C_stable_libtorch is abi compatible with PyTorch >= TORCH_TARGET_VERSION
1177-
# which is currently set to 2.10.
1178-
target_compile_definitions(_C_stable_libtorch PRIVATE
1179-
TORCH_TARGET_VERSION=0x020A000000000000ULL)
11801171
target_compile_definitions(_C_stable_libtorch PRIVATE USE_ROCM)
11811172
endif()
11821173

@@ -1384,25 +1375,20 @@ define_extension_target(
13841375
USE_SABI 3
13851376
WITH_SOABI)
13861377

1378+
# Set TORCH_TARGET_VERSION for stable ABI compatibility.
1379+
# This ensures we only use C-shim APIs available in PyTorch 2.11.
1380+
# _moe_C_stable_libtorch is abi compatible with PyTorch >= TORCH_TARGET_VERSION
1381+
# which is currently set to 2.11.
1382+
target_compile_definitions(_moe_C_stable_libtorch PRIVATE
1383+
TORCH_TARGET_VERSION=0x020B000000000000ULL)
1384+
13871385
# Needed to use cuda/hip APIs from C-shim
13881386
if(APHRODITE_GPU_LANG STREQUAL "CUDA")
1389-
# Set TORCH_TARGET_VERSION for stable ABI compatibility.
1390-
# This ensures we only use C-shim APIs available in PyTorch 2.11.
1391-
# _moe_C_stable_libtorch is abi compatible with PyTorch >= TORCH_TARGET_VERSION
1392-
# which is currently set to 2.11.
1393-
target_compile_definitions(_moe_C_stable_libtorch PRIVATE
1394-
TORCH_TARGET_VERSION=0x020B000000000000ULL)
13951387
target_compile_definitions(_moe_C_stable_libtorch PRIVATE USE_CUDA)
13961388
# Needed by CUTLASS kernels
13971389
target_compile_definitions(_moe_C_stable_libtorch PRIVATE
13981390
CUTLASS_ENABLE_DIRECT_CUDA_DRIVER_CALL=1)
13991391
elseif(APHRODITE_GPU_LANG STREQUAL "HIP")
1400-
# Set TORCH_TARGET_VERSION for stable ABI compatibility.
1401-
# This ensures we only use C-shim APIs available in PyTorch 2.10.
1402-
# _moe_C_stable_libtorch is abi compatible with PyTorch >= TORCH_TARGET_VERSION
1403-
# which is currently set to 2.10.
1404-
target_compile_definitions(_moe_C_stable_libtorch PRIVATE
1405-
TORCH_TARGET_VERSION=0x020A000000000000ULL)
14061392
target_compile_definitions(_moe_C_stable_libtorch PRIVATE USE_ROCM)
14071393
endif()
14081394

‎aphrodite/_aiter_ops.py‎

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1355,6 +1355,62 @@ def _fused_mla_dual_rms_norm_fake(
13551355
return (torch.empty_like(x1), torch.empty_like(x2))
13561356

13571357

1358+
def _fused_mla_dual_rms_norm_per_token_quant_impl(
1359+
q: torch.Tensor,
1360+
q_weight: torch.Tensor,
1361+
kv: torch.Tensor,
1362+
kv_weight: torch.Tensor,
1363+
q_epsilon: float,
1364+
kv_epsilon: float,
1365+
) -> tuple[torch.Tensor, torch.Tensor, torch.Tensor]:
1366+
"""Fused MLA q/kv RMSNorm with FP8 per-token quant on q via AITER."""
1367+
try:
1368+
from aiter.ops.fused_qk_rmsnorm_group_quant import (
1369+
fused_qk_rmsnorm_per_token_quant,
1370+
)
1371+
except (ImportError, ModuleNotFoundError, AttributeError) as exc:
1372+
raise ImportError(
1373+
"fused_qk_rmsnorm_per_token_quant requires a newer AITer. "
1374+
"Please upgrade aiter or disable the "
1375+
"fuse_mla_dual_rms_norm pass."
1376+
) from exc
1377+
1378+
mq, nq = q.shape
1379+
q_out = torch.empty((mq, nq), dtype=FP8_DTYPE, device=q.device)
1380+
q_scale = torch.empty((mq, 1), dtype=torch.float32, device=q.device)
1381+
kv_normed = torch.empty(kv.shape, dtype=kv.dtype, device=kv.device)
1382+
1383+
# q -> RMSNorm + FP8 per-token quant; kv -> RMSNorm only.
1384+
fused_qk_rmsnorm_per_token_quant(
1385+
q_out_quantized=q_out,
1386+
q_out_scale=q_scale,
1387+
q=q,
1388+
q_weight=q_weight,
1389+
q_epsilon=q_epsilon,
1390+
k_out=kv_normed,
1391+
k=kv,
1392+
k_weight=kv_weight,
1393+
k_epsilon=kv_epsilon,
1394+
gemma_norm=False,
1395+
)
1396+
return q_out, q_scale, kv_normed
1397+
1398+
1399+
def _fused_mla_dual_rms_norm_per_token_quant_fake(
1400+
q: torch.Tensor,
1401+
q_weight: torch.Tensor,
1402+
kv: torch.Tensor,
1403+
kv_weight: torch.Tensor,
1404+
q_epsilon: float,
1405+
kv_epsilon: float,
1406+
) -> tuple[torch.Tensor, torch.Tensor, torch.Tensor]:
1407+
mq, nq = q.shape
1408+
q_out = torch.empty((mq, nq), dtype=FP8_DTYPE, device=q.device)
1409+
q_scale = torch.empty((mq, 1), dtype=torch.float32, device=q.device)
1410+
kv_normed = torch.empty(kv.shape, dtype=kv.dtype, device=kv.device)
1411+
return q_out, q_scale, kv_normed
1412+
1413+
13581414
def _rocm_aiter_gemm_a8wfp4_impl(
13591415
x: torch.Tensor,
13601416
w: torch.Tensor,
@@ -2046,6 +2102,13 @@ def register_ops_once() -> None:
20462102
fake_impl=_fused_mla_dual_rms_norm_fake,
20472103
)
20482104

2105+
direct_register_custom_op(
2106+
op_name="fused_mla_dual_rms_norm_per_token_quant",
2107+
op_func=_fused_mla_dual_rms_norm_per_token_quant_impl,
2108+
mutates_args=[],
2109+
fake_impl=_fused_mla_dual_rms_norm_per_token_quant_fake,
2110+
)
2111+
20492112
_OPS_REGISTERED = True
20502113

20512114
@staticmethod
@@ -2120,6 +2183,10 @@ def has_fused_allreduce_rmsnorm_quant_per_group(cls) -> bool:
21202183
def get_fused_mla_dual_rms_norm_op() -> OpOverload:
21212184
return torch.ops.aphrodite.fused_mla_dual_rms_norm.default
21222185

2186+
@staticmethod
2187+
def get_fused_mla_dual_rms_norm_per_token_quant_op() -> OpOverload:
2188+
return torch.ops.aphrodite.fused_mla_dual_rms_norm_per_token_quant.default
2189+
21232190
@staticmethod
21242191
def w8a8_gemm(
21252192
A: torch.Tensor,

0 commit comments

Comments
 (0)