Merge branch 'main' into main

This commit is contained in:
sageTheDm 2024-10-08 10:24:37 +02:00
commit 5af22bf91d
10 changed files with 64 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,16 @@
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 llama3.2
ollama.exe pull dolphin-phi
ollama.exe pull dolphin-llama3
ollama.exe pull llava
ollama.exe pull qwen2.5
ollama.exe pull mathstral
ollama.exe pull qwen2.5-coder

View file

@ -0,0 +1,11 @@
cd python-bin
set PATH=%PATH%;%CD%
curl -O https://bootstrap.pypa.io/get-pip.py
python get-pip.py
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