mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2025-12-10 03:15:20 +08:00
[misc] add commit id in collect env (#7405)
This commit is contained in:
parent
02b1988b9f
commit
6c8e595710
@ -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'
|
||||
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user