This commit is contained in:
Patrick_Pluto 2024-10-08 09:08:05 +02:00
parent 8789141f4c
commit c38242e6ae
10 changed files with 59 additions and 0 deletions

View 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

View file

@ -0,0 +1,5 @@
You will need to make three folders:
node - contains nodejs portable
py - contains python3 portable
ollama - contains ollama portable

View file

@ -0,0 +1,3 @@
start /b scripts\prepare_py.bat
start /b scripts\prepare_npm.bat
start /b scripts\prepare_ollama.bat

View file

@ -0,0 +1,3 @@
start /b scripts\run_ollama.bat
start /b scripts\run_electron.bat
start /b scripts\run_py.bat

View file

@ -0,0 +1,6 @@
cd node-bin
set PATH=%PATH%;%CD%
cd ..
npm install
npm run build

View 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

View 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

View file

@ -0,0 +1,6 @@
cd node-bin
set PATH=%PATH%;%CD%
cd ..
start /b npm start
npx electron .

View file

@ -0,0 +1,2 @@
cd ollama-bin
"ollama app.exe"

View 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