Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
Signed-off-by: Conroy Cheers <[email protected]>
  • Loading branch information
conroy-cheers committed Oct 29, 2024
1 parent c91ebd0 commit 4fcfec4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 2 additions & 0 deletions vllm/platforms/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,11 @@
except pynvml.NVMLError_LibraryNotFound:
# CUDA is supported on Jetson, but NVML is not.
import os

def cuda_is_jetson() -> bool:
return os.path.isfile("/etc/nv_tegra_release") \
or os.path.exists("/sys/class/tegra-firmware")

if cuda_is_jetson():
is_cuda = True
is_cuda_jetson = True
Expand Down
3 changes: 0 additions & 3 deletions vllm/platforms/cuda_jetson.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,10 @@
to fetch device information.
"""

import os
from functools import lru_cache

import torch

from vllm.logger import init_logger

from .interface import DeviceCapability, Platform, PlatformEnum


Expand Down

0 comments on commit 4fcfec4

Please sign in to comment.