#!/bin/bash export AMD_VULKAN_ICD=RADV export GGML_VK_FORCE_MAX_ALLOCATION_SIZE=536870912 export RADV_PERFTEST=nggc mkdir -p /home/fabian/outputs pkill -f sdcpp-restapi 2>/dev/null sleep 1 nohup /home/fabian/sd-restapi/build/bin/sdcpp-restapi --config /home/fabian/sd-restapi/config.json > /tmp/sdcpp.log 2>&1 & echo "PID=$!" sleep 3 head -80 /tmp/sdcpp.log