Skip to content

Commit

Permalink
Fix lora flashinfer import bug on ROCM (#3312)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fridge003 authored Feb 5, 2025
1 parent 7ab8494 commit 76fa2d1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion python/sglang/srt/lora/backend/flashinfer_backend.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
from typing import Tuple

import torch
from flashinfer import SegmentGEMMWrapper

from sglang.srt.lora.backend import BaseLoraBackend
from sglang.srt.lora.lora import LoraBatchInfo
from sglang.srt.utils import is_flashinfer_available

if is_flashinfer_available():
from flashinfer import SegmentGEMMWrapper


class FlashInferLoraBackend(BaseLoraBackend):
Expand Down

0 comments on commit 76fa2d1

Please sign in to comment.