执行摘要
在 usage stats 中添加 Intel XPU 硬件信息收集,避免 gpu_type 和 gpu_count 为 null。
根据 PR body,"vLLM's usage stats reporting lacks specific hardware details when running on Intel XPU platforms, resulting in gpu_type and gpu_count being reported as null"。因此,需要添加 XPU 硬件信息收集,以完善 usage stats 报告的准确性。
该 PR 值得 XPU 用户或 usage stats 模块维护者精读,以了解硬件检测扩展模式。建议关注 review 中提到的设备数检查缺失问题,在部署到无 XPU 设备的环境时可能引发异常。
review 中仅有一个评论来自 gemini-code-assist[bot],指出潜在错误:"If torch.xpu.device_count() returns 0, the subsequent calls to torch.xpu.get_device_name(0) and torch.xpu.get_device_properties(0) will raise an error." 建议添加设备数检查以避免异常。但该建议未被采纳,PR 在未修改的情况下被合并。
参与讨论