[Rebase] Rebase to vLLM 0.30.0 (#7820)
Signed-off-by: tzhouam <tzhouam@connect.ust.hk> Signed-off-by: Gao Han <hgaoaf@connect.ust.hk> Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com> Co-authored-by: Gao Han <hgaoaf@connect.ust.hk>
This commit is contained in:
59 files changed
+1032
-300
No files matched your search
@@ -1,5 +1,5 @@
|
||||
# SPDX-License-Identifier: Apache-2.0
|
||||
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project
|
||||
# SPDX-FileCopyrightText: Copyright contributors to the vLLM-Omni project
|
||||
|
||||
import pytest
|
||||
from vllm.config import CompilationConfig, CompilationMode, DeviceConfig, VllmConfig
|
||||
@@ -45,3 +45,26 @@ def test_cuda_default_ir_op_priority_with_oink(monkeypatch: pytest.MonkeyPatch)
|
||||
)
|
||||
assert priority.rms_norm == ["oink", "vllm_c", "native"]
|
||||
assert priority.fused_add_rms_norm == ["oink", "vllm_c", "native"]
|
||||
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
"mode",
|
||||
[CompilationMode.NONE, CompilationMode.VLLM_COMPILE],
|
||||
)
|
||||
def test_cuda_default_ir_op_priority_names_only_registered_providers(mode: CompilationMode) -> None:
|
||||
"""Every field must name providers that are actually registered.
|
||||
|
||||
``IrOpPriorityConfig.with_default`` fills any field it is not given with the
|
||||
generic ``default`` list, so an override that does not name a field silently
|
||||
inherits every provider in that list. Upstream added ``gelu_and_mul_sparse``
|
||||
(implemented by ``triton``/``native`` only), which therefore must not inherit
|
||||
CUDA's ``["vllm_c", "native"]`` default: ``IrOp._filter_priority_impls``
|
||||
asserts on unregistered providers and is reached from ``WorkerBase.__init__``
|
||||
and the omni diffusion forward context.
|
||||
"""
|
||||
priority = CudaOmniPlatform.get_default_ir_op_priority(_vllm_config(mode=mode))
|
||||
assert priority.gelu_and_mul_sparse == ["triton", "native"]
|
||||
# Scoped context manager: runs the real upstream provider validation for
|
||||
# every field and restores the previous priorities on exit.
|
||||
with priority.set_priority():
|
||||
pass
|
||||
Reference in new issue
Block a user