forked from story-boards-ai/runpod-worker-a1111
-
Notifications
You must be signed in to change notification settings - Fork 0
/
start.sh
32 lines (28 loc) · 789 Bytes
/
start.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/usr/bin/env bash
echo "Worker Initiated"
echo "Symlinking files from Network Volume"
rm -rf /workspace && \
ln -s /runpod-volume /workspace
echo "Starting WebUI API"
source /workspace/venv/bin/activate
TCMALLOC="$(ldconfig -p | grep -Po "libtcmalloc.so.\d" | head -n 1)"
export LD_PRELOAD="${TCMALLOC}"
export PYTHONUNBUFFERED=true
export HF_HOME="/workspace"
python /workspace/stable-diffusion-webui/webui.py \
--xformers \
--skip-python-version-check \
--skip-torch-cuda-test \
--skip-install \
--lowram \
--opt-sdp-attention \
--disable-safe-unpickle \
--port 3000 \
--api \
--nowebui \
--skip-version-check \
--no-hashing \
--no-download-sd-model > /workspace/logs/webui.log 2>&1 &
deactivate
echo "Starting RunPod Handler"
python3 -u /rp_handler.py