Files
enginex-mlu370-vllm/vllm-v0.6.2/vllm/platforms/hpu.py
2026-02-04 17:22:39 +08:00

12 lines
196 B
Python

import torch
from .interface import Platform, PlatformEnum
class HpuPlatform(Platform):
_enum = PlatformEnum.HPU
@staticmethod
def inference_mode():
return torch.no_grad()