Replies: 3 comments 5 replies
-
I think this is something that should be asked in the original repo of whichever UI you are using. |
Beta Was this translation helpful? Give feedback.
0 replies
-
I'm using the auto-cpu UI. How can I modify the UI's files in a way that will persist across rebuilds? |
Beta Was this translation helpful? Give feedback.
5 replies
-
I got it working with this script: THREADS="10"
LINE="torch.set_num_threads(${THREADS});torch.set_num_interop_threads(${THREADS});"
PATTERN="set_num_threads"
FILE="/stable-diffusion-webui/modules/devices.py"
grep -qF "$PATTERN" "$FILE" || sed -i "79 a $LINE" $FILE |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am running this on my server which has a Ryzen 5600U (no GPU ATM). When generating an image, only 6 threads are used despite 10 being allocated. What is the easiest way to change this? I've tried setting environment variables
OMP_NUM_THREADS
andMKL_NUM_THREADS
to no avail. It appears I could also use this function, but I'm not sure where to put it (I have very little experience with Python).Beta Was this translation helpful? Give feedback.
All reactions