@@ -283,12 +283,13 @@ def get_vllm_version():
283
283
if __version__ == "dev" :
284
284
return "N/A (dev)"
285
285
286
- if len (__version_tuple__ ) == 4 : # dev build
287
- git_sha = __version_tuple__ [- 1 ][1 :] # type: ignore
286
+ if len (__version_tuple__ ) == 4 : # dev build
287
+ git_sha = __version_tuple__ [- 1 ][1 :] # type: ignore
288
288
return f"{ __version__ } (git sha: { git_sha } "
289
289
290
290
return __version__
291
291
292
+
292
293
def summarize_vllm_build_flags ():
293
294
# This could be a static method if the flags are constant, or dynamic if you need to check environment variables, etc.
294
295
return 'CUDA Archs: {}; ROCm: {}; Neuron: {}' .format (
@@ -502,7 +503,9 @@ def run_with_pip():
502
503
print ("uv is set" )
503
504
cmd = ["uv" , "pip" , "list" , "--format=freeze" ]
504
505
else :
505
- raise RuntimeError ("Could not collect pip list output (pip or uv module not available)" )
506
+ raise RuntimeError (
507
+ "Could not collect pip list output (pip or uv module not available)"
508
+ )
506
509
507
510
out = run_and_read_all (run_lambda , cmd )
508
511
return "\n " .join (line for line in out .splitlines ()
@@ -535,13 +538,12 @@ def is_xnnpack_available():
535
538
else :
536
539
return "N/A"
537
540
541
+
538
542
def get_env_vars ():
539
543
env_vars = ''
540
- secret_terms = ('secret' , 'token' , 'api' , 'access' , 'password' )
541
- report_prefix = ("TORCH" , "NCCL" , "PYTORCH" ,
542
- "CUDA" , "CUBLAS" , "CUDNN" ,
543
- "OMP_" , "MKL_" ,
544
- "NVIDIA" )
544
+ secret_terms = ('secret' , 'token' , 'api' , 'access' , 'password' )
545
+ report_prefix = ("TORCH" , "NCCL" , "PYTORCH" , "CUDA" , "CUBLAS" , "CUDNN" ,
546
+ "OMP_" , "MKL_" , "NVIDIA" )
545
547
for k , v in os .environ .items ():
546
548
if any (term in k .lower () for term in secret_terms ):
547
549
continue
@@ -552,6 +554,7 @@ def get_env_vars():
552
554
553
555
return env_vars
554
556
557
+
555
558
def get_env_info ():
556
559
run_lambda = run
557
560
pip_version , pip_list_output = get_pip_packages (run_lambda )
0 commit comments