forked from React-Group/interstellar_ai
		
	scripts
This commit is contained in:
		
							parent
							
								
									8789141f4c
								
							
						
					
					
						commit
						c38242e6ae
					
				
					 10 changed files with 59 additions and 0 deletions
				
			
		
							
								
								
									
										3
									
								
								deployment_scripts/linux/NOTE.txt
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								deployment_scripts/linux/NOTE.txt
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,3 @@ | ||||||
|  | on linux it is slightly easier | ||||||
|  | 
 | ||||||
|  | i'd say to create a preparation script for dnf/yum and apt based systems, which basically downloads the dependencies via the package manager, and ollama via the usual script | ||||||
							
								
								
									
										5
									
								
								deployment_scripts/windows/NOTE.txt
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								deployment_scripts/windows/NOTE.txt
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,5 @@ | ||||||
|  | You will need to make three folders: | ||||||
|  | 
 | ||||||
|  | node - contains nodejs portable | ||||||
|  | py - contains python3 portable | ||||||
|  | ollama - contains ollama portable | ||||||
							
								
								
									
										3
									
								
								deployment_scripts/windows/prepare.bat
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								deployment_scripts/windows/prepare.bat
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,3 @@ | ||||||
|  | start /b scripts\prepare_py.bat | ||||||
|  | start /b scripts\prepare_npm.bat | ||||||
|  | start /b scripts\prepare_ollama.bat | ||||||
							
								
								
									
										3
									
								
								deployment_scripts/windows/run.bat
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								deployment_scripts/windows/run.bat
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,3 @@ | ||||||
|  | start /b scripts\run_ollama.bat | ||||||
|  | start /b scripts\run_electron.bat | ||||||
|  | start /b scripts\run_py.bat | ||||||
							
								
								
									
										6
									
								
								deployment_scripts/windows/scripts/prepare_npm.bat
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								deployment_scripts/windows/scripts/prepare_npm.bat
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,6 @@ | ||||||
|  | cd node-bin | ||||||
|  | set PATH=%PATH%;%CD% | ||||||
|  | cd .. | ||||||
|  | 
 | ||||||
|  | npm install | ||||||
|  | npm run build | ||||||
							
								
								
									
										13
									
								
								deployment_scripts/windows/scripts/prepare_ollama.bat
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								deployment_scripts/windows/scripts/prepare_ollama.bat
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,13 @@ | ||||||
|  | cd ollama-bin | ||||||
|  | ollama.exe pull phi3.5 | ||||||
|  | ollama.exe pull qwen2-math:1.5b | ||||||
|  | ollama.exe pull starcoder2 | ||||||
|  | ollama.exe pull llava-phi3 | ||||||
|  | ollama.exe pull qwen2.5-coder:1.5b | ||||||
|  | ollama.exe pull starcoder2:7b | ||||||
|  | ollama.exe pull wizard-math | ||||||
|  | ollama.exe pull llama3.1 | ||||||
|  | ollama.exe pull llava | ||||||
|  | ollama.exe pull qwen2.5 | ||||||
|  | ollama.exe pull mathstral | ||||||
|  | ollama.exe pull qwen2.5-coder | ||||||
							
								
								
									
										9
									
								
								deployment_scripts/windows/scripts/prepare_py.bat
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								deployment_scripts/windows/scripts/prepare_py.bat
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,9 @@ | ||||||
|  | cd python-bin | ||||||
|  | set PATH=%PATH%;%CD% | ||||||
|  | cd Scripts | ||||||
|  | set PATH=%PATH%;%CD% | ||||||
|  | cd .. | ||||||
|  | cd .. | ||||||
|  | 
 | ||||||
|  | cd py | ||||||
|  | python -m pip install -r requirements.txt | ||||||
							
								
								
									
										6
									
								
								deployment_scripts/windows/scripts/run_electron.bat
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								deployment_scripts/windows/scripts/run_electron.bat
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,6 @@ | ||||||
|  | cd node-bin | ||||||
|  | set PATH=%PATH%;%CD% | ||||||
|  | cd .. | ||||||
|  | 
 | ||||||
|  | start /b npm start | ||||||
|  | npx electron . | ||||||
							
								
								
									
										2
									
								
								deployment_scripts/windows/scripts/run_ollama.bat
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										2
									
								
								deployment_scripts/windows/scripts/run_ollama.bat
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,2 @@ | ||||||
|  | cd ollama-bin | ||||||
|  | "ollama app.exe" | ||||||
							
								
								
									
										9
									
								
								deployment_scripts/windows/scripts/run_py.bat
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								deployment_scripts/windows/scripts/run_py.bat
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,9 @@ | ||||||
|  | cd python-bin | ||||||
|  | set PATH=%PATH%;%CD% | ||||||
|  | cd Scripts | ||||||
|  | set PATH=%PATH%;%CD% | ||||||
|  | cd .. | ||||||
|  | cd .. | ||||||
|  | 
 | ||||||
|  | cd py | ||||||
|  | python api.py | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Patrick_Pluto
						Patrick_Pluto