@@ -283,12 +283,13 @@ def get_vllm_version():
283283 if __version__ == "dev" :
284284 return "N/A (dev)"
285285
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
288288 return f"{ __version__ } (git sha: { git_sha } "
289289
290290 return __version__
291291
292+
292293def summarize_vllm_build_flags ():
293294 # This could be a static method if the flags are constant, or dynamic if you need to check environment variables, etc.
294295 return 'CUDA Archs: {}; ROCm: {}; Neuron: {}' .format (
@@ -502,7 +503,9 @@ def run_with_pip():
502503 print ("uv is set" )
503504 cmd = ["uv" , "pip" , "list" , "--format=freeze" ]
504505 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+ )
506509
507510 out = run_and_read_all (run_lambda , cmd )
508511 return "\n " .join (line for line in out .splitlines ()
@@ -535,13 +538,12 @@ def is_xnnpack_available():
535538 else :
536539 return "N/A"
537540
541+
538542def get_env_vars ():
539543 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" )
545547 for k , v in os .environ .items ():
546548 if any (term in k .lower () for term in secret_terms ):
547549 continue
@@ -552,6 +554,7 @@ def get_env_vars():
552554
553555 return env_vars
554556
557+
555558def get_env_info ():
556559 run_lambda = run
557560 pip_version , pip_list_output = get_pip_packages (run_lambda )
0 commit comments