[Model Runner V2] Support FlashInfer backend & Fix CUDA Graph bug [1/2] (#32348)

Signed-off-by: Woosuk Kwon <woosuk.kwon@berkeley.edu>
This commit is contained in:
Woosuk Kwon
2026-01-15 08:59:23 -08:00
committed by GitHub
parent 77c16df31d
commit 6218034dd7
2 changed files with 17 additions and 7 deletions
+8 -2
View File
@@ -230,8 +230,14 @@ class GPUModelRunner(LoRAModelRunnerMixin, KVConnectorModelRunnerMixin):
)
# TODO(woosuk): Support other backends.
if not all(b.get_name() == "FLASH_ATTN" for b in self.attn_backends.values()):
raise NotImplementedError("Only FLASH_ATTN backend is supported currently.")
supported_backends = ("FLASH_ATTN", "FLASHINFER")
for backend in self.attn_backends.values():
backend_name = backend.get_name()
if backend_name not in supported_backends:
raise NotImplementedError(
f"The {backend_name} attention backend is not supported yet. "
f"Supported backends are: {supported_backends}."
)
self.kv_caches: list[torch.Tensor] = []
init_kv_cache(