mirror of
https://github.com/wassname/vllm.git
synced 2026-06-27 19:01:53 +08:00
[misc] add commit id in collect env (#7405)
This commit is contained in:
+3
-2
@@ -265,8 +265,9 @@ def get_neuron_sdk_version(run_lambda):
|
||||
def get_vllm_version():
|
||||
try:
|
||||
import vllm
|
||||
return vllm.__version__
|
||||
except ImportError:
|
||||
return vllm.__version__ + "@" + vllm.__commit__
|
||||
except Exception:
|
||||
# old version of vllm does not have __commit__
|
||||
return 'N/A'
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user