Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions tests/diffusion/lora/test_lora_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -1158,6 +1158,18 @@ def test_hunyuan_image3_peft_qkv_forward(tmp_path, monkeypatch, tp_size):
from vllm.model_executor import parameter
from vllm.model_executor.layers import linear

def cpu_unquantized_gemm(_layer, inputs, weight, bias=None):
return torch.nn.functional.linear(inputs, weight, bias)

# This numerical contract intentionally runs on CPU. Accelerator builds
# select the unquantized GEMM from the process-wide platform, which would
# otherwise dispatch CPU tensors to the ROCm-only custom operator.
monkeypatch.setattr(
linear,
"dispatch_unquantized_gemm",
lambda *_args, **_kwargs: cpu_unquantized_gemm,
)

adapter_dir = tmp_path / "adapter"
adapter_dir.mkdir()
rank = 2
Expand Down
Loading