Skip to content

Commit 396643d

Browse files
committed
Fix import for vllm_flash_attn
Signed-off-by: Vinay Damodaran <[email protected]>
1 parent 8034253 commit 396643d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

vllm/model_executor/models/qwen2_5_vl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ def forward(
321321
"(b s) ... -> b s ...",
322322
b=batch_size)
323323
elif self.attn_backend == _Backend.FLASH_ATTN_VLLM_V1:
324-
from vllm_flash_attn.flash_attn_interface import flash_attn_varlen_func
324+
from vllm.vllm_flash_attn.flash_attn_interface import flash_attn_varlen_func
325325

326326
q, k, v = (rearrange(x, "b s ... -> (b s) ...") for x in [q, k, v])
327327

vllm/model_executor/models/qwen2_vl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ def forward(
343343
"(b s) ... -> b s ...",
344344
b=batch_size)
345345
elif self.attn_backend == _Backend.FLASH_ATTN_VLLM_V1:
346-
from vllm_flash_attn.flash_attn_interface import flash_attn_varlen_func
346+
from vllm.vllm_flash_attn.flash_attn_interface import flash_attn_varlen_func
347347

348348
q, k, v = (rearrange(x, "b s ... -> (b s) ...") for x in [q, k, v])
349349

0 commit comments

Comments
 (0)