diff --git a/vllm/utils.py b/vllm/utils.py index 2ff9668d9a463..6b325458e62a9 100644 --- a/vllm/utils.py +++ b/vllm/utils.py @@ -413,6 +413,9 @@ def seed_everything(seed: int) -> None: if is_xpu(): torch.xpu.manual_seed_all(seed) + if current_platform.is_hpu(): + torch.hpu.manual_seed_all(seed) + def random_uuid() -> str: return str(uuid.uuid4().hex)