Skip to content

Commit

Permalink
[misc] add cuda runtime version to usage data (#12190)
Browse files Browse the repository at this point in the history
Signed-off-by: youkaichao <[email protected]>
Co-authored-by: Roger Wang <[email protected]>
  • Loading branch information
youkaichao and ywang96 authored Jan 21, 2025
1 parent af69a6a commit da75122
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions vllm/usage/usage_lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ def __init__(self) -> None:
self.total_memory: Optional[int] = None
self.architecture: Optional[str] = None
self.platform: Optional[str] = None
self.cuda_runtime: Optional[str] = None
self.gpu_count: Optional[int] = None
self.gpu_type: Optional[str] = None
self.gpu_memory_per_device: Optional[int] = None
Expand Down Expand Up @@ -169,6 +170,8 @@ def _report_usage_once(self, model_architecture: str,
self.gpu_count = torch.cuda.device_count()
self.gpu_type = device_property.name
self.gpu_memory_per_device = device_property.total_memory
if current_platform.is_cuda():
self.cuda_runtime = torch.version.cuda
self.provider = _detect_cloud_provider()
self.architecture = platform.machine()
self.platform = platform.platform()
Expand Down

0 comments on commit da75122

Please sign in to comment.