@@ -65,18 +65,37 @@ def main():
6565 "--no-deps" ,
6666 ]
6767
68+ local_vllm_install_command = [
69+ sys .executable , # Use the current Python executable's pip to ensure the correct environment
70+ "-m" ,
71+ "uv" ,
72+ "pip" ,
73+ "install" ,
74+ "src/MaxText/integration/vllm" ,
75+ "--no-deps" ,
76+ ]
77+
6878 print (f"Installing extra dependencies from '{ extra_deps_file } ' using uv..." )
6979 print (f"Running command: { ' ' .join (command )} " )
7080
7181 try :
72- # Run the command
82+ # Run the command to install Github dependencies
7383 process = subprocess .run (command , check = True , capture_output = True , text = True )
7484 print ("Extra dependencies installed successfully!" )
7585 print ("--- Output from uv ---" )
7686 print (process .stdout )
7787 if process .stderr :
7888 print ("--- Errors/Warnings from uv (if any) ---" )
7989 print (process .stderr )
90+
91+ # Run the command to install the MaxText vLLM directory
92+ vllm_install_process = subprocess .run (local_vllm_install_command , check = True , capture_output = True , text = True )
93+ print ("MaxText vLLM dependency installed successfully!" )
94+ print ("--- Output from uv ---" )
95+ print (vllm_install_process .stdout )
96+ if vllm_install_process .stderr :
97+ print ("--- Errors/Warnings from uv (if any) ---" )
98+ print (vllm_install_process .stderr )
8099 except subprocess .CalledProcessError as e :
81100 print ("Failed to install extra dependencies." )
82101 print (f"Command '{ ' ' .join (e .cmd )} ' returned non-zero exit status { e .returncode } ." )
0 commit comments