[Feature, Hardware] Enable SGLang on AMD GPUs via PyTorch for ROCm (#1420)

This commit is contained in:
HAI authored and GitHub committed 2024-09-17 07:43:52 +00:00
1 parent 2fa5cec775
commit 3a6e04185b
11 files changed
+104 -24

No files matched your search

+5 -2
View File
@@ -21,12 +21,15 @@ import re
from dataclasses import dataclass
import torch
from flashinfer import SegmentGEMMWrapper
from sglang.srt.lora.lora import LoRAAdapter, get_lora_layer
from sglang.srt.lora.lora_config import LoRAConfig
from sglang.srt.model_executor.forward_batch_info import ForwardMode
from sglang.srt.utils import replace_submodule
from sglang.srt.utils import is_hip, replace_submodule
# ROCm: flashinfer available later
if not is_hip():
from flashinfer import SegmentGEMMWrapper
def get_stacked_name(name):