Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
8b2d3cbc
Unverified
Commit
8b2d3cbc
authored
Mar 29, 2024
by
Simon Mo
Committed by
GitHub
Mar 29, 2024
Browse files
usage lib get version another way (#3735)
parent
9765b5c4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
vllm/usage/usage_lib.py
vllm/usage/usage_lib.py
+2
-2
No files found.
vllm/usage/usage_lib.py
View file @
8b2d3cbc
...
@@ -11,7 +11,6 @@ from typing import Dict, Optional
...
@@ -11,7 +11,6 @@ from typing import Dict, Optional
from
uuid
import
uuid4
from
uuid
import
uuid4
import
cpuinfo
import
cpuinfo
import
pkg_resources
import
psutil
import
psutil
import
requests
import
requests
import
torch
import
torch
...
@@ -161,8 +160,9 @@ class UsageMessage:
...
@@ -161,8 +160,9 @@ class UsageMessage:
])
])
# vLLM information
# vLLM information
import
vllm
# delayed import to prevent circular import
self
.
context
=
usage_context
.
value
self
.
context
=
usage_context
.
value
self
.
vllm_version
=
pkg_resources
.
get_distribution
(
"
vllm
"
).
version
self
.
vllm_version
=
vllm
.
__
version
__
self
.
model_architecture
=
model_architecture
self
.
model_architecture
=
model_architecture
# Metadata
# Metadata
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment