Installation:

Befehl: node -v

Befehl: curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.4/install.sh | bash

Befehl: source ~/.bashrc

Befehl: nvm install 20 

Befehl: nvm use 20 

Befehl: nvm alias default 20

Befehl: git clone https://github.com/ostris/ai-toolkit.git

Befehl: cd ai-toolkit

Befehl: python3 -m venv venv 

Befehl: source venv/bin/activate

Befehl: pip3 install --no-cache-dir torch==2.7.0 torchvision==0.22.0 torchaudio==2.7.0 --index-url https://download.pytorch.org/whl/cu126

Befehl: pip3 install -r requirements.txt

Befehl: cd ui

Befehl: npm run build_and_start

Befehl: AI_TOOLKIT_AUTH=super_secure_password npm run build_and_start



# Systemd-Service einrichten

Befehl: which node

Befehl: sudo nano /etc/systemd/system/ai-toolkit.service

Befehl: sudo systemctl daemon-reload

Befehl: sudo systemctl enable ai-toolkit

Befehl: sudo systemctl start ai-toolkit

Befehl: sudo systemctl status ai-toolkit


# AI Toolkit aktualisieren

Befehl: git pull

Befehl: source venv/bin/activate 

Befehl: pip install -r requirements.txt

Befehl: cd ui 

Befehl: npm install 

Befehl: npx prisma db push --schema prisma/schema.prisma

Befehl: npm run build

Befehl: npm run start




