forked from React-Group/interstellar_ai
dear god, untested linux scripts
This commit is contained in:
parent
6435bfad8d
commit
a592cf0e18
4 changed files with 60 additions and 0 deletions
21
deployment_scripts/linux/prepare-free.sh
Normal file
21
deployment_scripts/linux/prepare-free.sh
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
chmod +x root.sh
|
||||||
|
pkexec ./root.sh
|
||||||
|
npm install
|
||||||
|
npm run build
|
||||||
|
|
||||||
|
cd py
|
||||||
|
python -m venv venv
|
||||||
|
source venv/bin/activate
|
||||||
|
python3 -m pip install -r requirements.txt
|
||||||
|
|
||||||
|
ollama pull qwen2-math:1.5b
|
||||||
|
ollama pull starcoder2
|
||||||
|
ollama pull llama3.2
|
||||||
|
|
||||||
|
ollama pull wizard-math
|
||||||
|
ollama pull starcoder2:7b
|
||||||
|
ollama pull llama3.1
|
||||||
|
|
||||||
|
chmod +x run.sh
|
21
deployment_scripts/linux/prepare-nonfree.sh
Normal file
21
deployment_scripts/linux/prepare-nonfree.sh
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
chmod +x root.sh
|
||||||
|
pkexec ./root.sh
|
||||||
|
npm install
|
||||||
|
npm run build
|
||||||
|
|
||||||
|
cd py
|
||||||
|
python -m venv venv
|
||||||
|
source venv/bin/activate
|
||||||
|
python3 -m pip install -r requirements.txt
|
||||||
|
|
||||||
|
ollama pull qwen2-math:1.5b
|
||||||
|
ollama pull qwen2.5-coder:1.5b
|
||||||
|
ollama pull phi3.5
|
||||||
|
|
||||||
|
ollama pull mathstral
|
||||||
|
ollama pull qwen2.5-coder
|
||||||
|
ollama pull qwen2.5
|
||||||
|
|
||||||
|
chmod +x run.sh
|
5
deployment_scripts/linux/root.sh
Normal file
5
deployment_scripts/linux/root.sh
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
apt install npm nodejs python3-pip
|
||||||
|
curl -fsSL https://ollama.com/install.sh | sh
|
||||||
|
systemctl enable ollama --now
|
13
deployment_scripts/linux/run.sh
Normal file
13
deployment_scripts/linux/run.sh
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
cd py
|
||||||
|
python api.py &
|
||||||
|
pid_py=$!
|
||||||
|
|
||||||
|
npm start &
|
||||||
|
pid_node=$!
|
||||||
|
|
||||||
|
npx electron .
|
||||||
|
|
||||||
|
kill $pid_py
|
||||||
|
kill $pid_node
|
Loading…
Reference in a new issue