ACCC1380's picture
download
raw
675 Bytes
#!/bin/bash
set -euo pipefail
# TCMalloc reduces memory fragmentation under large model workloads
export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libtcmalloc_minimal.so.4
# Read COMMANDLINE_ARGS then unset it
RAW_ARGS="${COMMANDLINE_ARGS:-}"
unset COMMANDLINE_ARGS
EXTRA_ARGS=()
if [[ -n "$RAW_ARGS" ]]; then
read -ra EXTRA_ARGS <<< "$RAW_ARGS"
fi
# Symlink settings files into the config bind-mount so they persist across container recreations
for f in config.json ui-config.json styles.csv user.css; do
ln -sf /home/forge/sd-webui/config/$f /home/forge/sd-webui/$f
done
exec python /home/forge/sd-webui/launch.py \
--listen \
"${EXTRA_ARGS[@]}" \
"$@"

Xet Storage Details

Size:
675 Bytes
·
Xet hash:
554dbdcd68ccc4f30adfd460d4ec4cc4fe433d0d873680c210c0757763a20595

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.