add CoreML NPU support for Apple Silicon, include Flash Attention toggle, and improve process management for startup scripts.
This commit is contained in:
1 parent
b55e62be7d
commit
74b0c3ba46
10 files changed
+515
-168
No files matched your search
@@ -102,9 +102,12 @@ if [[ -n "$SETUP_REASON" ]]; then
|
||||
echo ""
|
||||
read -rp " Press Enter to continue, or Ctrl+C to cancel."
|
||||
|
||||
# Clear any existing frontend server process
|
||||
if command -v fuser >/dev/null 2>&1; then
|
||||
# Clear any existing frontend and backend server processes
|
||||
if command -v lsof >/dev/null 2>&1; then
|
||||
lsof -t -i:"${FRONTEND_PORT}" -i:8080 | xargs kill -9 >/dev/null 2>&1 || true
|
||||
elif command -v fuser >/dev/null 2>&1; then
|
||||
fuser -k "${FRONTEND_PORT}/tcp" >/dev/null 2>&1 || true
|
||||
fuser -k "8080/tcp" >/dev/null 2>&1 || true
|
||||
fi
|
||||
|
||||
if ! bash "$SETUP_SCRIPT" $MAX_PERF_FLAG; then
|
||||
@@ -123,9 +126,12 @@ echo " LOCAL AI IMAGE GENERATOR | Launching..."
|
||||
echo " ============================================================"
|
||||
echo ""
|
||||
|
||||
# Clear frontend port
|
||||
if command -v fuser >/dev/null 2>&1; then
|
||||
# Clear frontend and backend ports
|
||||
if command -v lsof >/dev/null 2>&1; then
|
||||
lsof -t -i:"${FRONTEND_PORT}" -i:8080 | xargs kill -9 >/dev/null 2>&1 || true
|
||||
elif command -v fuser >/dev/null 2>&1; then
|
||||
fuser -k "${FRONTEND_PORT}/tcp" >/dev/null 2>&1 || true
|
||||
fuser -k "8080/tcp" >/dev/null 2>&1 || true
|
||||
fi
|
||||
|
||||
# Start the server
|
||||
|
||||
Reference in new issue
Block a user