Make install ut for cpu exactly the same as what we want for users (#11051)
This commit is contained in:
		
							parent
							
								
									3a72e5df8c
								
							
						
					
					
						commit
						fff067d240
					
				
					 1 changed files with 5 additions and 1 deletions
				
			
		
							
								
								
									
										6
									
								
								.github/actions/llm/setup-llm-env/action.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										6
									
								
								.github/actions/llm/setup-llm-env/action.yml
									
									
									
									
										vendored
									
									
								
							| 
						 | 
				
			
			@ -38,7 +38,11 @@ runs:
 | 
			
		|||
          pip install --upgrade --pre -i https://pypi.python.org/simple --force-reinstall "python/llm/dist/${whl_name}[xpu_2.1]" --extra-index-url https://pytorch-extension.intel.com/release-whl/stable/xpu/cn/ 
 | 
			
		||||
          pip install pytest expecttest
 | 
			
		||||
        else
 | 
			
		||||
          pip install --upgrade --pre -i https://pypi.python.org/simple --force-reinstall "python/llm/dist/${whl_name}[all]" --extra-index-url https://download.pytorch.org/whl/cpu
 | 
			
		||||
          if [[ ${{ runner.os }} == 'Linux' ]]; then
 | 
			
		||||
            pip install --upgrade --pre -i https://pypi.python.org/simple --force-reinstall "python/llm/dist/${whl_name}[all]" --extra-index-url https://download.pytorch.org/whl/cpu
 | 
			
		||||
          elif [[ ${{ runner.os }} == 'Windows' ]]; then
 | 
			
		||||
            pip install --upgrade --pre -i https://pypi.python.org/simple --force-reinstall "python/llm/dist/${whl_name}[all]"
 | 
			
		||||
          fi
 | 
			
		||||
          pip install pytest
 | 
			
		||||
          bash python/llm/test/run-llm-install-tests.sh
 | 
			
		||||
        fi
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue