Skip to content

Commit 8b2d3cb

Browse files
authored
usage lib get version another way (#3735)
1 parent 9765b5c commit 8b2d3cb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

vllm/usage/usage_lib.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
from uuid import uuid4
1212

1313
import cpuinfo
14-
import pkg_resources
1514
import psutil
1615
import requests
1716
import torch
@@ -161,8 +160,9 @@ def _report_usage_once(self, model_architecture: str,
161160
])
162161

163162
# vLLM information
163+
import vllm # delayed import to prevent circular import
164164
self.context = usage_context.value
165-
self.vllm_version = pkg_resources.get_distribution("vllm").version
165+
self.vllm_version = vllm.__version__
166166
self.model_architecture = model_architecture
167167

168168
# Metadata

0 commit comments

Comments
 (0)