Skip to content

Commit 6c8e595

Browse files
authored
[misc] add commit id in collect env (vllm-project#7405)
1 parent 02b1988 commit 6c8e595

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

collect_env.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -265,8 +265,9 @@ def get_neuron_sdk_version(run_lambda):
265265
def get_vllm_version():
266266
try:
267267
import vllm
268-
return vllm.__version__
269-
except ImportError:
268+
return vllm.__version__ + "@" + vllm.__commit__
269+
except Exception:
270+
# old version of vllm does not have __commit__
270271
return 'N/A'
271272

272273

0 commit comments

Comments
 (0)