Skip to content

Commit

Permalink
modify TYPE_CHECKING
Browse files Browse the repository at this point in the history
Signed-off-by: Shanshan Shen <[email protected]>
  • Loading branch information
shen-shanshan committed Dec 28, 2024
1 parent abf1f7e commit 547c444
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion vllm/platforms/cuda.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@
import vllm._C # noqa
import vllm.envs as envs
from vllm.logger import init_logger
from vllm.lora.punica_wrapper.punica_base import PunicaWrapperBase
from vllm.lora.punica_wrapper.punica_gpu import PunicaWrapperGPU
from vllm.utils import print_info_once

from .interface import DeviceCapability, Platform, PlatformEnum

if TYPE_CHECKING:
from vllm.config import VllmConfig
from vllm.lora.punica_wrapper.punica_base import PunicaWrapperBase
else:
VllmConfig = None

Expand Down
2 changes: 1 addition & 1 deletion vllm/platforms/hpu.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
import torch

from vllm.logger import init_logger
from vllm.lora.punica_wrapper.punica_base import PunicaWrapperBase
from vllm.lora.punica_wrapper.punica_hpu import PunicaWrapperHPU
from vllm.utils import print_info_once

from .interface import Platform, PlatformEnum, _Backend

if TYPE_CHECKING:
from vllm.config import VllmConfig
from vllm.lora.punica_wrapper.punica_base import PunicaWrapperBase
else:
VllmConfig = None

Expand Down
2 changes: 1 addition & 1 deletion vllm/platforms/rocm.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@

import vllm.envs as envs
from vllm.logger import init_logger
from vllm.lora.punica_wrapper.punica_base import PunicaWrapperBase
from vllm.lora.punica_wrapper.punica_gpu import PunicaWrapperGPU
from vllm.utils import print_info_once

from .interface import DeviceCapability, Platform, PlatformEnum, _Backend

if TYPE_CHECKING:
from vllm.config import VllmConfig
from vllm.lora.punica_wrapper.punica_base import PunicaWrapperBase
else:
VllmConfig = None

Expand Down

0 comments on commit 547c444

Please sign in to comment.