[Bugfix] Fix vllm bench ... on CPU-only head nodes (#25283)

Signed-off-by: Aydin Abiar <aydin@anyscale.com>
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
Co-authored-by: Aydin Abiar <aydin@anyscale.com>
Co-authored-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
Co-authored-by: Wentao Ye <44945378+yewentao256@users.noreply.github.com>
This commit is contained in:
Aydin Abiar
2025-10-08 16:06:42 +00:00
committed by GitHub
co-authored by Aydin Abiar Harry Mellor Wentao Ye
parent c1b06fc182
commit 76afe4edf8
3 changed files with 34 additions and 0 deletions
+10
View File
@@ -261,4 +261,14 @@ def __getattr__(name: str):
raise AttributeError(f"No attribute named '{name}' exists in {__name__}.")
def __setattr__(name: str, value):
if name == "current_platform":
global _current_platform
_current_platform = value
elif name in globals():
globals()[name] = value
else:
raise AttributeError(f"No attribute named '{name}' exists in {__name__}.")
__all__ = ["Platform", "PlatformEnum", "current_platform", "CpuArchEnum", "_init_trace"]